[BUG] Sessions index has wrong path information

Resolved 💬 3 comments Opened Jan 22, 2026 by sclaughl Closed Feb 28, 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?

When I try to continue/resume a conversation, claude wrongly reports there are none to continue/resume.

What Should Happen?

Claude should be able to resume the conversation from the directory where it was initiated.

Error Messages/Logs

● There's the bug. The large conversation file 7cc625bc shows:                                                                 
  "cwd":"/home/user/projects/project-name"                                                                                 
                                                                                                                               
  But the sessions-index.json incorrectly says:                                                                                
  "projectPath": "/home/user/projects/project-name/subdirectory"                                                            
                                                                                                                               
  You're right - you did start it from project-name. The sessions index has wrong path information, which is why Claude Code 
  can't find it when you try to resume.                                                                                        
                                                                                                                               
  This is a bug in Claude Code. The index metadata doesn't match the actual conversation data.                                 
                                                                                                                               
  You should be able to force-resume that specific conversation:                                                               
  claude --resume 7cc625bc-xxxx-xxxx...                                                                         
                                                                                                                               
  That's the 57MB one with 170 messages. If that doesn't work, the conversation data is still there in the raw .jsonl file,    
  it's just that the indexing is broken.                                                                                       
                                                                                                                               
  This is definitely worth reporting: https://github.com/anthropics/claude-code/issues

Steps to Reproduce

Unsure what steps caused this. It just happened. 🤷‍♂️

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.15 (Claude Code)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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