Undefined Property Access in Tool Use Rendering
Bug Description
TypeError: Cannot read properties of undefined (reading 'message')
at file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2484:798
at Array.filter (<anonymous>)
at Object.renderToolUseProgressMessage (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2484:763)
at Object.renderToolUseErrorMessage (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2484:2513)
at RO2 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1952:2525)
at ZU (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)
at EP (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42556)
at zP (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38105)
at r$ (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38033)
at LU (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37887)
ERROR Cannot read properties of undefined (reading 'message')
file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2484:798
- (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2484:798)
- at Array.filter (<anonymous>)
-Object.renderToolUseProgressMess (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:
ge 2484:763)
-Object.renderToolUseErrorMessa (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:24
e 84:2513)
- RO2 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1952:2525)
- ZU (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)
- EP (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42556)
- zP (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38105)
- r$ (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38033)
- LU (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37887)
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.38
- Feedback ID: f09b77c0-e723-49c9-aff3-f4e4c25ff3f2
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 WI (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:701:3921)\n at file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n at Q (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at SX (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n at K_ (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n at O9 (file:///Users/naveen/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-01T12:14:30.809Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:481:14)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-01T12:14:31.308Z"}]This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗