Clicking in the most recent output area causes the focus to shift to the bottom #23942

Closed
opened 2026-01-31 08:56:52 +00:00 by claunia · 6 comments
Owner

Originally created by @MLSci on GitHub (Jan 7, 2026).

Windows Terminal version

1.23.13503.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

  1. Enter a command, wait for it to finish outputting. Ideally the output is longer than one page.
  2. Scroll up in the window
  3. Click anywhere in the output area
  4. Notice the focus scrolls down and shifts to the bottom of the window

Note: setting snapOnInput to false fixes this issue, but the side effect is that keyboard input won't shift the focus to bottom anymore.

Note 2: if there are previous commands (other than the most recent command), clicking in the output area of them won't have this issue. It only affects the most recent output.

Expected Behavior

When clicking in the output, the focus doesn't shift. This is useful when trying to select texts from the outputs.

Actual Behavior

The focus scrolls down and shifts to the bottom of the window

Originally created by @MLSci on GitHub (Jan 7, 2026). ### Windows Terminal version 1.23.13503.0 ### Windows build number 10.0.22631.0 ### Other Software _No response_ ### Steps to reproduce 1. Enter a command, wait for it to finish outputting. Ideally the output is longer than one page. 2. Scroll up in the window 3. Click anywhere in the output area 4. Notice the focus scrolls down and shifts to the bottom of the window Note: setting `snapOnInput` to `false` fixes this issue, but the side effect is that keyboard input won't shift the focus to bottom anymore. Note 2: if there are previous commands (other than the most recent command), clicking in the output area of them won't have this issue. It only affects the most recent output. ### Expected Behavior When clicking in the output, the focus doesn't shift. This is useful when trying to select texts from the outputs. ### Actual Behavior The focus scrolls down and shifts to the bottom of the window
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 08:56:52 +00:00
Author
Owner

@DHowett commented on GitHub (Jan 7, 2026):

Huh, that's unexpected. Would you be able to share your settings.json and perhaps a screen recording?

Thanks!

@DHowett commented on GitHub (Jan 7, 2026): Huh, that's unexpected. Would you be able to share your settings.json and perhaps a screen recording? Thanks!
Author
Owner

@MLSci commented on GitHub (Jan 8, 2026):

@DHowett attached are the json and the recording. Let me know if they help

https://github.com/user-attachments/assets/664590a2-25bc-4d8a-8deb-c36f02b40fd2

settings.json

@MLSci commented on GitHub (Jan 8, 2026): @DHowett attached are the json and the recording. Let me know if they help https://github.com/user-attachments/assets/664590a2-25bc-4d8a-8deb-c36f02b40fd2 [settings.json](https://github.com/user-attachments/files/24488184/settings.json)
Author
Owner

@DHowett commented on GitHub (Jan 28, 2026):

Ah, this may be an issue with experimental.repositionCursorWithMouse. Would you mind testing with that disabled/? Thanks!

@DHowett commented on GitHub (Jan 28, 2026): Ah, this may be an issue with `experimental.repositionCursorWithMouse`. Would you mind testing with that disabled/? Thanks!
Author
Owner

@MLSci commented on GitHub (Jan 30, 2026):

Just to confirm that I tested with experimental.repositionCursorWithMouse disabled, which fixes the issue.

It'll be nice to have this variable set to false by default during installation/update, because I'm not sure how useful this feature is..

@MLSci commented on GitHub (Jan 30, 2026): Just to confirm that I tested with `experimental.repositionCursorWithMouse` disabled, which fixes the issue. It'll be nice to have this variable set to `false` by default during installation/update, because I'm not sure how useful this feature is..
Author
Owner

@DHowett commented on GitHub (Jan 30, 2026):

It is an experimental feature which is not turned on by default.

Thank you for confirming that disabling it fixes the issue.

@DHowett commented on GitHub (Jan 30, 2026): It is an experimental feature which is not turned on by default. Thank you for confirming that disabling it fixes the issue.
Author
Owner

@MLSci commented on GitHub (Jan 30, 2026):

It's strange that mine is set to true, even though I never tweaked this setting..

@MLSci commented on GitHub (Jan 30, 2026): It's strange that mine is set to `true`, even though I never tweaked this setting..
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23942