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
Mouse tracking state not reset on exit (/exit) #38860
When exiting opencode using the /exit command, raw SGR mouse tracking escape sequences are printed to the terminal instead of being properly cleaned up.
Observe raw escape sequences printed in the terminal
Expected behavior: Terminal state is fully restored after exit.
Actual behavior: Raw SGR mouse tracking sequences are printed:
^[[<35;49;13M%
^[[<35;91;9M%
These are mouse press events in SGR extended mouse mode (^[[<button;column;row M), indicating mouse tracking was enabled but not properly disabled on exit.
Workaround: Running printf '\e[?1000l\e[?1003l\e[?1006l' after exit restores normal terminal behavior.
I've reviewed those threads and they do seem to be similar situations, but they involve different technologies. What am I supposed to do then, close the issue?
Activity
github-actions commentedon Jul 25, 2026
This issue might be a duplicate of existing issues. Please check:
/exit, identical workaround)kraso commentedon Jul 27, 2026
I've reviewed those threads and they do seem to be similar situations, but they involve different technologies. What am I supposed to do then, close the issue?