feat: cmux cross-reference detection via tree TTY#64
Merged
Conversation
Same concept as iTerm2 cross-reference but uses cmux CLI tree --all output with tty= field. Requires cmux build with TTY support (cmux PR pending). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
cmux cross-reference for detection layer: fixes purple dot for bare
claudeorclaude -rsessions with in-session/rename, same concept as iTerm2 cross-reference (PR #62).How it works
Uses cmux CLI
tree --alloutput which now includes atty=field per surface (requires cmux PR: manaflow-ai/cmux#TBD):pgrep -x cmux)tree --alloutput for surfaces withtty=fieldps -o tty=→ match against cmux surface TTYs → get surface titleTest proof
Tested with cmux dev build containing TTY support:
Purple dot correctly stayed on the
/rename'd session after closing the other same-cwd session.Dependencies
tree --alloutput (PR pending at manaflow-ai/cmux)tree --allhas notty=field →cmuxSurfacesis empty → cross-reference gracefully skipsRelated: #60, #63
🤖 On behalf of @grimmerk — generated with Claude Code