claude -r picker hides sessions whose first message contains a pasted image
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?
Some sessions don't appear in the claude -r / /resume picker at all, and searching in the picker doesn't find them. Their transcript files exist and are intact in ~/.claude/projects/<project>/, and they open fine with claude -r <session-id>.
In my project 2 sessions are hidden. Both start with a user message that included a pasted screenshot: the content is an array with a text block ("[Image #1], ...") plus an image block. All 9 sessions that do show up start with a plain-text message.
Otherwise the files look the same: same project directory, same git branch, same Claude Code version (2.1.280), no malformed JSONL lines, and both have valid ai-title entries ("Amnesia and Olivia missing from Agent Assignment Tab", "Xploon contacts delete issue"). One hidden session was my most recent finished session (17 hours old), so it should have been second in the list.
What Should Happen?
Every session in the project should appear in the resume picker under its title, whether or not the first message contained an image.
Error Messages/Logs
No error is shown. The sessions are silently missing from the list.
Steps to Reproduce
- In any project, start
claude. - Paste a screenshot (Alt+V / Ctrl+V) and type a short question, so the first message is "[Image #1], <text>".
- Exchange a couple of messages, then exit.
- Run
claude -r. - The session is not in the list and search doesn't find it.
claude -r <session-id>opens it normally.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.280
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Workaround: resume by ID with claude -r <session-id>, or start a session with a line of text before pasting an image.