[Bug] Error: No assistant message found in API response

Resolved 💬 3 comments Opened Oct 25, 2025 by kirso Closed Oct 28, 2025

Bug Description
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: No assistant message found
at Ud (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3356:12901)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3356:21948
at async nr1 (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3356:2007)
at async kJ (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3356:21804)
at async V9Q (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3363:200)
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: No assistant message found
at Ud (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3356:12901)

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.0.27
  • Feedback ID: 31f344a5-1f9b-4444-bcbc-bb29bb6a0e46

Errors

[{"error":"MaxFileReadTokenExceededError: File content (40658 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at nb2 (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3390:1682)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3399:1001)\n    at async Bq (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:725:1185)\n    at async file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1265:1379","timestamp":"2025-10-25T00:39:06.562Z"},{"error":"MaxFileReadTokenExceededError: File content (40658 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at nb2 (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3390:1682)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3399:1001)\n    at async Bq (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:725:1185)\n    at async file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1265:1379","timestamp":"2025-10-25T00:39:08.828Z"}]

View original on GitHub ↗

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