claude-code - 💡(How to fix) Fix [Feature Request] Increase maximum image count in context window [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#52412Fetched 2026-04-24 06:07:51
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: Failed to clone repository for git-subdir source: Cloning into '/home/air/.claude/plugins/cache/temp_subdir_1776953408260_gejf0n.clone'...\[email protected]: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n at C79 (/$bunfs/root/src/entrypoints/cli.js:1030:54069)\n at async stH (/$bunfs/root/src/entrypoints/cli.js:1030:56398)\n at async F79 (/$bunfs/root/src/entrypoints/cli.js:1036:11949)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1036:9256)\n at async wOK (/$bunfs/root/src/entrypoints/cli.js:1036:8470)\n at async jOK (/$bunfs/root/src/entrypoints/cli.js:1036:20463)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1036:21911)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8358:6468)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T14:10:09.446Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11.content.57.image.source.base64.data: At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels"},"request_id":"req_011CaLrJjuhP14sqwSvqUpXh"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52456)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T14:20:59.894Z"}]

Code Example

[{"error":"Error: Failed to clone repository for git-subdir source: Cloning into '/home/air/.claude/plugins/cache/temp_subdir_1776953408260_gejf0n.clone'...\[email protected]: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n    at C79 (/$bunfs/root/src/entrypoints/cli.js:1030:54069)\n    at async stH (/$bunfs/root/src/entrypoints/cli.js:1030:56398)\n    at async F79 (/$bunfs/root/src/entrypoints/cli.js:1036:11949)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1036:9256)\n    at async wOK (/$bunfs/root/src/entrypoints/cli.js:1036:8470)\n    at async jOK (/$bunfs/root/src/entrypoints/cli.js:1036:20463)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1036:21911)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8358:6468)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T14:10:09.446Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.11.content.57.image.source.base64.data: At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels\"},\"request_id\":\"req_011CaLrJjuhP14sqwSvqUpXh\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52456)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T14:20:59.894Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description why only 2 images in context

Environment Info

  • Platform: linux
  • Terminal: alacritty
  • Version: 2.1.112
  • Feedback ID: bd0c172b-cdc0-4d1c-ae9e-94f47d9f4672

Errors

[{"error":"Error: Failed to clone repository for git-subdir source: Cloning into '/home/air/.claude/plugins/cache/temp_subdir_1776953408260_gejf0n.clone'...\[email protected]: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n    at C79 (/$bunfs/root/src/entrypoints/cli.js:1030:54069)\n    at async stH (/$bunfs/root/src/entrypoints/cli.js:1030:56398)\n    at async F79 (/$bunfs/root/src/entrypoints/cli.js:1036:11949)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1036:9256)\n    at async wOK (/$bunfs/root/src/entrypoints/cli.js:1036:8470)\n    at async jOK (/$bunfs/root/src/entrypoints/cli.js:1036:20463)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1036:21911)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8358:6468)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T14:10:09.446Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.11.content.57.image.source.base64.data: At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels\"},\"request_id\":\"req_011CaLrJjuhP14sqwSvqUpXh\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52456)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T14:20:59.894Z"}]

extent analysis

TL;DR

The issue is likely due to exceeded maximum allowed image size for multi-image requests, causing the error and limiting the number of images processed.

Guidance

  • Check the dimensions of the images being processed to ensure they do not exceed 2000 pixels, as indicated by the error message.
  • Verify the request payload to confirm that the issue is indeed related to image size and not another aspect of the request.
  • Consider resizing images to be within the allowed size limit before making the request.
  • Review the documentation for any specific guidelines on handling large images or alternative methods for processing them.

Example

No code snippet is provided as the issue seems to be related to the size of the images rather than the code itself.

Notes

The error messages indicate a permission denied issue with cloning a repository and an error related to image size. However, the primary concern seems to be the image size exceeding the maximum allowed limit. The solution might involve addressing both issues, but the image size is the more immediate concern based on the information provided.

Recommendation

Apply workaround: Resize images to ensure they are within the 2000-pixel limit to prevent the error related to image size, allowing for the processing of more than two images in context.

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 [Feature Request] Increase maximum image count in context window [1 comments, 2 participants]