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

  1. Create a git worktree:

``bash
git worktree add /tmp/my-worktree some-branch
``

  1. Run claude from that worktree (or spawn it programmatically with cwd set to the worktree path):

``bash
cd /tmp/my-worktree
claude -p "hello"
``

  1. Verify session files were created:

``bash
ls ~/.claude/projects/-tmp-my-worktree/
# Shows .jsonl session files
``

  1. 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 .git is a file pointing to the main repo's .git/worktrees/ directory — this likely causes the project path resolution to differ between session creation and --resume lookup.

Notes

  • Session files are present in ~/.claude/projects/<encoded-worktree-path>/
  • git rev-parse --show-toplevel from 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

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗