Skip to content

Missing Tool Result Block for Tool Use in incorrect and unprompted Concurrent Agents Execution #5509

@theReallyRealDusty

Description

@theReallyRealDusty

Bug Description
Timed out. Then I trid going back the previous prompt and continuing from there. Then that somehow got 2 agents running in the same time, trying to do the same thing. I ran a /exit to stop it then resumed but now it's saying API Error: 400 {"type":"error","error":{"type":"invalid_reques
t_error","message":"messages.25: tool_use ids were found
without tool_result blocks immediately after:
toolu_01EqqrC85cWcn92HsggWCakB. Each tool_use block must
have a corresponding tool_result block in the next
message."}}

Environment Info

  • Platform: darwin
  • Terminal: rider
  • Version: 1.0.72
  • Feedback ID: 6379df44-7b45-4b2c-adc5-9f7265fc1fce

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.25: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01EqqrC85cWcn92HsggWCakB. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Q6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:933:2303)\n    at uP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n    at uP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async RRB.rZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n    at async rZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n    at async RRB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n    at async Iq0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n    at async P11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)","timestamp":"2025-08-10T18:11:48.288Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.25: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01EqqrC85cWcn92HsggWCakB. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Q6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:933:2303)\n    at uP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:2101)\n    at uP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:950:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async RRB.rZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24594)\n    at async rZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:13631)\n    at async RRB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:24445)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19427\n    at async Iq0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:5163)\n    at async P11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:19397)","timestamp":"2025-08-10T18:12:02.284Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:corebugSomething isn't workingduplicateThis issue or pull request already existsplatform:macosIssue specifically occurs on macOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions