[Bug] Image size error persists after clearing prompt and image data
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.
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/12163
- https://github.com/anthropics/claude-code/issues/8039
- 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
What the heck! This bug exists for ages now. Do something!
+1
same here +1
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.
Still getting this silly issue about once every 2-3 days. Eventually goes away but nothing you can do in the short term.
Got same issue, it really blocker to my daily task. need help to fix this
@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.
Same for me
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".
any ETA on this?
same for me
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
Same issue. This bug exists for ages. There is no warning about the images size. Conversation session is unrecoverable when it happens.