[Bug] Claude Code session crashes on oversized image instead of skipping file

Resolved 💬 3 comments Opened Feb 20, 2026 by nyosegawa Closed Feb 23, 2026

Bug Description
I was in the middle of an ongoing Claude Code session that was reading multiple images.

One image exceeded the max allowed dimension, and the API returned:

400 invalid_request_error
messages.3.content.50.image.source.base64.data:
At least one of the image dimensions exceed max allowed size: 8000 pixels

The 400 error itself is acceptable as a single read failure.
The bug is that after this error, the entire Claude Code session stops and I have to manually resume it.

Expected behavior:

  • Handle this as a per-file failure only
  • Skip/mark that image as unreadable
  • Keep the session running

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.49
  • Feedback ID: 285122e2-f332-403c-bc37-748657aba867

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/sakasegawa/.local/share/claude/versions/2.1.49 (expected in multi-process scenarios)\n    at PFR (/$bunfs/root/claude:2599:2098)\n    at iyA (/$bunfs/root/claude:2599:1209)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-20T08:34:59.828Z"},{"error":"Error: LSP server plugin:rust-analyzer-lsp:rust-analyzer crashed with exit code 1\n    at <anonymous> (/$bunfs/root/claude:2550:21471)\n    at emit (node:events:98:22)\n    at #handleOnExit (node:child_process:520:14)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-20T08:35:01.361Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗