Skip to content

fix(cli): skip OSC color queries in tmux to prevent hang on launch#945

Merged
fengmk2 merged 1 commit intomainfrom
fix/tmux-osc-query-hang
Mar 16, 2026
Merged

fix(cli): skip OSC color queries in tmux to prevent hang on launch#945
fengmk2 merged 1 commit intomainfrom
fix/tmux-osc-query-hang

Conversation

@Brooooooklyn
Copy link
Member

@Brooooooklyn Brooooooklyn commented Mar 16, 2026

tmux does not reliably forward OSC color query responses back to child
processes, causing the CLI to appear stuck until a keypress is consumed
as a fake response — the same issue fixed for Warp terminal in #762.

Closes #822

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com


Note

Low Risk
Low risk: adds an early-return guard in header color probing based on the TMUX env var, only affecting optional terminal color detection/formatting.

Overview
Prevents the header color-probing routine (query_terminal_colors) from sending OSC color queries when inside tmux by short-circuiting if TMUX is set, matching the existing Warp terminal workaround.

This avoids a launch-time hang where tmux may not forward OSC query responses back to the child process, at the cost of falling back to default header colors under tmux.

Written by Cursor Bugbot for commit d86e10f. This will update automatically on new commits. Configure here.

tmux does not reliably forward OSC color query responses back to child
processes, causing the CLI to appear stuck until a keypress is consumed
as a fake response — the same issue fixed for Warp terminal in #762.

Closes #822

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Mar 16, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit d86e10f
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69b7abf376b54f0008115ac9

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2
Copy link
Member

fengmk2 commented Mar 16, 2026

packages/cli/snap-tests-global/create-from-monorepo-subdir become flaky, can skip it for now.

@fengmk2 fengmk2 merged commit 75e5d49 into main Mar 16, 2026
21 of 23 checks passed
@fengmk2 fengmk2 deleted the fix/tmux-osc-query-hang branch March 16, 2026 07:25
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.

CLI in tmux has no output until any keyboard pressed

2 participants