Session missing from resume list despite file existing on disk
Bug Description
After ending a session, running claude -r (or claude --resume without arguments) to open the session picker does not show the most recently completed session. The session file exists on disk and can be resumed using the full session ID, but it is missing from the interactive resume list.
Steps to Reproduce
- Start a Claude Code session and have a conversation (session ID:
f080480a-acbc-438e-bbdf-ef5b9abd06d8) - The session ends normally, showing:
````
Resume this session with:
claude --resume f080480a-acbc-438e-bbdf-ef5b9abd06d8
- Immediately run
claude -rto open the session picker - The session
f080480ais not listed in the picker
Expected Behavior
The most recently ended session should appear in the claude -r session list.
Actual Behavior
The session is absent from the list. However:
- The session file does exist on disk at
~/.claude/projects/<project>/f080480a-acbc-438e-bbdf-ef5b9abd06d8.jsonl(536KB, valid JSONL) - Running
claude --resume f080480a-acbc-438e-bbdf-ef5b9abd06d8with the full ID works correctly
This suggests the session index/list is out of sync with the actual session files on disk.
Environment
- Claude Code version: 2.1.42
- OS: Windows 11 Pro 10.0.26200
- Shell: Git Bash
- API Provider: Third-party proxy (ANTHROPIC_BASE_URL)
Additional Context
The session file was verified to be intact:
$ ls -la ~/.claude/projects/<project>/f080480a-acbc-438e-bbdf-ef5b9abd06d8.jsonl
-rw-r--r-- 1 user 197121 536776 Mar 1 22:23 f080480a-...8.jsonl
The JSONL content starts with valid session metadata and the correct session ID.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗