[BUG] Cant resume chat [API error 400]
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?
Background: I have claude pro Im using VS code extension of claude code: Windows 11
Error:
i always get stuck with this error at one point:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.7.content.10.image.source.base64.data: Image does not match the provided media type image/jpeg"},"request_id":"req_011CUhYyJaSxQTAv7tSiNmH5"}
Later im forced to start a new chat, which has no context of the previous chat.
What Should Happen?
It should send some kind of warning or traceback option to resume chat.
Error Messages/Logs
Chat should response something, instead of repeatedly sending me this:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.7.content.10.image.source.base64.data: Image does not match the provided media type image/jpeg"},"request_id":"req_011CUhYyJaSxQTAv7tSiNmH5"}
Steps to Reproduce
I have a habit of attaching screenshots in most part of my coversation with claude code, and i think at one point it just throws me this error and stops responding.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.0.28 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
No response
Same here after using https://github.com/ChromeDevTools/chrome-devtools-mcp/ and taking a screenshot
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.