Skip to content

fix: identify detached worktrees by their paths - #4498

Merged
max-sixty merged 2 commits into
mainfrom
codex/detached-worktree-labels
Oct 18, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/detached-worktree-labels

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

wt step for-each identified detached worktrees by their directory basename, so Codex checkouts all appeared as worktrunk (detached). Show the full display path for every detached checkout, including a lone checkout with a generic directory name. Labels now identify the location independently of other worktrees.

Off-template branches use branch @ path; branches at their configured location use the branch name. Failure messages reuse the label's styling. Extend the integration snapshot with a lone generic directory, another detached checkout, and an off-template branch.

Validation: 21 focused integration tests and all pre-commit checks pass. Opus reviewed the implementation and live success/failure output.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit 5e5c65b into main Oct 18, 2026
38 checks passed
@max-sixty
max-sixty deleted the codex/detached-worktree-labels branch October 18, 2026 05:54
This was referenced Oct 18, 2026
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