Repository navigation
docs: re-add cmux recipe with verified config from @endigma - #2836
Merged
Merged
Conversation
Adds back the "cmux workspace per worktree" recipe removed in #2797, using the configuration @endigma tested in #2796. Key fixes vs the original #1907 recipe: - [switch] cd = false stops wt from cd'ing the invoking shell, so cmux is the only navigation primitive (the original report's bug). - --focus true on cmux new-workspace. - wt pick alias for the interactive picker, which becomes print-only under cd = false. Co-Authored-By: endigma <[email protected]> Co-Authored-By: Claude Opus 4.7 <[email protected]>
This was referenced May 20, 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.
Problem
#2796 reported the cmux recipe in
docs/content/tips-patterns.mddidn't work —wt switchcd's the invoking shell in addition to firing thepre-switchhook, so the original cmux workspace ends up pointing at the new worktree alongside the freshly-opened one. #2797 removed the recipes pending a verified configuration ("let's just remove the cmux recipes unless someone can certify that they work" — #2796 (comment)).What this PR does
Re-adds the cmux workspace per worktree section with the configuration @endigma tested:
[switch] cd = false— wt no longer cd's the invoking shell, so cmux is the only navigation primitive (fixes the original report).--focus trueoncmux new-workspace— focuses the new workspace immediately.wt pickalias — works around the picker becoming print-only undercd = falseby capturing the selected branch and re-invokingwt switch <branch>so hooks fire.The Agent handoffs cmux entry from #1907 is intentionally not re-added — endigma certified the workspace-per-worktree recipe, not the handoffs example, so it stays out until someone with cmux can verify the handoff shape too.
Testing
cargo test --test integration test_docs_are_in_sync✓ (regeneratedskills/worktrunk/reference/tips-patterns.md)cc @endigma @alvistar