Tool Message Parsing Failure Causing Irreparable Conversation State
Resolved 💬 4 comments Opened Jul 16, 2025 by taylorsatula Closed Jan 5, 2026
Bug Description
I hit the error wherein an unfinished tool message breaks the conversation in an unrecoverable way. Even if I were to close out, use 'claude --resume', go back 10 messages, and try to continue the chat it would still be broken. The best I can hope for is that I can paste my most recent message into a new chat and hope that Claude knows what I'm talking about.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.51
- Feedback ID: e429059c-a677-4d29-9856-abcf926f168c
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 eD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:712:4489)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13989\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:14406)\n at QF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13129)\n at cC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:11995)\n at qB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:16609)","timestamp":"2025-07-15T14:31:49.010Z"},{"error":"Error: Request was aborted.\n at iq.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:3838)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-15T14:46:39.891Z"},{"error":"Error: String not found in file. Failed to apply edit.\n at uT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1636:728)\n at k0A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1636:104)\n at Object.renderToolUseRejectedMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1646:4060)\n at L_2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1968:3008)\n at $w (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19804)\n at gP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n at vP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n at VL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n at mw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)\n at yW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:34990)","timestamp":"2025-07-15T14:46:41.866Z"},{"error":"Error: Request was aborted.\n at iq.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:3838)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-15T14:58:46.928Z"},{"error":"Error: Request was aborted.\n at iq.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:3838)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-15T14:58:46.933Z"},{"error":"AbortError\n at $0A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1584:693)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async oM (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:598:4714)","timestamp":"2025-07-15T14:58:46.937Z"},{"error":"Error: String not found in file. Failed to apply edit.\n at uT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1636:728)\n at k0A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1636:104)\n at Object.renderToolUseRejectedMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1646:4060)\n at L_2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1968:3008)\n at $w (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19804)\n at gP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n at vP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n at VL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n at mw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)\n at yW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:34990)","timestamp":"2025-07-15T14:59:38.649Z"},{"error":"Error: String not found in file. Failed to apply edit.\n at uT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/c
Note: Error logs were truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗