[Bug] Anthropic API Error: Tool Use Concurrency Limitation
Resolved 💬 102 comments Opened Oct 6, 2025 by svjkumar89 Closed Nov 15, 2025
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
Bug Description
I got API error: 400 due to tool use concurrncy issues. Run /rewind to recover the conversaton.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.0.8
- Feedback ID: c801a33d-1569-41d3-8fdc-4ddbf7c1c57e
Errors
[{"error":"SyntaxError: Unexpected non-whitespace character after JSON at position 69 (line 6 column 1)\n at JSON.parse (<anonymous>)\n at file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:747:9932\n at Q (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:713:13287)\n at Ty2 (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:1037:37823)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-06T05:03:58.024Z"},{"error":"AggregateError\n at cp.from (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:713:39562)\n at oK.I1 (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:716:10122)\n at oK.emit (node:events:518:28)\n at oK.emit (node:domain:489:12)\n at mp1.<computed> (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:25:1161)\n at ClientRequest.emit (node:events:518:28)\n at ClientRequest.emit (node:domain:489:12)\n at emitErrorEvent (node:_http_client:104:11)\n at TLSSocket.socketErrorListener (node:_http_client:518:5)\n at TLSSocket.emit (node:events:518:28)\n at yQ1.request (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:718:2088)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async CWA (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:876:25965)","timestamp":"2025-10-06T05:04:01.035Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_012vfDPmD4zbXZoVbonY5XsB. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTqMu39vMdWoty9zdo9iW\"}\n at c9.generate (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:880:18734)\n at xP.makeStatusError (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:1025:2131)\n at xP.makeRequest (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:1025:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async STB.MI1.model (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:3174:18615)\n at async MI1 (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:2511:2114)\n at async STB (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:3174:18769)\n at async file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:3174:12991\n at async IT0 (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:3174:4232)\n at async q11 (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:3174:12961)","timestamp":"2025-10-06T05:04:27.139Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01GqmGQ87PvtAaxfdGe56QMC. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CTqMvCtawW4XguzUSohbX\"}\n at c9.generate (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:880:18734)\n at xP.makeStatusError (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:1025:2131)\n at xP.makeRequest (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:1025:5344)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async STB.MI1.model (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:3174:18615)\n at async MI1 (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:2511:2114)\n at async STB (file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:3174:18769)\n at async file:///C:/Users/Vijay/AppData/Local/nvm/v22.18.0/node_modules/@anthropic-ai/claude-code/cli.js:3174
Note: Error logs were truncated.
102 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
same. Can't get it working whatever is tried
Ditto
Ditto
up
why's claude code suck so hard? how is this not resolved yet?
2.0 was rushed and just sucks nothing is better about it
Hello, I'm having the same issue on Windows, but only with the VS Code extension. The problem can be worked around by using the command prompt.
When it happens with the extension, I have to use /rewind before using the tools to be able to resume the conversation, because if I test it on the last conversation, the error occurs in a loop.
I can't even get the /rewind command to work. It says it's not valid... In VS code
same
same
same shiit
Same issue facing in commad prompt
this is seriously a blocker! lost an entire day of productivity. Just downgraded to claude 1.0.88 and back to using Opus Plan mode until Anthropic gets it together.
This worked. Thanks @hyminix
It's not an issue on Windows only. I am having the same problem on Linux with Cursor, having the same error and having the /rewind option unavailable.
In my case, the problem occurred because Claude was trying to read too many PDF files at once while also running other tasks in parallel. When I instructed Claude to read the PDF files first and then perform the other tasks afterward, everything worked fine.
Same problem. I cannot find a way out of this hole.
I'm not sure if this is related, but I'm experiencing a similar but more severe variant:
Environment: macOS (Darwin 24.6.0), Claude Code v2.0.10
What happened:
API Error: 400 due to tool use concurrency issues/rewindmultiple times (no effect)claude -c(resumes broken conversation)Key difference: The conversation state is permanently corrupted and persists across sessions.
/rewinddoesn't work at all. Completely blocked from using Claude Code in this directory.Has anyone found a way to completely clear conversation cache/state to recover from this?
I encountered this on v2.0.10, upgraded to v2.0.11 (7b8230ab307cd20eff9b33b005acf734a22759f5, 48 mins old) & ~~it was resolved~~. _EDIT: spoke too soon, new PDF same problem._
Just ran into this as well. Not even trying to do anything with PDFs, just auto-editing in VS code.
Ditto on this
The /rewind command works for me on mac/VS_code extension, just enter /rewind and then use the arrow key to scroll up to the point you want to rewind the conversation to.
My own issue started when i uploaded two PDFs at the same time, so i just rewind back to the point before the PDFs and i uploaded it one after the other
This problem is destroying my entire experience with Claude code
Same issue on Mac with Claude Code for VS Code, v2.0.10.
Is not available.
my problem was the /hooks pre and post actions that caused this issue. Disabling all hooks solved the issue for now, but it's not a solution.
On MacOS using VS Code, there's no /rewind command available for the Claude Code extension.
Same issue
hit same issue for first time in Claude Code CLI. Starting new instance with new conversation worked. Rewind did not.
I tried many workaround without success. In my case, it was a specific PDF file causing the issue. Once unreferenced, it works.
Same issue here. I've run into it several times the last couple of days. VS Code, MacOS.
Same here, killing claude code and restarting it helps but sometimes not for too long. This started happening around 2 days ago. I didn't have the issue last week. Something is definitely degraded.
Same here.
I copied and pasted the entire conversation into a new one. Got it working, I think.
Got the error for the first time today on VS Code. /rewind doesn't even exist.
Between that and the insanely quick weekly limit I think it's time to leave anthropic and go somewhere else. I don't pay for those shenanigans.
The same issue. Have to stop using this
@qbyss
Are you on the latest version (2.0.11)? /rewind has been there for a while.
EDIT: Ah, I see from above replies it's not there in certain contexts.
Same here: Windows + VS Code
@ap1969 according to version history, latest version is 2.0.10
I've got 2.0.11
<img width="381" height="134" alt="Image" src="https://github.com/user-attachments/assets/11ad7ba2-cfb1-4427-97c2-33d20a9779c7" />
EDIT: Ah, CLI vs vscode differences
Yeah I suspect this is a situation where somehow the replies from Claude have out run the actual functionality for some platforms. Which is extremely annoying and risks implicating that the development flow has some significant issues when it comes to release cadence.
I've hit this twice in 20 minutes. No
/rewindin VS code; needs a full session reset each time.Showstopper.
Same here, just hit it in VScode for Mac (latest extension)
^ same
Makes the tool unusable unless preprompted not to use the feature.
(The context loss is my biggest Problem with this issue)
For people stuck on this, start terminal and run
claude(you might have to install it) then use the/rewindcommand and go back to the last part of the proper conversation (before problematic tool use happened). It will fork the conversation from there and it should be all set.I'm having to restart every 5 - 10 minutes. I'm on Claude Code v2.0.13.
Same here folks. Not working still. I think they are trying to resolve by providing updated versions but the issue is still same. v2.0.11 to 2.0.13, but still issue didn't resolved.
<img width="510" height="124" alt="Image" src="https://github.com/user-attachments/assets/5115960c-f53e-4e04-b4ce-609bd2d986bb" />
<img width="150" height="99" alt="Image" src="https://github.com/user-attachments/assets/44fb7f10-1d31-4e79-8a1c-23d648e2c151" />
Run into this one too. V2.0.11
Same problem here. Workaround is to tell Claude not to use concurrent calls for the time being and it will do things in sequence instead.
For anyone having this issue, just turn off auto update and downgrade your version, clearly an issue with the v2.0.10 to v2.0.13 release, ive switch to v2.0.5 which is working fine for my use cases so far
downgrade didn't help (
I'm running into this issue both in the terminal as well as in Cursor.
In Cursor, the error is more verbose:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_015U8ZZ8HHrc1wtHhNzum7Yw, toolu_01EREdMixJ8eZc7fNhydvd5E, toolu_01MYJpkEcyXWPAAvMuT9ucU4. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CTy3vh6fCggTXCxTcPF5T"}this seems to work! but obviously very slow
I have same issue, it happens after resuming a session
API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation.This is annoying af I must say.
Extension has been very unusable so far because of this issue. I'd prefer the option to just have the CLI interface in my vscode again
API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation.
Claude 2.0.13 Windows11 VSCode.
Blocker.
I have left messages in this discord thread https://discord.com/channels/1072196207201501266/1424738468336107550, also pinged the official account, no answer or even acknowledge that Anthropic team is looking into it...
Came here to find a solution, but leaving by saying that I have the same issue (and no solution to go back with)
launch claude on terminal then /rewind, go to the checkpoint you desired and you are good to go. It worked for me.
I avoid using the vscode extension, it has like 1/4 of the commands of the cli one.
I get the error a lot when a hook returns instructions:
<details>
<summary>claude code cli log</summary>
</details>
Also have the same message, closing vscode and launching again did not resolve. I dont want to start a new conversation.
Turning thinking on solves my problem
How do you enable thinking?
press 'tab'
Turning thinking on does not solve the problem for me. This bug is making my life impossible
same as up
API Error: 400 due to tool use concurrency issues. Run /rewind to recover the conversation.
Update of VSCode Claude Code extension solved the issue for me
Whenever the flow involved reading a PDF, it happened to me. I removed the instruction to read the PDF from the prompt, and it went away
I have just restarted the VSCode, Ctrl+Shift+P -> Developer: Reload window, and it worked.
@lonycn temporarily, then it happens again few minutes in... this was not happening so frequently a few days ago, that's the real problem. The frequency, and /rewind doesn't always bring the last failed conversation or command.
same issue.
Same
Metoo
<img width="634" height="108" alt="Image" src="https://github.com/user-attachments/assets/835dca29-c8e4-4ebd-9f70-fa4a6b35cc29" /> just happens
QQ same here
Same issue
same same
same issue...
Super bad right now. Can't even complete a relatively simple access. Got it 3x in the span of like 20 minutes.
✅ Temporarily fixed by disabling my hooks.
occurring for me on macOs 15.6.1 - Apple M4 Max
In Vsc, what works for me is to:
still keep getting this error
This worked for me, but to add to this, after uninstalling i "Updated/reloaded" extensions so it dissapeared from the list, and then i restarted vscode before trying again. I also couldn't continue the conversation i had that started this issue, i had to start a new convo to be able to use claude again.
tried all this and didnt work on latest mac book pro and then downgraded it to the last version 2.0.13 and tried and it worked some how, if that does not work use cli claude after downgrading ..
turning off hooks seems to help so far - but obviously we need the hooks for our workflow, so...
This is creating issues when @claude will fix it?
same issue here, but is rear, cuz is occuring only on new sessions, i mean, i have an open sesion from tuesday (6 days ago), and i can continue working on that sesion without any issue, but today i am having this issue trying to work from any place
I am using WSL on windows
Same problem here, /rewind does not work, i have to start a new session
Try downgrading to 2.0.8 and it will work, keep checking so it won't get auto updated.
Adding my experience with this issue.I t's been happening frequently (multiple times in the last few days) and significantly impacts usability.
Frequency: This 400 error occurs several times per day, making it impossible to complete multi-step tasks without interruption.
The real problem: When this error hits, the session is permanently broken. There's no recovery mechanism (the suggested
/rewindcommand doesn't even exist - see #9438). I'm forced to:This bug needs urgent attention as it's making Claude Code unreliable for any serious project work.
Environment: Claude Code 2.0.8, macOS Darwin 24.6.0, VSCode extension
And claude boasts on improving switching to openai codex once this subscription finishes, the extension is so bad. this has been going on for a week. @claude at this rate, anthropic will have no customers soon, rewind doesn't even exist in the commands, yet api says to rewind. who qa's your releases, do you even qa or do any regressions?
Workaround for "no recovery mechanism" issue:
@ergut @harshalone @rgrjnr @Maharaj95 - Research-backed solution using prompt engineering to prevent these errors: https://github.com/anthropics/claude-code/issues/8763#issuecomment-3391509893
Add the provided instructions to your global CLAUDE.md (
~/.claude/CLAUDE.md) to enforce sequential tool execution.Why this works:
Implementation: Copy the "Tool Execution Safety" protocol into your
~/.claude/CLAUDE.mdfile. The approach uses research-validated techniques to ensure Claude executes tools sequentially, waiting for each tool_result before issuing the next tool_use.This eliminates most instances of the 400 error and broken sessions. I haven't had the problem once since I added this.
/rewind exists in the CLI. That's why.
Safety protocol for parallel tool call bug:
Add this to your CLAUDE.md to get rid of this issue until it's fixed by Anthropic (comment)
This previous mentioned fix has been working for me so far: https://github.com/anthropics/claude-code/issues/9002#issuecomment-3400904849
ok for me this issue was resolved in windows wsl, by exiting claude, start claude only, and doing /init YMMV but /rewind didnt turn anything up
This is fixed. If you're still seeing it, please open a new issue.
This is not fixed
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.