[BUG] Cant resume chat [API error 400]

Resolved 💬 4 comments Opened Nov 2, 2025 by mohammed-saalim Closed Jan 20, 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?

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_

View original on GitHub ↗

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