[PR #373] [MERGED] fix(OSC4): tmux 3.6 has native support for OSC4 and should not be wrapped #491

Closed
opened 2026-03-02 23:46:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/373
Author: @noirbizarre
Created: 12/1/2025
Status: Merged
Merged: 12/2/2025
Merged by: @kommander

Base: mainHead: fix/tmux-osc4


📝 Commits (1)

  • 899b6e3 fix(OSC4): tmux 3.6 has native support for OSC4 and should not be wrapped

📊 Changes

2 files changed (+10 additions, -8 deletions)

View changed files

📝 packages/core/src/lib/terminal-palette.ts (+6 -6)
📝 packages/core/src/renderer.ts (+4 -2)

📄 Description

#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 sst/opencode#3688 for tmux 3.6 (regression was introduced by upgrading to OpenTUI 0.1.51 in github.com/sst/opencode@204a31b6bb.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/373 **Author:** [@noirbizarre](https://github.com/noirbizarre) **Created:** 12/1/2025 **Status:** ✅ Merged **Merged:** 12/2/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `fix/tmux-osc4` --- ### 📝 Commits (1) - [`899b6e3`](https://github.com/anomalyco/opentui/commit/899b6e3077483b2d0e7eace38109ec8315b6b035) fix(OSC4): tmux 3.6 has native support for OSC4 and should not be wrapped ### 📊 Changes **2 files changed** (+10 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/lib/terminal-palette.ts` (+6 -6) 📝 `packages/core/src/renderer.ts` (+4 -2) </details> ### 📄 Description #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 sst/opencode#3688 for tmux 3.6 (regression was introduced by upgrading to OpenTUI 0.1.51 in https://github.com/sst/opencode/commit/204a31b6bbad951e1e03d985c2edc62165062a4e. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:46:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#491
No description provided.