Skip to content

[8.19] [Console] Fix autoselecting last request (#218001)#255101

Merged
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-218001
Feb 26, 2026
Merged

[8.19] [Console] Fix autoselecting last request (#218001)#255101
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-218001

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Feb 26, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) February 26, 2026 12:28
Fixes elastic#194257

## Summary

This PR fixes the bug in Console where, if there is a request on the
last line of the editor, it gets automatically selected when the editor
is open. This is because the cursor is initially placed at the last
position of the edition, and if this position turn out to be at the end
of the request, the request is selected because the editor is on focus.
We fix this by not focusing the editor initially (i.e. there is no
blinking cursor when you open the editor) - this ensures that there
won't be any initial request highlighting as per the logic on the
following line:
https://github.com/elastic/kibana/blob/5c78ff18484e77b5ec5a4ba2ab341ed65db4f21c/src/platform/plugins/shared/console/public/application/containers/editor/monaco_editor_actions_provider.ts#L73)

https://github.com/user-attachments/assets/6f10e59b-92c7-4501-bf01-54987bc2f289
(cherry picked from commit 7be65de)
@kibanamachine kibanamachine force-pushed the backport/8.19/pr-218001 branch from 2b78800 to b1bf11b Compare February 26, 2026 12:28
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
console 197.7KB 197.6KB -20.0B

cc @ElenaStoeva

@ElenaStoeva
Copy link
Copy Markdown
Contributor

@elasticmachine run docs-build

@kibanamachine kibanamachine merged commit f168d01 into elastic:8.19 Feb 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants