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

  1. Start a Claude Code session
  2. Paste/upload any image larger than 2000px
  3. Observe API error
  4. Try sending a text-only message (no new image)
  5. 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

  1. Client-side auto-downscale images to ≤2000px before sending
  2. Add /strip-images command to surgically remove oversized images while preserving text context
  3. Pre-upload warning when image exceeds limit
  4. Make /compact also handle oversized image attachments

Environment

  • Claude Code CLI
  • macOS (Darwin 23.4.0)

View original on GitHub ↗

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