Missing Tool Result Block in Anthropic API Request
Bug Description
man, are the validations running on each commit?
⎿ API Error (Connection error.) · Retrying in 1 seconds… (attempt 1/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 1 seconds… (attempt 2/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 2 seconds… (attempt 3/10)
⎿ TypeError (fetch failed)
⎿ API Error (Connection error.) · Retrying in 4 seconds… (attempt 4/10)
⎿ TypeError (fetch failed)
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.91:
tool_use ids were found without tool_result blocks immediately after:
toolu_0121wiEWVBkoYVcXf86LRaJ6. Each tool_use block must have a corresponding tool_result
block in the next message."},"request_id":"req_011CT3cKM5Jvt7ECGQhe8V2L"}
hi?
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.91:
tool_use ids were found without tool_result blocks immediately after:
toolu_0121wiEWVBkoYVcXf86LRaJ6. Each tool_use block must have a corresponding tool_result
block in the next message."},"request_id":"req_011CT3cL4VSLjZKVCZ8nwrYZ"}
/compact
⎿ Error: Error during compaction: Error: API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.91: tool_use ids
were found without tool_result blocks immediately after: toolu_0121wiEWVBkoYVcXf86LRaJ6. Each
tool_use block must have a corresponding tool_result block in the next
message."},"request_id":"req_011CT3dYsMSkRbh2PbW6CLsL"}
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 1.0.72
- Feedback ID: 02346101-c090-4d88-adfd-51f1cb8b7323
Errors
[{"error":"Error: Failed to check bun permissions\n at q48 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1542:722)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async M$0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1542:840)\n at async hZ1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1552:43)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3280:10963","timestamp":"2025-09-11T05:44:30.956Z"},{"error":"Error: Invalid settings\n at e3Q (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:34480)\n at eYA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:35203)\n at $Y (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:35975)\n at FK1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:715:2033)\n at R91 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:2133)\n at Object.X [as onChange] (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2229:13267)\n at VR2.GA.isActive (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:806:22314)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:806:1004\n at A.Q.batchedUpdates (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:51112)\n at EventEmitter.F (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:806:984)","timestamp":"2025-09-11T05:44:46.909Z"},{"error":"Error: Invalid settings\n at e3Q (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:34480)\n at eYA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:35203)\n at $Y (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:35975)\n at f8 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:745:36174)\n at FK1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:715:2132)\n at R91 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:2133)\n at Object.X [as onChange] (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2229:13267)\n at VR2.GA.isActive (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:806:22314)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:806:1004\n at A.Q.batchedUpdates (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:329:51112)","timestamp":"2025-09-11T05:44:46.910Z"},{"error":"Error: Failed to check bun permissions\n at q48 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1542:722)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async M$0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1542:840)\n at async hZ1 (file:///usr/local/lib/node_modules/@a
Note: Error logs were truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗