Bug Report

Resolved 💬 3 comments Opened Jul 29, 2025 by codeyuan-A Closed Aug 15, 2025

Bug Description

Environment Info

  • Platform: darwin
  • Terminal: intellij
  • Version: 1.0.62
  • Feedback ID:

Errors

{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.50: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01PmjEr7d9drCEL8Pfqpj5yP. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at n4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n    at GP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n    at GP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async OvB.bG1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n    at async bG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n    at async OvB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n    at async hL0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n    at async re (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T09:54:56.055Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.50: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01PmjEr7d9drCEL8Pfqpj5yP. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at n4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:1248

Note: Error logs were truncated.

View original on GitHub ↗

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