Undefined Property Error in Tool Use Rendering

Resolved 💬 3 comments Opened Jul 2, 2025 by PMStander Closed Aug 20, 2025

Bug Description
I updated this morning and keep on getting: Cannot read properties of undefined (reading 'message')

file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2490:798

  • (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2490:798)
  • at Array.filter (<anonymous>)
  • Object.renderToolUseProgressMessage (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2490:763)
  • Object.renderToolUseErrorMessage (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2490:2513)
  • ST2 (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1958:2525)
  • ZU (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19802)
  • UP (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42556)
  • wP (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38105)
  • o$ (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38033)
  • MU (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37887)

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.40
  • Feedback ID: 975069e2-cd37-477d-bc8a-a8175d7e5ebf

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at FI (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n    at file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n    at Q (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n    at _X (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n    at H_ (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n    at U9 (file:///Users/peetstander/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-02T08:08:29.012Z"}]

View original on GitHub ↗

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