No way to resume sessions created by claude -p (--print) after v2.1.90 change
Resolved 💬 4 comments Opened Apr 3, 2026 by FarzamMohammadi Closed Apr 6, 2026
Bug
claude --resume returns "No conversations found to resume" when run from a git worktree directory, even though session files exist in ~/.claude/projects/ for that exact path.
Repro
- Create a git worktree:
``bash``
git worktree add /tmp/my-worktree some-branch
- Run claude from that worktree (or spawn it programmatically with
cwdset to the worktree path):
``bash``
cd /tmp/my-worktree
claude -p "hello"
- Verify session files were created:
``bash``
ls ~/.claude/projects/-tmp-my-worktree/
# Shows .jsonl session files
- Try to resume:
``bash``
cd /tmp/my-worktree
claude --resume
# "No conversations found to resume."
Expected
claude --resume should list the sessions that were created in that directory.
Actual
"No conversations found to resume. Press Ctrl+C to exit and start a new conversation."
Environment
- Claude Code version: 2.1.91
- macOS (Darwin 24.6.0)
- The worktree's
.gitis a file pointing to the main repo's.git/worktrees/directory — this likely causes the project path resolution to differ between session creation and--resumelookup.
Notes
- Session files are present in
~/.claude/projects/<encoded-worktree-path>/ git rev-parse --show-toplevelfrom the worktree returns the correct worktree path- This worked in a previous version of Claude Code (exact version unknown)
- Resuming by explicit session ID (
claude --resume <uuid>) may also fail for the same reason
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗