Description
When the TUI is force-killed externally on Windows, the terminal can be left with mouse reporting enabled. After that, moving the mouse floods the prompt with raw escape sequences such as ^[[<35;62;19M. Relaunching opencode does not clear it, because the new renderer inherits the terminal's dirty state.
This is different from #6912 and #13301, which are about Ctrl+C cleanup. With taskkill /F, the process gets no chance to run exit handlers.
Possible fix: disable mouse tracking on TUI startup before enabling it again.
Plugins
none
OpenCode version
1.3.0
Steps to reproduce
- Launch
opencode in Windows Terminal (PowerShell)
- Force-kill it with
taskkill /F /PID <pid>
- Move the mouse in the terminal — raw escape sequences appear
- Relaunch
opencode
- Move the mouse again — raw escape sequences still appear
Operating System
Windows 11
Terminal
Windows Terminal (PowerShell)
Description
When the TUI is force-killed externally on Windows, the terminal can be left with mouse reporting enabled. After that, moving the mouse floods the prompt with raw escape sequences such as
^[[<35;62;19M. Relaunchingopencodedoes not clear it, because the new renderer inherits the terminal's dirty state.This is different from #6912 and #13301, which are about Ctrl+C cleanup. With
taskkill /F, the process gets no chance to run exit handlers.Possible fix: disable mouse tracking on TUI startup before enabling it again.
Plugins
none
OpenCode version
1.3.0
Steps to reproduce
opencodein Windows Terminal (PowerShell)taskkill /F /PID <pid>opencodeOperating System
Windows 11
Terminal
Windows Terminal (PowerShell)