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

Resolved 💬 16 comments Opened Dec 4, 2025 by count23all Closed Feb 27, 2026

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.

View original on GitHub ↗

16 Comments

github-actions[bot] · 7 months ago

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

jackfuchs · 7 months ago

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

benjaminb10 · 7 months ago

+1

mejdi-bs · 7 months ago

same here +1

MussaCharles · 7 months ago

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.

someplum · 7 months ago

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

aldianriski · 7 months ago

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

MussaCharles · 7 months ago

@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.

aw-42 · 7 months ago

Same for me

lukecode23 · 6 months ago

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".

astronaute77 · 6 months ago

any ETA on this?

lahed · 6 months ago

same for me

snap-seo · 6 months ago

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

zielinski-k-marek · 5 months ago

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

github-actions[bot] · 4 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 4 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.