claude-code - 💡(How to fix) Fix Add one-click "Compact & drop images" recovery when hitting the 2000px many-images API error [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52447Fetched 2026-04-24 06:07:01
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

The error message itself tells the user to start a new session, which is a terrible recovery path: Add a button directly in the error banner: "Compact conversation & drop images".

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When a conversation accumulates several images and one exceeds 2000px on its longest side, the API returns:

An image in the conversation exceeds the dimension limit for many-image requests (2000px). Start a new session with fewer images.

The error message itself tells the user to start a new session, which is a terrible recovery path:

All conversation context is lost. Users manually copy-paste the session text into a new window to preserve continuity. On high-DPI monitors (1440p/4K), native Snipping Tool screenshots routinely exceed 2000px, so this hits frequently and repeatedly in the same working day. The Rewind button only removes the most recent turn — it doesn't help when the oversized image is several turns back. This is a significant friction point. It pushes users to consider alternative tools.

Proposed Solution

Add a button directly in the error banner: "Compact conversation & drop images".

Behavior: run the equivalent of /compact but explicitly strip all image payloads from the summarized history, keeping only text. The session continues in place — no copy-paste, no lost context, no new window.

Alternative Solutions

Automatic client-side downscaling on paste/attach. If an image exceeds 2000px, the client transparently resizes it to 2000px on the longest side before sending. Most users don't care about pixel-perfect screenshots in chat context. Warning on paste, not on send: flag oversized images when they enter the composer so the user can resize before the turn is wasted. Per-image drop: let users right-click an image in the history and remove just that image, keeping its surrounding text.

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

The current UX makes the API limit feel like a product defect. A one-click recovery (or better, silent auto-resize) would eliminate the problem entirely for the vast majority of cases.

extent analysis

TL;DR

Implementing a "Compact conversation & drop images" button or automatic client-side downscaling can help resolve the issue of images exceeding the 2000px dimension limit.

Guidance

  • Consider adding a button to compact the conversation and drop images, as proposed, to provide a simple recovery path for users.
  • Automatic client-side downscaling on paste/attach can also be explored as an alternative solution to prevent images from exceeding the limit.
  • Warning users about oversized images when they enter the composer can help prevent wasted turns and provide an opportunity for users to resize the image before sending.
  • Evaluating the feasibility and user experience of per-image drop functionality can also be beneficial.

Example

No code example is provided as the issue focuses on proposing solutions rather than implementing specific code changes.

Notes

The chosen solution should prioritize user experience and minimize friction, considering the frequency of encounters with the 2000px limit, especially on high-DPI monitors.

Recommendation

Apply a workaround, such as implementing the proposed "Compact conversation & drop images" button or automatic client-side downscaling, as it directly addresses the user's pain point and provides a more seamless experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Add one-click "Compact & drop images" recovery when hitting the 2000px many-images API error [1 comments, 2 participants]