claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: 400 Tool Use Concurrency Issue Blocks Conversation Recovery [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54638Fetched 2026-04-30 06:40:09
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

[{"error":"Error: Tool mcp__claude_ai_Slite__ask-slite not found\n at c97 (/$bunfs/root/src/entrypoints/cli.js:3090:31272)\n at jD (/$bunfs/root/src/entrypoints/cli.js:477:21022)\n at IO (/$bunfs/root/src/entrypoints/cli.js:477:39569)\n at vh (/$bunfs/root/src/entrypoints/cli.js:477:50270)\n at rBH (/$bunfs/root/src/entrypoints/cli.js:477:86946)\n at nBH (/$bunfs/root/src/entrypoints/cli.js:477:85908)\n at wTH (/$bunfs/root/src/entrypoints/cli.js:477:85729)\n at cBH (/$bunfs/root/src/entrypoints/cli.js:477:82086)\n at cH (/$bunfs/root/src/entrypoints/cli.js:477:6377)\n at Ap6 (/$bunfs/root/src/entrypoints/cli.js:470:6902)","timestamp":"2026-04-29T11:10:27.239Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.5: tool_use ids were found without tool_result blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CaXxdjYPUjW29pL9EBZoy"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:10:30.396Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.5: tool_use ids were found without tool_result blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CaXxfUWpG28BhCarTg2pd"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:10:53.870Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.5: tool_use ids were found without tool_result blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CaXxh54yT9avpo2i6bjh6"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:11:15.558Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.5: tool_use ids were found without tool_result blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CaXxkWndXdj3D4dmgcSiQ"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:12:02.229Z"}]

Code Example

[{"error":"Error: Tool mcp__claude_ai_Slite__ask-slite not found\n    at c97 (/$bunfs/root/src/entrypoints/cli.js:3090:31272)\n    at jD (/$bunfs/root/src/entrypoints/cli.js:477:21022)\n    at IO (/$bunfs/root/src/entrypoints/cli.js:477:39569)\n    at vh (/$bunfs/root/src/entrypoints/cli.js:477:50270)\n    at rBH (/$bunfs/root/src/entrypoints/cli.js:477:86946)\n    at nBH (/$bunfs/root/src/entrypoints/cli.js:477:85908)\n    at wTH (/$bunfs/root/src/entrypoints/cli.js:477:85729)\n    at cBH (/$bunfs/root/src/entrypoints/cli.js:477:82086)\n    at cH (/$bunfs/root/src/entrypoints/cli.js:477:6377)\n    at Ap6 (/$bunfs/root/src/entrypoints/cli.js:470:6902)","timestamp":"2026-04-29T11:10:27.239Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaXxdjYPUjW29pL9EBZoy\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:10:30.396Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaXxfUWpG28BhCarTg2pd\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:10:53.870Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaXxh54yT9avpo2i6bjh6\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:11:15.558Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaXxkWndXdj3D4dmgcSiQ\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:12:02.229Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I'm getting an error in my conversation and am not able to resume/rewind : API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation.

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.1.116
  • Feedback ID: af443d22-d06b-47ae-8095-7bd9bfd11cfd

Errors

[{"error":"Error: Tool mcp__claude_ai_Slite__ask-slite not found\n    at c97 (/$bunfs/root/src/entrypoints/cli.js:3090:31272)\n    at jD (/$bunfs/root/src/entrypoints/cli.js:477:21022)\n    at IO (/$bunfs/root/src/entrypoints/cli.js:477:39569)\n    at vh (/$bunfs/root/src/entrypoints/cli.js:477:50270)\n    at rBH (/$bunfs/root/src/entrypoints/cli.js:477:86946)\n    at nBH (/$bunfs/root/src/entrypoints/cli.js:477:85908)\n    at wTH (/$bunfs/root/src/entrypoints/cli.js:477:85729)\n    at cBH (/$bunfs/root/src/entrypoints/cli.js:477:82086)\n    at cH (/$bunfs/root/src/entrypoints/cli.js:477:6377)\n    at Ap6 (/$bunfs/root/src/entrypoints/cli.js:470:6902)","timestamp":"2026-04-29T11:10:27.239Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaXxdjYPUjW29pL9EBZoy\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:10:30.396Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaXxfUWpG28BhCarTg2pd\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:10:53.870Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaXxh54yT9avpo2i6bjh6\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:11:15.558Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Rhf56T5ACxeQoFv3xNs9hv. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaXxkWndXdj3D4dmgcSiQ\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54074)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T11:12:02.229Z"}]

extent analysis

TL;DR

Run the /rewind command to recover the conversation and resolve the API Error 400 due to tool use concurrency issues.

Guidance

  • The error messages indicate a tool_use id without a corresponding tool_result block, suggesting a synchronization issue.
  • The /rewind command may help resolve this by reinitializing the conversation state.
  • Verify that the tool_use and tool_result blocks are properly paired in the conversation history.
  • If the issue persists, check for any concurrent modifications to the conversation state that may be causing the synchronization issue.

Example

No code snippet is provided as the issue seems to be related to the conversation state and tool usage, rather than a specific code error.

Notes

The provided error messages and guidance are based on the assumption that the /rewind command is a valid solution to resolve the conversation state and tool use concurrency issues. If this command is not available or does not resolve the issue, further investigation into the conversation history and tool usage may be necessary.

Recommendation

Apply the workaround by running the /rewind command to recover the conversation and resolve the API Error 400. This is recommended as it is explicitly suggested in the error message and may provide a quick resolution to the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: 400 Tool Use Concurrency Issue Blocks Conversation Recovery [1 participants]