Skip to content

connect: start with mouse capture off so links and select work#75

Merged
hbrooks merged 1 commit into
mainfrom
connect-mouse-capture-off
Jul 23, 2026
Merged

connect: start with mouse capture off so links and select work#75
hbrooks merged 1 commit into
mainfrom
connect-mouse-capture-off

Conversation

@hbrooks

@hbrooks hbrooks commented Jul 23, 2026

Copy link
Copy Markdown
Member

What

Flip the default so the connect TUI starts with terminal mouse reporting off.

Why

Arming mouse reporting (xterm modes 1000/1006) is the only way to receive scroll-wheel events, but the protocol has no wheel-only mode: mode 1000 forwards every mouse event to the app, so clicks, text selection, and clickable links all stop working. The app swallows those events, which is why "clicking links and a bunch of other stuff" broke while scrolling worked.

There is no way to keep both native mouse behavior and wheel scrolling at once, so this makes the more common case (clicking links / selecting text) the default.

Change

  • mouseCapture now starts false — the terminal keeps the mouse for links and copy/paste out of the box.
  • ctrl+s arms wheel scrolling of the transcript (unchanged mechanism; just the default is flipped).
  • Reworded the toggle notices so they read correctly from either state.

Test

  • bun run test (260 passing)
  • tsc --noEmit clean

@hbrooks
hbrooks merged commit fc38703 into main Jul 23, 2026
1 check passed
@hbrooks
hbrooks deleted the connect-mouse-capture-off branch July 23, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant