bug: Sessions missing from claude --resume list
Bug Description
Sessions are missing from the claude --resume session list. When a session ends, Claude prints a resume command like:
Resume this session with:
claude --resume "session title here"
But when you run claude --resume, the session does not appear in the list at all — it is simply absent, not a search issue.
Steps to Reproduce
- Start a Claude Code session and do some work
- Exit the session — Claude prints
Resume this session with: claude --resume "..." - Run
claude --resume - The session that just ended is not in the list
- Searching for the session title also returns "No sessions match"
Expected Behavior
All sessions (including recently closed ones) should appear in the claude --resume list.
Actual Behavior
Sessions are randomly missing from the list. The full session list shows a limited number of sessions (e.g. "1 of 23") and recently closed sessions or sessions from certain projects/contexts are not included — even immediately after they close.
This appears to affect both old and new sessions across different projects.
Environment
- Claude Code CLI (latest)
- macOS
- Reproducible across multiple sessions and projects
Screenshots
(Screenshots to be attached — showing a session that just ended with a resume command, then the resume list missing that session, and additional examples of sessions not found)
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗