opencode
opencode copied to clipboard
fix: disable SGR mouse tracking on exit to prevent ASCII codes
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.