Repository navigation
Closed
Labels
area:apiarea:corebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux
Description
Preflight Checklist
- I have searched existing issues and this hasn't been reported yet
- This is a single bug report (please file separate reports for different bugs)
- I am using the latest version of Claude Code
What's Wrong?
When a user pastes an image that exceeds the dimension limits (>2000px for many-image requests), the API returns a 400 error. However, the oversized image remains in the conversation history, causing all subsequent requests to fail with the same error - even plain text messages with no images attached.
What Should Happen?
One or more of the following should happen:
- Option A: Validate image dimensions at paste/upload time and reject before adding to conversation
- Option B: Provide UI to remove the offending image from conversation history
- Option C: Exclude failed images from being resubmitted in subsequent requests
- Option D: Display clear error with actionable recovery steps
Error Messages/Logs
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.100.content.2.image.source.base64.data: At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels"},"request_id":"req_011CVwMREcResPJWSbJmcuri"}Steps to Reproduce
- Paste a large image (e.g., >2000px on any dimension) into Claude Code
- Send the message - receive error:
messages.X.content.0.image.source.base64.data: At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels - Try to send a plain text message (no image)
- Same error occurs on every subsequent request
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.28 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
Suggested Fixes
- Immediate: Validate image dimensions before adding to conversation
- Short-term: Add UI control to remove messages/images from conversation history
- Long-term: Implement automatic retry without failed images, or client-side image resizing
Workaround
Currently, users must start a new conversation and manually reconstruct any important context.
Reacted by Simon McFarlane, Dylan Andersen, Allan Kimmer Jensen, Dan Sanduleac, zuccs, Steven Irby, Chabma, Enrique Munguía, Euclid556, Fadi Asbih and 80 more
Metadata
Metadata
Assignees
Labels
area:apiarea:corebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux
Activity
github-actions commentedon Dec 9, 2025
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
peterHoburg commentedon Dec 10, 2025
I am having the same issue.
DawidBester commentedon Dec 11, 2025
Also experiencing the same issue, after error chat cannot be continued: ⎿ API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.0.content.3.image.source.base64.data:
At least one of the image dimensions exceed max allowed size: 8000
pixels"
Saturate commentedon Jan 7, 2026
Yeah... very annoying, also happens for me:
Then it's just dead, you can't recover.
paocg01-ops commentedon Jan 11, 2026
having the same issue
stevenirby commentedon Jan 15, 2026
I would expect
/compactto at least recover from this state, but even that doesn't work. It just shows you the same error, and I'm forced to start a new conversation.ekokodan commentedon Jan 15, 2026
/compact seems to work now
116 remaining items