[BUG] `claude -r` doesn't find sessions when ~/.claude/projects/ entries are symlinks
Resolved 💬 9 comments Opened Apr 10, 2026 by fabrizioanichini Closed Jul 15, 2026
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?
I use GNU Stow to manage my dotfiles, which creates symlinks . .jsonl session files exist and are accessible through the symlink, but claude -r doesn't find them. Sessions in real (non-symlinked) directories in the same location work fine.
What Should Happen?
claude -r should follow symlinks when scanning for session files.
Error Messages/Logs
Steps to Reproduce
- Create a project directory under
~/.claude/projects/with session .jsonl files - Replace it with a symlink pointing to the same data (e.g., via `ln -s /path/to/real/dir
~/.claude/projects/project-name`)
- Run
claude -r— the sessions from that project no longer appear
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.100
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗