[Bug] VS Code extension: Tool use concurrency error after Jan 23-24 update
Open 💬 133 comments Opened Jan 24, 2026 by MiccoHadje
💡 Likely answer: A maintainer (km-anthropic, contributor)
responded on this thread — see the highlighted reply below.
Bug Description
VS Code extension update ~13 hours ago (Jan 23-24 2026) causes "API Error: 400 due to tool use concurrency issues" on every tool call.
- CLI works fine, only VS Code affected
- Error persists through extension reinstall, VS Code restart
- Downgrading to previous extension version fixes it
- Windows 11, Claude Max subscription
- Related issue: https://github.com/anthropics/claude-code/issues/9324
Actual API error: "messages.1: tool_use ids werefound without tool_result blocks immediately after"
API Error: 400 due to tool use concurrency issues.
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.1.19
- Feedback ID: 25315065-0492-4957-a3e9-81c51cc7df7f
Errors
[{"error":"Error: ENOENT: no such file or directory, scandir 'C:\\ProgramData\\ClaudeCode\\.claude\\skills'\n at Module.readdirSync (node:fs:1584:26)\n at file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n at yO (file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:35112)\n at Object.readdirSync (file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n at _D1 (file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2284:369)\n at file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2284:4279\n at q (file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:6814)\n at CB2 (file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4920:4362)\n at file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4920:6961\n at q (file:///C:/Users/clay/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:6814)","timestamp":"2026-01-24T11:58:34.525Z"}]
133 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Same! I literally can't work
same
+1
same here 1+
downgrade to vscode extension version 2.1.17 fixed the issue
uninstall the extension --> restart vscode --> install extension with 2.1.17 version -> fixedAdditional data point:
My setup had a
PreToolUsehook (running a Python script on every tool call via"matcher": ".*"). Removing the hook fixed the CLI, but the VS Code extension continues to throwAPI Error: 400 due to tool use concurrency issueson simple operations likeecho "__tool_test__".This suggests the extension has a separate code path triggering the concurrency issue, independent of user hooks.
Environment:
Screenshot attached shows the error occurring on a basic echo command in the extension.
+1 vs code extension literally become unusable
✅ WORKAROUND FOUND
The fix: Install VS Code extension version 2.1.17 while keeping CLI at 2.1.19
Steps:
Result:
claude --versionshows: 2.1.19What this tells us:
The bug is in the VS Code extension code (2.1.18 or 2.1.19), NOT in the CLI or API. The extension's tool call orchestration is broken in newer versions.
| Configuration | Status |
|---------------|--------|
| Extension 2.1.19 + CLI 2.1.19 | ❌ Broken |
| Extension 2.1.17 + CLI 2.1.19 | ✅ Works |
Hope this helps others!
I'm also getting this
Add me to the pile.
Also experiencing this on Linux (Garuda/Arch) with VSCodium + CLI
Environment:
Platform: linux (Garuda Linux / Arch-based)
IDE: VSCodium with Claude Code extension
CLI Version: 2.1.19
Subscription: Claude Pro (just subscribed today, Jan 24 2026)
Key finding: Unlike some reports, the CLI is also failing for me with the same thinking block error—not just the extension.
Error (both CLI and extension):
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.content.0: If an assistant message contains any thinking blocks, the first block must be thinking or redacted_thinking. Found text."},"request_id":"req_011CXTLk88zU9yYdVULufFFg"}
Reproduction:
Open Claude Code (CLI or VSCodium extension)
Ask any question that triggers a tool call (e.g., "can you see the files here?")
Error occurs on first tool use
Notes:
Fresh install, first day using the product
Error is immediate (not a long conversation / context corruption issue)
Restarting session doesn't help
Session is unrecoverable once the error occurs
in cursor extension happened too much. even i reset the session
problem solved when i disable extension auto update and install specific version 2.1.17 plugin
Cmd + Shift + X > extensions > claude code > setting > Install Another Version... > 2.1.17 > restart
same error
same
Same for me too
can confirm this too. v2.1.19 of the extension and get a lot of
<img width="438" height="120" alt="Image" src="https://github.com/user-attachments/assets/09754ebb-5faa-47b2-a8f6-d37ae216741d" />
same here....
same
same
Nice work on triaging this. I can confirm the exact same 400 error in the VS Code extension logs.
Env:
Error (repeated):
invalid_request_error:
tool_useids were found withouttool_resultblocks immediately afterOccurs in non‑streaming fallback, multiple times.
Log evidence:
C:\Users\user\AppData\Roaming\Code\logs\20260126T133640\window2\exthost\Anthropic.claude-code\Claude VSCode.log
lines 371, 639, 940, 1120, 1499
Additional (possibly separate) issue I also see:
ENOENT for missing skills dirs:
C:\ProgramData\ClaudeCode\.claude\skills
C:\Users\User\.claude\skills
Log:
C:\Users\User\AppData\Roaming\Code\logs\20260126T140056\window1\exthost\Anthropic.claude-code\Claude VSCode.log
lines 33, 44, 161, 173, 299, 310, 385, 396
Also saw:
MCP server "claude-vscode" Failed to fetch tools: MCP error -32601: Method not found
(same log file, lines 265, 451)
I created empty skills dirs locally to see if it suppresses the ENOENTs; happy to update after a clean restart.
Update: After full restart, ENOENT still appears, and 400 persists.
me also !!!
+1
+1
Same error here!
Same error
Same over here. Downgrading to
2.1.17fixes it.Same here
This also affects the VS Code extension on macOS.
same
same!
How the eff is this not assigned or something? Is this github unmonitored or something? The new version of no reply emails?
Same
+1 Experiencing the same issue.
Environment:
Behavior:
API Error: 400 due to tool use concurrency issueserrors during normal tool operationsWill try the 2.1.17 downgrade workaround.
+1
yupp +1
Until Anthropic devs fix this issue, the best workaround is to disable Auto Update and install specific version
2.1.17This has fixed the issue for me for now.
<img width="1017" height="290" alt="Image" src="https://github.com/user-attachments/assets/8a7aa2a0-051b-44f9-ad7b-d4b949052f86" />
Affected on MacOS, followed downgrade instructions and completely restarted vs code, Claude Code Chat works but another product I love using Chat for Claude Code is not :(
+1
+1, but downgrading to 2.1.17 fixed it for me (on Windows)
same...happened out of nothing, 1 minute is working another minute is not :(
+1
+1, will try the dowgrade
Another one here
Impacts me as well - Just downgraded to 2.1.17
Same issue - I'm downgrading to 2.1.17
Having this issue as well
😢
Same 🪳
Having this issue as well
Same issue - I'm downgrading to 2.1.17
same
Facing the same issue on both versions:
same
Facing same issue
I'm having this issue too starting in the last few days
same, 2.1.17 works 2.1.19 doesn't
Claude is broken for me too
Same and I downgraded to 2.1.17 and it is still happening.
Exact same boat here.
Same here... it is useless to try to get any work done in VS code..
Yup same, downgrading to 2.1.17 worked for me. Happening in local VSCode on MacOS and SSH'd remote connection VSCode on debian.
Same here. Hitting this error every 3 seconds. Can't work like this.
Downgrading to 2.1.17 fixed it for me.
Same issue on linux, downgrading to 2.1.17 and restart IDE fixed it for me.
Same Issue. MacOS/VS Code
+1
+1
+1
+1
Same. Claude Code basically useless now.
+1
+1, downgrading to 2.1.17 worked for me
+1
+1
+1
Same issue, 100% of my calls are hitting this
Same, Affects 100% of my calls +1
+1
+1
+1
+1
Same, affects 100% of my calls
<img width="376" height="378" alt="Image" src="https://github.com/user-attachments/assets/0833433d-3df0-4fb7-9174-5c9c82a99a5d" />
+1, downgraded to 2.1.17
+1
+1 here, will donwgrade soon
+1 blocking me
+1. all my calls are affected. why am i paying for this? (owngrading to 2.1.17 also fixes)
+1, confirmed the CLI is fine and downgrading to 2.1.17 also fixes
+1
+1
+1
+1
+1 Had to downgrade to get it to work... Really annoying
+1
+1
We've implemented a fix for this, and errors should be going down. Please tag if it's still present
Saw this just now. I am using the json-sdk so this isn't just a VSCode issue
The problematic experiment has been disabled, no upgrade needed.
@meawoppl yes- VSCode is built on the SDK and the issue was in the SDK.
we can we now use the latest version of the vscode extension ? all fixed ?
i changed nothing and it's working now, but i'm a newb so, maybe? XD
It worked for awhile, and it's broken again now. Latest extension version. Going back to 2.1.17 @km-anthropic
@blois - Unfortunately, this issue was not resolved in VS Code extension version 2.1.20.
I think the text of the error referencing "concurrency" is misleading. The issue appears to have nothing to do with concurrency. Even the prompt "What's in my home directory?" which results in a single tool call "ls -la ~/" leads to this error:
I'm still having this issue on 2.1.20.
I have this issue right now, since last night. in Cursor:
Version: 2.4.21 (Universal)
VSCode Version: 1.105.1
I'm still having this issue on 2.1.20.
Ditto, still having this issue on 2.1.20.
+1 having the issue.
@blois , not sure if you already saw this, but there is still people experiencing this issue, including me.
same. still having this issue.
+1
same, still happening :/
Identificateur : anthropic.claude-code
Version : 2.1.20
yup
Version : 2.1.20
downgrading to 2.1.17 worked to fix for now
Oh wow is this annoying! Hoping a fix is implemented soon
thanks, you're right, seems to be good for me for the moment
Identifier
anthropic.claude-code
Version
2.1.20
same here
Same issue as yesterday, errors should be recovering with no upgrade/downgrade needed.
Might be a coincidence then, but downgrading to .17 immediately resolved it.
+1 with the same issue
Just upgraded my subscription, can't use the latest version 🥲 . Downgrade for now folks
+1
+1
+1
+1
+1
+1
reopening this to take a look!
was on 2.1.27 and it worked for a half day before it started throwing errors again
Error rates for latest versions (>2.1.20) are much better, even than much older versions. If you are seeing this on newer versions, please make sure that the new version is actually running- may need to reload the VSCode window for an upgrade to take effect.
The issue is specific to the VS Code extension version, not the CLI -- the bug was introduced in a recent SDK experiment. Rolling back to a specific extension version fixes it while keeping your CLI up to date. You can find the full verified solution at https://cacheoverflow.dev/blog/Hx2IdZyg
I see this in the Android Claude app too, in Code. version 1.260223.17, com.anthropic.claude.
Once a conversation gets into this state, it keeps outputting new versions of this error, regardless of what I say. Eg:
Getting it as well
I am also getting it since March 5, 2026
<img width="1117" height="389" alt="Image" src="https://github.com/user-attachments/assets/555bec8d-c707-47aa-a596-727554483ee6" />
This "tool_use ids found without tool_result blocks" error typically means the extension's message handling is out of sync with the API — tool calls are being sent but their results aren't being properly paired.
Workaround 1 — Use the integrated terminal instead of Native UI:
Open VS Code's terminal (
Ctrl+`) and runclaude` directly. The CLI handles tool use sequencing correctly and doesn't have this issue.Workaround 2 — Update both the extension and CLI:
Make sure both are on the same version. Version mismatches between the CLI and extension can cause serialization issues.
Workaround 3 — Clear extension state:
Ctrl+Shift+P)~/.vscode/extensions/anthropic.claude-code-*/cache files, reopenWorkaround 4 — Reduce concurrent tool calls:
Add to your CLAUDE.md:
This is a performance tradeoff but may avoid the concurrency race condition in the extension's message handler.
The ENOENT error in your logs (
scandir 'C:\ProgramData\ClaudeCode\.claude\skills') suggests the extension is looking for skills in an unexpected path. This may be contributing — the extension may be erroring during skill discovery and corrupting the tool call sequence. Creating the missing directory might help: