You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux/Ubuntu 25.10 VM: stray mouse escape sequences remain in terminal after exiting TUI #20207
On Ubuntu 25.10 running inside a VM, exiting the OpenCode TUI often leaves the terminal in a bad state. After exit, mouse movement or scrolling prints raw stray character codes into the shell prompt.
A representative example is:
35;16;107M
This appears to be the tail of a leaked SGR mouse-report sequence rather than normal shell input.
The visible symptoms are nearly identical to #11748, but this report is for Linux/Ubuntu 25.10 in a VM rather than Windows/PowerShell.
Plugins
No Plugin
OpenCode version
1.3.9
Steps to reproduce
Run opencode on Ubuntu 25.10 inside a VM
Use the TUI normally
Exit the TUI
Move the mouse or scroll in the terminal
Stray character codes appear in the shell prompt
Expected behavior
After exit, the terminal should return to a normal shell state with no raw mouse or escape-sequence output.
Actual behavior
After exit, mouse movement or scrolling can inject stray codes into the shell prompt, such as 35;16;107M.
Screenshot and/or share link
No response
Operating System
Ubuntu 25.10 (guest VM)
Terminal
Linux terminal in a VM (symptoms nearly identical to #11748, but not on Windows/PowerShell)
These all appear to be the same underlying issue: the TUI does not properly disable mouse tracking on exit. Your report is the Linux/Ubuntu VM variant of the same problem.
Activity
timrichardson commentedon Mar 31, 2026
Draft fix proposed in #20199.
github-actions commentedon Mar 31, 2026
This issue might be a duplicate of existing issues. Please check:
These all appear to be the same underlying issue: the TUI does not properly disable mouse tracking on exit. Your report is the Linux/Ubuntu VM variant of the same problem.