--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 --resume from 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>) and cd into it, or remember the exact worktree name and run claude -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 / --resume invoked 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

View original on GitHub ↗