Conversation becomes unusable after uploading image >2000px — error persists for all subsequent messages
Resolved 💬 2 comments Opened Apr 20, 2026 by vuthanhbayit Closed Apr 20, 2026
Bug Description
When uploading an image larger than 2000px, the API returns a dimension limit error. The error persists for ALL subsequent messages — even text-only ones — because the oversized image remains in conversation history and gets replayed on every API call.
Error
An image in the conversation exceeds the dimension limit for many-image requests (2000px). Start a new session with fewer images.
Steps to Reproduce
- Start a Claude Code session
- Paste/upload any image larger than 2000px
- Observe API error
- Try sending a text-only message (no new image)
- Same API error persists
Expected
Either auto-resize before send, or provide a way to remove the offending image from history without wiping the entire session.
Actual
Only /clear resolves it — destroying all context. /compact does NOT help because it summarizes text but preserves image attachments. Users mid-task must choose between losing work or a broken session.
Suggested Fixes
- Client-side auto-downscale images to ≤2000px before sending
- Add
/strip-imagescommand to surgically remove oversized images while preserving text context - Pre-upload warning when image exceeds limit
- Make
/compactalso handle oversized image attachments
Environment
- Claude Code CLI
- macOS (Darwin 23.4.0)
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗