--resume should surface worktree sessions launched from the same repo
Open 💬 0 comments Opened Jun 22, 2026 by eoghanmurray
Type
Feature request / UX
Problem
When a session is started with -w <name> (worktree), its transcript is stored under a separate project dir (<repo>--claude-worktrees-<name>) keyed off the worktree's path, not the repo root. As a result:
- Running
claude -r/claude --resumefrom the repo root does not list worktree sessions — they are invisible in the picker. - To resume, you must either know the internal storage path (
.claude/worktrees/<name>) andcdinto it, or remember the exact worktree name and runclaude -w <name> --resume.
The whole point of -w is to hide the worktree mechanics, but resuming forces the user to re-supply the name from memory (or know internals) — which defeats the abstraction. From a fresh terminal there is no discoverable path back to a worktree session.
Suggested fix
-r/--resumeinvoked from a repo root should include sessions from worktrees created off that repo, clearly labelled (e.g.[worktree: <name>]).- Selecting such an entry should automatically re-attach to the correct worktree — no name required.
Environment
- Claude Code v2.1.81
- Linux