Skip to content

[BUG] Failure when there's over 100 images #19822

Description

@barrettj

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 using claude to edit images I reached an image limit and couldn't compact or continue:

What Should Happen?

I should be able to compact or continue in some capacity

Error Messages/Logs

Read image (5.2KB)
  ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Too much media: 0 document pages + 102 images > 100"},"request_id":"req_011CXLuUBKMffgQcCA9wfKbV"}
  ✻ Cogitated for 5m 51s
  ❯ .
  ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Too much media: 0 document pages + 102 images > 100"},"request_id":"req_011CXLuVk86SwnECT5auCkye"}
  ❯
  /compact
  ⎿  Error: Error during compaction: Error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Too much media: 0 document pages + 102 images >
  100"},"request_id":"req_011CXLuWpKdnGnnnXTDpAfEk"}
  ❯

Steps to Reproduce

I had claude working on editing images with image magick for a fair while

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.14 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

Feedback Id: dc0e605c-0b56-4730-bd2a-9dcbb10c1255

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions