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
tmux: escape sequences output on startup switch tabs #22210
When running opencode in tmux, terminal escape sequences are output on startup that cause tmux to switch to a different tab/window.
Steps to reproduce
Open tmux with multiple windows/tabs
Run opencode in one tab
Observe: tab switches to a different window, and random characters appear
Actual output
?1016;2$y2027;1$y2031;1$y1004;2$y2004;1$y2026;2$y
These are ANSI terminal status query sequences (?NNN;NN$y format). They appear to be capability queries from the VS Code extension host initialization.
Workaround
Running echo | opencode suppresses the issue because opencode detects non-TTY stdin.
Activity
github-actions commentedon Apr 12, 2026
This issue might be a duplicate of existing issues. Please check:
allow-passthroughoption ison#15744: opening opencode emits garbled text when tmuxallow-passthroughoption ison(same symptom of escape sequences and tab switching in tmux)Consider adding any additional context you have to those issues instead.
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.