Missing Tool Result Block for Tool Use ID
Resolved 💬 1 comment Opened Jul 6, 2025 by greendesertsnow Closed Jul 7, 2025
This popped up right in the middle of a planned coding session.
Bug Description
API Error: 400
{"type":"error","error":{"t
ype":"invalid_request_error
","message":"messages.59:
tool_use ids were found
without tool_result
blocks immediately after:
toolu_01THcVtqRZJC7VdByxchv
3Db. Each tool_use block
must have a corresponding
tool_result block in the
next message."}}
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.43
- Feedback ID: 99898e78-46be-4436-be40-c8ad85fa760e
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:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n at file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n at Q (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at hJ (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n at S_ (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n at NB (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-06T12:53:49.884Z"},{"error":"Error: Command failed: security delete-generic-password -a $USER -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:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n at OpA (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:10150)\n at RpA (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:10024)\n at y9A (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2171:2567)\n at x9A.startOAuthFlow (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2171:3689)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-06T12:53:58.041Z"},{"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:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n at file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n at Q (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at hJ (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n at S_ (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n at NB (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-06T12:54:00.548Z"},{"error":"Error: Error opening file /Users/patrick/.claude/projects/-Users-patrick-projects-dilarashadcn/79760cca-7058-417c-b19f-8c2180849af3.jsonl: Error: ENOENT: no such file or directory, open '/Users/patrick/.claude/projects/-Users-patrick-projects-dilarashadcn/79760cca-7058-417c-b19f-8c2180849af3.jsonl'\n at yj1 (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:619:176)\n at async Bu1 (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:626:3274)\n at async file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:626:3689\n at async BU0.appendEntry (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:624:43)\n at async BU0.insertMessageChain (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:25454)\n at async VF1 (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:626:1903)","timestamp":"2025-07-06T13:19:31.359Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at RF (file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n at file:///Users/patrick/.claude/local/node_modules/@anthropic-ai/claude-code/cli.j
Note: Error logs were truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗