fix(cli): skip OSC color queries in tmux to prevent hang on launch#945
Merged
fix(cli): skip OSC color queries in tmux to prevent hang on launch#945
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Member
|
packages/cli/snap-tests-global/create-from-monorepo-subdir become flaky, can skip it for now. |
fengmk2
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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
TMUXenv 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 ifTMUXis 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.