[Bug] Anthropic API Error: 400 Invalid Request after /branch with concurrent tool use

Resolved 💬 2 comments Opened Apr 22, 2026 by Kealman Closed May 8, 2026

Bug Description
API Error: 400 due to tool use concurrency issues after /branch (fork) conversation

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.117
  • Feedback ID: 15f674ec-8a03-44b2-8349-eb8ca6f1c954

Errors

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at YW1 (/$bunfs/root/src/entrypoints/cli.js:1705:4045)\n    at async AW1 (/$bunfs/root/src/entrypoints/cli.js:1705:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:27:31.765Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.105: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01C1pd1qw8yJbP79vX5NbyxG. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CaJtRpMWuvPSmBFSBLDiY\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:54302)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:27:38.539Z"}]

View original on GitHub ↗

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