Image dimension limit (2000px) fails silently after submit, forcing /compact and context loss
Resolved 💬 3 comments Opened Apr 24, 2026 by RafaelRauber Closed May 1, 2026
Summary
When attaching multiple images, if any single image exceeds the 2000px dimension limit, the whole turn fails with:
An image in the conversation exceeds the dimension limit for many-image requests (2000px). Run /compact to remove old images from context, or start a new session.
The error only appears after the user submits — and the only suggested fix (/compact) destroys conversation context the user may want to keep.
Impact
- User has no way to know which image is oversized before submitting.
- User loses context (via
/compact) for a problem that was fundamentally a client-side validation miss. Esc Esc(Rewind) doesn't help because the failed turn never created a checkpoint.- Extremely frustrating when attaching batches of screenshots (common workflow).
Requested improvements
- Validate dimensions at attach time, not at send time. Show a warning the moment the image is dragged/pasted.
- Identify which image is oversized in the error message (name/index/dimensions).
- Offer auto-resize on attach (e.g. "This image is 3200x2400, resize to 1800px?") instead of silently accepting and failing later.
- Stop recommending
/compactas the only fix — it's destructive and unrelated to the root cause. At minimum suggest removing just the offending image. - Create a rewind checkpoint even for failed turns, so users can
Esc Escback to just before the bad attach.
Reproduction
- Attach several images to a message, with at least one >2000px on either axis.
- Submit.
- Turn fails with the error above. No indication of which image is the problem.
/compactis the only suggested recovery.
Environment
- Claude Code CLI
- macOS
- Workflow: attaching batches of screenshots for analysis
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗