Repository navigation
Conversation
Add --no-mouse and --mouse for per-invocation control of terminal mouse capture. Preserve config defaults when absent and retain explicit overrides through config updates without persisting them. Cover optional flag parsing and reactive config precedence, and document native terminal selection over SSH.
|
One data point that might make this smaller than a boolean flag: the native terminal session already takes Nothing in the app ever passes
|
Issue for this PR
Closes #60942
Type of change
What does this PR do?
Adds
--no-mouseand--mouseto the full-screen TUI command. I switch between local terminals and SSH and want terminal-native selection and paste on demand.The optional CLI value overrides
cli.jsonat startup and on config reloads, without writing the override to disk. Omitting both flags preserves the configured behavior.OPENCODE_CLI_CONFIG_CONTENTalready offers an environment-based workaround; these flags make the mouse-only override discoverable in--help.This is a draft for design review of the linked feature request.
How did you verify your code works?
bun run checkpassed.go-upsell-artlogo assertion also fails on unmodified upstreama5518690fc.Visual
Screenshots / recordings
The PTY check verifies mouse-reporting escape sequences and pasted text; this changes input routing rather than layout.
Checklist