Skip to content

tmux: escape sequences output on startup switch tabs #22210

Closed as not planned
Closed as not planned

Description

@devopsjourney1

Description

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

  1. Open tmux with multiple windows/tabs
  2. Run opencode in one tab
  3. 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.

Environment

  • macOS (Darwin)
  • tmux
  • zsh

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Apr 12, 2026
  2. github-actions commented on Apr 12, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Consider adding any additional context you have to those issues instead.

  3. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  4. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions