Bug Report

Resolved 💬 1 comment Opened Sep 9, 2025 by BrancoVillegas Closed Sep 18, 2025

Bug Description

Environment Info

  • Platform: win32
  • Terminal: pycharm
  • Version: 1.0.109
  • Feedback ID: 7a111e41-034e-43a0-9b82-6d63e7f39c13

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Ln9nh1E3XKB54eapNTWjin. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSx7H4ELEkSB3Bpv5d6pn\"}\n    at X4.generate (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:963:2412)\n    at RT.makeStatusError (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:980:2131)\n    at RT.makeRequest (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:980:5344)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async N7B.zY1.showErrors (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1879:29389)\n    at async zY1 (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1879:17996)\n    at async N7B (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1879:29216)\n    at async file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1879:24065\n    at async BE0 (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1879:4265)\n    at async a11 (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1879:24035)","timestamp":"2025-09-09T03:22:25.551Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0: all messages must have non-empty content except for the optional final assistant message\"},\"request_id\":\"req_011CSx7LcqE8nGXcKD2waYKU\"}\n    at X4.generate (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:963:2412)\n    at RT.makeStatusError (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:980:2131)\n    at RT.makeRequest (file:///C:/Users/HolaM/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:980:5344)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-09T03:23:13.801Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗