opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: disable SGR mouse tracking on exit to prevent ASCII codes

Open snapxv opened this issue 2 weeks ago • 0 comments

Problem: When users press CTRL+C in OpenCode TUI, the application exits without properly disabling mouse causes the terminal to continue tracking modes. This displaying SGR mouse tracking codes as ASCII strings when moving the mouse.

Solution: We now send mouse tracking disable escape sequences before destroying the renderer, covering all common mouse tracking protocols: basic, button events, SGR, SGR 1006, URXVT, and all motion tracking modes.

snapxv avatar Jan 02 '26 22:01 snapxv