[Bug] Anthropic API Error: 400 Tool Use Concurrency Issue from claude code (iTerm2 CLI)
Resolved 💬 1 comment Opened Apr 27, 2026 by rajeshfintech Closed May 30, 2026
Bug Description
API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.112
- Feedback ID: 443f3edd-e4e2-4c17-b959-d453d12c7152
Errors
[
{
"error": "Error: EISDIR: illegal operation on a directory, read '/Users/<USER>/workspace/<ORG_TOOLS>/<TICKET>-local-prod-mgmt'\n at WKH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-27T05:04:58.728Z"
},
{
"error": "Error: File does not exist. Note: your current working directory is /Users/<USER>/workspace/<ORG_TOOLS>/<TICKET>-local-prod-mgmt.\n at call (/$bunfs/root/src/entrypoints/cli.js:4727:7630)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-27T05:07:09.861Z"
},
{
"error": "Error: ENOENT: no such file or directory, scandir '/Users/<USER>/Users/<USER>/workspace/<SERVICE_REPO>'\n at async Hs4 (/$bunfs/root/src/entrypoints/cli.js:621:11190)\n at async kK9 (/$bunfs/root/src/entrypoints/cli.js:621:11692)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8268:14295)",
"timestamp": "2026-04-27T06:06:21.216Z"
},
{
"error": "Error: ENOENT: no such file or directory, scandir '/Users/<USER>/Users/<USER>/workspace/<SERVICE_REPO>'\n at async Hs4 (/$bunfs/root/src/entrypoints/cli.js:621:11190)\n at async kK9 (/$bunfs/root/src/entrypoints/cli.js:621:11692)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8268:14295)",
"timestamp": "2026-04-27T06:06:21.281Z"
},
{
"error": "Error: ENOENT: no such file or directory, scandir '/Users/<USER>/Users/<USER>/workspace/<SERVICE_REPO>'\n at async Hs4 (/$bunfs/root/src/entrypoints/cli.js:621:11190)\n at async kK9 (/$bunfs/root/src/entrypoints/cli.js:621:11692)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8268:14295)",
"timestamp": "2026-04-27T06:06:32.666Z"
},
{
"error": "Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.<N>: `tool_use` ids were found without `tool_result` blocks immediately after: <TOOL_USE_ID>. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"<REQUEST_ID>\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52701)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-27T06:07:30.676Z"
},
{
"error": "Error: API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation.\n at bf7 (/$bunfs/root/src/entrypoints/cli.js:4732:1096)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8402:15580)\n at async l (/$bunfs/root/src/entrypoints/cli.js:8203:552)\n at processTicksAndRejections (native:7:39)",
"timestamp": "2026-04-27T06:08:11.563Z"
}
]
Note: Content was truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗