[Bug] Anthropic API Error: Missing Tool Result Block

Resolved 💬 3 comments Opened Sep 20, 2025 by anneschuth Closed Jan 5, 2026

Bug Description
Whatever I try, I keep getting this error: "Each tool used bug must have a corresponding tool result block in the next message."

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 1.0.120
  • Feedback ID: 78b3499c-9438-4a14-b150-8436baa612ec

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.125: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_0149kv381HwhRc32JpgU6y4Y. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTKQdfw3P7aHjH88Wn2LC\"}\n    at new B5 (unknown:1:28)\n    at new OY (/$bunfs/root/claude:842:1962)\n    at new RG0 (unknown:1:28)\n    at generate (/$bunfs/root/claude:842:2419)\n    at makeRequest (/$bunfs/root/claude:859:5359)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-20T09:22:29.820Z"}]

View original on GitHub ↗

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