[BUG] --resume flag fails to find session when run from a different directory than the original session
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Running claude --resume <session-id> from any directory other than the one where the session was
originally started returns:
No conversation found with session ID: <session-id>
even though the session file exists in ~/.claude/projects/.
session exists
<img width="723" height="319" alt="Image" src="https://github.com/user-attachments/assets/a12fcf56-0bb0-4067-90f6-f70a19e67367" />
session doesn't open
<img width="641" height="96" alt="Image" src="https://github.com/user-attachments/assets/85d53c7e-147d-4814-b276-3b744657882b" />
What Should Happen?
Session IDs are globally unique UUIDs. --resume should search across all project folders under
~/.claude/projects/ regardless of the current working directory.
Error Messages/Logs
<img width="641" height="96" alt="Image" src="https://github.com/user-attachments/assets/85d53c7e-147d-4814-b276-3b744657882b" />
Steps to Reproduce
- Start a Claude Code session from directory A (e.g. /)
- Note the session ID
- Open a new terminal in directory B (e.g. ~/AI/Claude)
- Run claude --resume <session-id>
- Error: No conversation found with session ID: <session-id>
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code version: 2.1.50
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗