Repository navigation
Description
Environment
- Copilot Chat Extension Version: N/A
code --list-extensions --show-versions | Select-String "github.copilot"returns no result.- This is using VS Code's Agent Host / Claude Agent integration.
- VS Code Version: 1.136.2
- VS Code Commit: 88e44fa
- OS: Windows x64
- Feature: Agent Host / Claude Agent
- Selected model: Claude Fable 5.1
Problem
When starting a Claude Agent session with Claude Fable 5.1, VS Code's Agent Host downloads its own Claude Agent SDK into the Agent Host SDK cache, but the downloaded SDK contains Claude Code 2.1.239.
The session then immediately fails with the message that this model requires Claude Code 2.1.251 or later.
In other words, the same Agent Host path that downloads the Claude runtime downloads a version that is too old for a model already exposed in the model picker.
Important diagnostic detail
The failing binary is not my system Claude Code installation and not the Anthropic VS Code extension binary.
The process launched by VS Code is:
C:\Users\li\AppData\Roaming\Code\agent-host\sdk-cache\claude\0.3.239\win32-x64\node_modules\@anthropic-ai\claude-agent-sdk-win32-x64\claude.exe
That binary reports:
2.1.239 (Claude Code)
For comparison, both other Claude Code installations on the machine are already newer:
C:\Users\li\.local\bin\claude.exe
2.1.268 (Claude Code)
C:\Users\li\.vscode\extensions\anthropic.claude-code-2.1.268-win32-x64\resources\native-binary\claude.exe
2.1.268 (Claude Code)
So updating Claude Code itself or the Anthropic VS Code extension does not resolve the problem. The failing 2.1.239 binary is a separate copy managed/downloaded by VS Code Agent Host.
I confirmed the actual executable path with:
Get-CimInstance Win32_Process |
Where-Object { $_.Name -eq "claude.exe" } |
Select-Object ProcessId, ParentProcessId, ExecutablePath, CommandLine |
Format-ListSteps to reproduce
- Open VS Code Copilot Agent / Claude Agent session on Windows.
- Select Claude Fable 5.1.
- Start an agent task.
- VS Code Agent Host downloads/uses Claude Agent SDK
0.3.239from%APPDATA%\Code\agent-host\sdk-cache\claude\0.3.239\.... - The bundled
claude.exereports version2.1.239. - The session fails because Fable 5.1 requires Claude Code
2.1.251+.
Expected behavior
If Fable 5.1 is available in the model picker, Agent Host should either:
- download/use a Claude Agent SDK whose bundled Claude Code satisfies the model's minimum version requirement; or
- hide/disable the model until the Agent Host runtime is compatible.
Ideally the dependency should be upgraded automatically instead of asking the user to update unrelated system/extension copies of Claude Code.
Actual behavior
VS Code Agent Host downloads an incompatible runtime itself and then refuses to start the selected model because that runtime is too old.
This makes the error particularly confusing because manually updating every user-visible Claude Code installation has no effect on the Agent Host-managed SDK cache.
Activity
vs-code-engineering commentedon Sep 11, 2026
Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.137.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
hoshimoe commentedon Sep 11, 2026
Thanks. I checked the source while my current agent task is still running, so I can't restart VS Code immediately.
VS Code
1.136.2pins@anthropic-ai/claude-agent-sdkto0.3.239, which matches exactly the runtime downloaded by Agent Host on my machine.I also checked the
1.137.0source and it has already bumped the dependency to0.3.258, so this likely resolves the immediate compatibility issue with Fable 5.1.I'll upgrade to
1.137.0and verify the actual downloaded runtime and Fable 5.1 behavior once my current task finishes.One UX concern remains even if
1.137.0fixes it: on1.136.2, Fable 5.1 was exposed in the model picker while the Agent Host-managed runtime was incompatible with it. The resulting error only said that Claude Code was too old, which led me to update both my standalone Claude Code installation and the Anthropic VS Code extension, neither of which is used by Agent Host.Ideally, an incompatible VS Code build should either hide/disable the model, or the error should explicitly say that the VS Code / Agent Host runtime needs to be updated.
guilhermekf commentedon Sep 24, 2026
I got this issue with the new Opus 5.5.
This mean we don't have control to update the SDK to use new models on agents window.
masterbugs commentedon Sep 24, 2026
Yes, Agent Host is unable to pick up the latest models because of pinning claude-agent-sdk. I got around by copying the claude binary into the agent-host location.
cp /usr/local/bin/claude ~/Library/Application\ Support/Code/agent-host/sdk-cache/claude/0.3.258/darwin-arm64/node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64/But the same did not work for codex.
Sadly, insiders also don't have latest models of claude & codex when using Agent Host. This means we may have to wait atleast 2 weeks to use latest models in VS Code Stable Agent Host.
Eric-SHENNONGSHI commentedon Sep 29, 2026
Still reproducible on current stable: VS Code 1.139.1 bundles SDK 0.3.258, whose Claude Code is 2.1.258. Choosing the native Opus alias with the newer Opus 5.5 default fails with:
API Error: 400 Claude Code 2.1.258 does not support this model; version 2.1.280 or newer is required. Run 'claude update', or update the Claude desktop app, then try again.So the minimum for Opus 5.5 is 2.1.280. Copying a newer binary over the cached one, as described above, fixes it. After that, Fable 5.1 hits a separate bug, covered in #334750 (see my comment there).
— Claude (posted on Eric's behalf via Claude Code)