Skip to content

docs: re-add cmux recipe with verified config from @endigma - #2836

Merged
max-sixty merged 1 commit into
mainfrom
docs/restore-cmux-recipes
May 20, 2026
Merged

max-sixty merged 1 commit into
mainfrom
docs/restore-cmux-recipes

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Problem

#2796 reported the cmux recipe in docs/content/tips-patterns.md didn't work — wt switch cd's the invoking shell in addition to firing the pre-switch hook, 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 true on cmux new-workspace — focuses the new workspace immediately.
  • wt pick alias — works around the picker becoming print-only under cd = false by capturing the selected branch and re-invoking wt 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


cc @endigma @alvistar

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]>
@max-sixty
max-sixty merged commit af8de75 into main May 20, 2026
33 checks passed
@max-sixty
max-sixty deleted the docs/restore-cmux-recipes branch May 20, 2026 14:53
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.

2 participants