claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Image size error persists after clearing prompt and image data

Open count23all opened this issue 2 months ago • 12 comments

Bug Description "image was too large. double press escape to go back and try again with a smaller image". doing so does nothing, even if you fully blankt he prompt it still throws this message like the image is still embedded. even using ctrl+g to load the prompt in notepad and wipe it does nothing.

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.0.56
  • Feedback ID:

Errors

[{"error":"Error\n    at gq (B:/~BUN/root/claude.exe:27:1143)\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10086)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:02:22.275Z"},{"error":"Error\n    at gq (B:/~BUN/root/claude.exe:27:1143)\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10086)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:02:22.367Z"},{"error":"Error: Could not load the \"sharp\" module using the win32-x64 runtime\nPossible solutions:\n- Ensure optional dependencies can be installed:\n    npm install --include=optional sharp\n- Ensure your package manager supports multi-platform installation:\n    See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n    npm install --os=win32 --cpu=x64 sharp\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install\n    at <anonymous> (B:/~BUN/root/claude.exe:861:17172)\n    at <anonymous> (B:/~BUN/root/claude.exe:11:356)\n    at <anonymous> (B:/~BUN/root/claude.exe:862:88)\n    at <anonymous> (B:/~BUN/root/claude.exe:11:356)\n    at <anonymous> (B:/~BUN/root/claude.exe:862:79804)\n    at <anonymous> (B:/~BUN/root/claude.exe:11:356)\n    at <anonymous> (B:/~BUN/root/claude.exe:862:79980)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:06:48.311Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/claude.exe:1264:3939)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:08:16.562Z"},{"error":"TypeError: (L.default||L) is not a function. (In '(L.default||L)(H)', '(L.default||L)' is an instance of Object)\n    at OEH (B:/~BUN/root/claude.exe:862:80003)\n    at async L$$ (B:/~BUN/root/claude.exe:862:85057)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:11:31.389Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/claude.exe:1264:3939)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:13:31.339Z"},{"error":"TypeError: (L.default||L) is not a function. (In '(L.default||L)(H)', '(L.default||L)' is an instance of Object)\n    at OEH (B:/~BUN/root/claude.exe:862:80003)\n    at async L$$ (B:/~BUN/root/claude.exe:862:85057)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:15:40.703Z"},{"error":"TypeError: (L.default||L) is not a function. (In '(L.default||L)(H)', '(L.default||L)' is an instance of Object)\n    at OEH (B:/~BUN/root/claude.exe:862:80003)\n    at async L$$ (B:/~BUN/root/claude.exe:862:85057)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:19:27.696Z"},{"error":"Error: Request was aborted.\n    at _createMessage (B:/~BUN/root/claude.exe:416:3151)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:24:22.327Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/claude.exe:1264:3939)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:25:26.012Z"},{"error":"TypeError: (L.default||L) is not a function. (In '(L.default||L)(H)', '(L.default||L)' is an instance of Object)\n    at OEH (B:/~BUN/root/claude.exe:862:80003)\n    at async L$$ (B:/~BUN/root/claude.exe:862:85057)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:27:39.225Z"},{"error":"TypeError: (L.default||L) is not a function. (In '(L.default||L)(H)', '(L.default||L)' is an instance of Object)\n    at OEH (B:/~BUN/root/claude.exe:862:80003)\n    at async L$$ (B:/~BUN/root/claude.exe:862:85057)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:32:51.231Z"},{"error":"TypeError: (L.default||L) is not a function. (In '(L.default||L)(H)', '(L.default||L)' is an instance of Object)\n    at OEH (B:/~BUN/root/claude.exe:862:80003)\n    at async L$$ (B:/~BUN/root/claude.exe:862:85057)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-02T22:3

Note: Error logs were truncated.

count23all avatar Dec 04 '25 07:12 count23all

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/12163
  2. https://github.com/anthropics/claude-code/issues/8039
  3. https://github.com/anthropics/claude-code/issues/11887

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 04 '25 07:12 github-actions[bot]

What the heck! This bug exists for ages now. Do something!

jackfuchs avatar Dec 07 '25 00:12 jackfuchs

+1

benjaminb10 avatar Dec 08 '25 00:12 benjaminb10

same here +1

mejdi-bs avatar Dec 08 '25 13:12 mejdi-bs

For anyone still struggling with this I made a tool that may help: claude-code-image-sanitizer

  • Hooks into screenshot tools (Playwright, Puppeteer, Chrome DevTools MCP) and downsizes images automatically.
  • There's also a session repair script if you're already stuck.

Feedback/contributions are welcome.

MussaCharles avatar Dec 08 '25 16:12 MussaCharles

Still getting this silly issue about once every 2-3 days. Eventually goes away but nothing you can do in the short term.

someplum avatar Dec 11 '25 16:12 someplum

Got same issue, it really blocker to my daily task. need help to fix this

aldianriski avatar Dec 13 '25 23:12 aldianriski

@someplum and @aldianriski, try using my claude code image sanitizer plugin.
You can find it here https://github.com/MussaCharles/claude-code-image-sanitizer

This issue has been handled automatically for me since I started using it.
If you still face the same problem after installing it, file an issue on the repo and I will take a look when time allows.

MussaCharles avatar Dec 14 '25 03:12 MussaCharles

Same for me

aw-42 avatar Dec 16 '25 15:12 aw-42

This is also an issue for me. I have tried https://github.com/MussaCharles/claude-code-image-sanitizer and it seems to work successfully repairing the effected sessions, but then exiting and resuming or starting a new session the problem still happens and returns "image was too large. double press escape to go back and try again with a smaller image".

lukecode23 avatar Dec 19 '25 17:12 lukecode23

any ETA on this?

astronaute77 avatar Dec 24 '25 16:12 astronaute77

same for me

lahed avatar Dec 28 '25 04:12 lahed

Same for me, I tried /compact and it got me out of the loop a bit, but even a 1 pixel image thats microsmall is too large, which I know for a fact claude can handle this

snap-seo avatar Jan 06 '26 04:01 snap-seo

Same issue. This bug exists for ages. There is no warning about the images size. Conversation session is unrecoverable when it happens.

zielinski-k-marek avatar Jan 20 '26 11:01 zielinski-k-marek