claude --resume fails silently for worktree conversations when run from main repo
Resolved 💬 3 comments Opened Apr 15, 2026 by premiumFrye Closed May 25, 2026
Summary
claude --resume <id> silently fails with \"No conversation found\" when the conversation occurred inside a git worktree and the command is run from the main repository root. There is no indication that the conversation exists or where to look for it.
Steps to Reproduce
- Start a Claude Code session inside a git worktree (e.g.
/repo/.claude/worktrees/my-worktree/) - Do some work — the conversation is stored in
~/.claude/projects/-<path-to-worktree>/ - Exit the session
- From the main repo root (
/repo/), attempt to resume:claude --resume <conversation-id> - Result:
No conversation found with session ID: <id>
Expected Behavior
One of:
--resumefinds conversations across all worktrees for the same repo, or- The error message indicates where conversations for that ID are stored (e.g. \"found in worktree project — run from
/repo/.claude/worktrees/my-worktree/\"), or - The docs clearly explain that
--resumeis scoped to the current working directory's project path
Actual Behavior
Silent failure: No conversation found with session ID: <id>. No hint that the conversation is in a different project path, no suggestion to cd into the worktree.
Workaround
cd /repo/.claude/worktrees/<worktree-name>
claude --resume <conversation-id>
Conversation files for worktree sessions live in:~/.claude/projects/-<encoded-worktree-path>/
Why This Is Confusing
--resumeaccepts the ID without error — it just says \"not found\", implying the ID is wrong- The conversation ID comes from the same
~/.claude/projects/tree, so users assume it's globally addressable - There's no documentation explaining that
--resumescope is tied tocwd - Worktrees are commonly used for parallel/agent work where resuming a dropped session is especially important
Environment
- Claude Code CLI on WSL2 (Ubuntu on Windows)
- Git worktrees created both manually (
.worktrees/) and by agent tooling (.claude/worktrees/)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗