[BUG]

Resolved 💬 3 comments Opened Apr 27, 2025 by jrasanen Closed Nov 29, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 0.2.86
  • Operating System: Debian GNU/Linux 12 (bookworm)
  • Terminal: alacritty

Bug Description

During code generation this error keeps appearing repeatedly,

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:
TypeError: Cannot read properties of undefined (reading 'id')
    at file:///home/jussi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1816:13759

Steps to Reproduce

  1. Ask Claude Code to generate something

Expected Behavior

No errors

Actual Behavior

Receiving the above JavaScript error fairly often while using Claude Code.

Additional Context

Hard to replicate it consistently without access to the non-minified version to understand when it actually happens. From the minified code, this seems to be the position 1816:13759

let L=P.findIndex((o)=>o.id===R.message.content[0].id),k=P.findIndex((o)=>o.id===O.message.content[0].id);

View original on GitHub ↗

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