[Bug] Anthropic API Error: 400 Invalid Request due to Tool Use Concurrency

Resolved 💬 3 comments Opened Apr 18, 2026 by justnoon76 Closed Apr 22, 2026

Bug Description
API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation.

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.114
  • Feedback ID: 63e42501-ffdd-44fa-90c2-4e7b331c07b2

Errors

[{"error":"Error: FileHistory: Failed to copy backup bec8980453f6a262@v1 on restore (backup file does not exist in 015ef108-3616-4649-9eff-3401dea77f1f)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25908)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25746)\n    at async Oc8 (B:/~BUN/root/src/entrypoints/cli.js:2835:25620)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:36.491Z"},{"error":"Error: FileHistory: Failed to copy backup e83807f8c4b1ce2f@v1 on restore (backup file does not exist in 015ef108-3616-4649-9eff-3401dea77f1f)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25908)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25746)\n    at async Oc8 (B:/~BUN/root/src/entrypoints/cli.js:2835:25620)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:36.492Z"},{"error":"Error: FileHistory: Failed to copy backup e42795ed863c678a@v1 on restore (backup file does not exist in 015ef108-3616-4649-9eff-3401dea77f1f)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25908)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25746)\n    at async Oc8 (B:/~BUN/root/src/entrypoints/cli.js:2835:25620)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:36.492Z"},{"error":"Error: FileHistory: Failed to copy backup d5f0dc6290019a0a@v1 on restore (backup file does not exist in 015ef108-3616-4649-9eff-3401dea77f1f)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25908)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25746)\n    at async Oc8 (B:/~BUN/root/src/entrypoints/cli.js:2835:25620)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:36.492Z"},{"error":"Error: FileHistory: Failed to copy backup 00b6e80990bd6e2c@v1 on restore (backup file does not exist in 015ef108-3616-4649-9eff-3401dea77f1f)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25908)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25746)\n    at async Oc8 (B:/~BUN/root/src/entrypoints/cli.js:2835:25620)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:36.492Z"},{"error":"Error: FileHistory: Failed to copy backup 1cc345429efd27c6@v1 on restore (backup file does not exist in 015ef108-3616-4649-9eff-3401dea77f1f)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25908)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25746)\n    at async Oc8 (B:/~BUN/root/src/entrypoints/cli.js:2835:25620)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:36.492Z"},{"error":"Error: FileHistory: Failed to copy backup 910c8bb75224ee66@v1 on restore (backup file does not exist in 015ef108-3616-4649-9eff-3401dea77f1f)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25908)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25746)\n    at async Oc8 (B:/~BUN/root/src/entrypoints/cli.js:2835:25620)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:36.492Z"},{"error":"Error: FileHistory: Failed to copy backup e14fe0a279582398@v1 on restore (backup file does not exist in 015ef108-3616-4649-9eff-3401dea77f1f)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25908)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2835:25746)\n    at async Oc8 (B:/~BUN/root/src/entrypoints/cli.js:2835:25620)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:36.492Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01HzZEhV2pXLab4FZVoweiKP. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaBTthpBFEECLT8WJy9qr\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52913)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-18T15:21:42.454Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01HzZEhV2pXLab4FZVoweiKP. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaBTuyeTLW9biXkv7BSQ7\"}\n    at generate (B:/~BUN/root/src/entrypoin…

Note: Content was truncated.

View original on GitHub ↗

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