[Bug] Chat halts on API error with no recovery mechanism

Resolved 💬 1 comment Opened Apr 14, 2026 by yuridivonis Closed May 25, 2026

Bug Description
chat got halted by an API Error. No way to resume the chat, it's dead.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.104
  • Feedback ID: 0957d9c1-73a5-4628-b4b7-df5fe990a9f7

Errors

[{"error":"MaxFileReadTokenExceededError: File content (177714 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async qyK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async Q0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-14T11:55:39.517Z"},{"error":"MaxFileReadTokenExceededError: File content (54492 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async qyK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async Q0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-14T11:55:53.021Z"},{"error":"MaxFileReadTokenExceededError: File content (17091 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async qyK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async Q0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-14T11:56:00.524Z"},{"error":"MaxFileReadTokenExceededError: File content (15815 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at eEK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4711:12912)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async qyK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4715:2638)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4720:7238)\n    at async Q0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-14T11:56:01.137Z"},{"error":"Error: Input buffer has corrupt header: pngload_buffer: end of stream\n    at yj6.vKz [as metadata] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1546:12669)\n    at sa (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1570:2199)\n    at async Gx8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2027:563)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2810:2098)\n    at async Q0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-14T11:56:13.932Z"},{"error":"Error: Input buffer has corrupt header: pngload_buffer: end of stream\n    at yj6.vKz [as metadata] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1546:12669)\n    at sa (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1570:2199)\n    at async Gx8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2027:563)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2810:2098)\n    at async Q0Y (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4178:8269)","timestamp":"2026-04-14T11:56:14.086Z"},{"error":"Error: Input buffer has corrupt header: pngload_buffer: end of stream\n    at yj6.vKz [as metadata] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1546:12669)\n    at sa (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1570:2199)\n    at async Gx8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code…

Note: Content was truncated.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗