Skip to content

fix(OSC4): tmux 3.6 has native support for OSC4 and should not be wrapped - #373

Merged
kommander merged 1 commit into
anomalyco:mainfrom
noirbizarre:fix/tmux-osc4
Dec 2, 2025
Merged

kommander merged 1 commit into
anomalyco:mainfrom
noirbizarre:fix/tmux-osc4

Conversation

@noirbizarre

@noirbizarre noirbizarre commented Dec 1, 2025 •

Copy link
Copy Markdown
Contributor

#354 fix was only working for tmux<3.6 because it doesn't have native OSC4 support, so OSC4 sequence needed escaping.
But, tmux 3.6 has native OSC4 support and wrapping the sequence in a tmux escape prevent OSC4 to work with tmux 3.6.

This fixes anomalyco/opencode#3688 for tmux 3.6 (regression was introduced by upgrading to OpenTUI 0.1.51 in anomalyco/opencode@204a31b.

@melMass

melMass commented Dec 1, 2025 •

Copy link
Copy Markdown
Contributor

Ohhh tmux was updated last week, this explains my confusion! I introduced that bug my bad!

@noirbizarre

Copy link
Copy Markdown
Contributor Author

It's OK: I did my first OpenCode/OpenTUI contrib and I've learned about OSC sequences 😉

@kommander
kommander merged commit b51f722 into anomalyco:main Dec 2, 2025
4 checks passed
@noirbizarre
noirbizarre deleted the fix/tmux-osc4 branch December 2, 2025 14:13
msmps pushed a commit that referenced this pull request Jan 8, 2026
…pped (#373)

#354 fix was only working for tmux<3.6 because it doesn't have native
OSC4 support, so OSC4 sequence needed escaping.
But, tmux 3.6 has native OSC4 support and wrapping the sequence in a
tmux escape prevent OSC4 to work with tmux 3.6.

This fixes anomalyco/opencode#3688 for tmux 3.6 (regression was introduced by
upgrading to OpenTUI 0.1.51 in
anomalyco/opencode@204a31b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System Theme no longer works after v1.0.0

3 participants