Skip to content

Claude now not loading models #334077

Closed as not planned
Closed as not planned

Description

Type: Bug

Window: Agents

I've already reported these 2 issues where Claude isn't working correctly

#332905
#332896

but after updating to the latest version it's got even worse now the models don't load I get no models available.

If select an imported session I get Provider claude could not describe claude:/

and in the output logs I have errors like

2026-09-02 18:57:51.562 [error] [ProtocolServer] Request 'subscribe' failed Provider claude could not describe claude:/cc0e7559-5548-493b-a0f7-ed3d9e1562ce yet
2026-09-02 18:57:51.775 [info] [Claude] SDK not downloaded yet; deferring chat metadata until a session triggers the download
2026-09-02 18:57:51.776 [info] [Claude] SDK not downloaded yet; deferring chat metadata until a session triggers the download
2026-09-02 18:57:51.776 [error] [AgentService] async dispatchAction failed: Provider claude could not describe claude:/

I've followed the instructions on https://code.visualstudio.com/docs/agents/run/agent-harnesses although they are wrong as the suggested github.copilot.chat.claudeAgent.enabled setting that doesn't exist.

There does seem to be some sort of connection to claude as the plugins section does list the plugins I have installed in Claude.

It doesn't really help that the settings options keep changing as any issues that sound like they might be related refer to settings that don't exist anymore.

Is there anything other than chat.agentHost.claudeAgent.enabled and the Claude extension required to get it working?

VS Code version: Code 1.136.0 (Universal) (520fb30, 2026-09-02T09:13:42Z)
OS version: Darwin arm64 25.6.0
Modes:

System Info
Item Value
CPUs Apple M2 Max (12 x 2400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M2 Max, Version 26.6.2 (Build 25G83))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.6.2 ACTIVE
Machine model name: Mac
Machine model version: 14.5
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 5, 6, 6
Memory (System) 32.00GB (0.15GB free)
Process Argv --crash-reporter-id f3c72f05-ff72-490d-bc24-1b3d01df450e
Screen Reader no
VM 0%
Extensions (7)
Name Identifier Author Version
Tailwind CSS IntelliSense bradlc.vscode-tailwindcss bradlc 0.16.0
ESLint dbaeumer.vscode-eslint dbaeumer 3.0.34
ES7+ React/Redux/React-Native snippets dsznajder.es7-react-js-snippets dsznajder 4.4.3
Prettier - Code formatter esbenp.prettier-vscode esbenp 12.4.0
Auto Rename Tag formulahendry.auto-rename-tag formulahendry 0.1.10
GraphQL: Syntax Highlighting graphql.vscode-graphql-syntax GraphQL 1.3.10
XML redhat.vscode-xml redhat 0.29.3
A/B Experiments
vsliv368:30146709
vswsl492:30256859
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
478i5457:31544283
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
diffpatch-lysithea-0014-prod-ctrl:31577084
cp_cls_t_966_ss:31526232
4je02754:31572277
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
c9b86496:31447327
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
23c7c724:31520045
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
ahp-both-windows:31556933
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
sandbox-ui-on-2:31543161
enable_editor_pane_layout:31569726
allow-none:31555437
36h42362:31564511
c7c27ce7:31554789
1h923230:31564177
0dg73464:31554319
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
vrbsty_tr:31561058
session-archive:31558132
5b8j3302:31564601
mangle-name-control:31572633
artifacts_tool_on:31573135
39a5d156:31574986
2bfb8b39:31576696
permission_prompt_control:1332567
ccr_pr_nudge_adoption:1319471
vsc_wsm_c:1340633
eh853263:1370294
auto_mode_control:1367906

Activity

  1. dottodot commented on Sep 2, 2026

    @dottodot
    Author

    ok found a partial fix by downloading https://main.vscode-cdn.net/agent-sdk/claude/0.3.239/darwin-arm64.tgz

    and extracting into /Library/Application Support/Code/agent-host/sdk-cache/claude/0.3.239/darwin-arm64

    this brings back models and being able to access imported sessions just leaving the other 2 issues still. However I feel like vscode should be automatically updating the agent-sdk version

  2. mmontagnana commented on Sep 2, 2026

    @mmontagnana

    I tried Marcus's "partial fix". It didn't work at first because there's no .complete file in the folder ~/ibrary/Application Support/Code/agent-host/sdk-cache/claude/0.3.239.

    After creating it (touch .complete is enough) it worked. I can survive until there an official bugfix.

  3. grgar commented on Sep 3, 2026

    @grgar
    Contributor

    .complete had to go in the darwin-arm64 folder for me but then it worked well with the manual extraction, thanks!

  4. added
    bug
    on Sep 4, 2026
  5. mmontagnana commented on Sep 9, 2026

    @mmontagnana

    New update today, and version 1.137 has got the same problem. The Claude agent-sdk release is 0.3.258 this time, I asked Claude to write a bash script that reads the version from VS Code's code and installs the SDK.

    If you're interested, here it is:

    Script that automates the workaround (bash, macOS)
    #!/usr/bin/env bash
    #
    # install-claude-agent-sdk.sh
    #
    # Workaround for the VS Code regression where the Claude agent-sdk is never
    # downloaded, leaving the model picker empty ("No models available").
    #
    # Symptoms in Output -> Agent Host:
    #     [Claude] SDK not downloaded yet; deferring chat metadata until ...
    #     [Claude] Models refreshed (merged). Count: 0,
    #
    # There is no download error in the log because the download never starts.
    # The deadlock: the SDK is only fetched when a session triggers it, but no
    # session can start while the picker has no models.
    #
    # See: https://github.com/microsoft/vscode/issues/334077
    #
    # Two things that are easy to get wrong:
    #   1. The cache directory is only considered valid if it contains a
    #      zero-byte '.complete' sentinel file. Extracting the tarball is not
    #      enough on its own.
    #   2. VS Code must be closed. While it runs, the Agent Host polls the cache
    #      and removes '.complete' from directories it does not recognise, so the
    #      file appears and then vanishes a few seconds later.
    #
    # The expected version is declared in the devDependencies of VS Code's own
    # package.json; the script reads it and offers it as the default:
    #     grep -o '"@anthropic-ai/claude-agent-sdk": *"[^"]*"' \
    #       "/Applications/Visual Studio Code.app/Contents/Resources/app/package.json"
    #
    # Usage:  ./install-claude-agent-sdk.sh [version]
    #         VSCODE_APP=/Applications/VSCode-Insiders.app ./install-claude-agent-sdk.sh
    #
    
    set -euo pipefail
    
    CACHE_DIR="$HOME/Library/Application Support/Code/agent-host/sdk-cache/claude"
    CDN_BASE="https://main.vscode-cdn.net/agent-sdk/claude"
    VSCODE_APP="${VSCODE_APP:-/Applications/Visual Studio Code.app}"
    TMP_TGZ=""
    
    # Read the version VS Code declares in devDependencies. Returns an empty
    # string if the file is missing or the key has moved, in which case the
    # script asks for the version instead of failing.
    detect_version() {
        local pkg="$VSCODE_APP/Contents/Resources/app/package.json"
        [[ -f "$pkg" ]] || return 0
        grep -o '"@anthropic-ai/claude-agent-sdk"[[:space:]]*:[[:space:]]*"[^"]*"' "$pkg" \
            | head -1 \
            | sed 's/.*"\([^"]*\)"$/\1/'
    }
    
    # Always remove the temporary tarball, whatever the outcome.
    cleanup() { [[ -n "$TMP_TGZ" && -f "$TMP_TGZ" ]] && rm -f "$TMP_TGZ"; }
    trap cleanup EXIT
    
    fail() { printf '\n[ERROR] %s\n' "$1" >&2; exit 1; }
    
    # --- 1. Platform -----------------------------------------------------------
    # The cache is organised per platform; the directory name must match the one
    # used by the CDN.
    case "$(uname -s)-$(uname -m)" in
        Darwin-arm64)  PLATFORM="darwin-arm64" ;;
        Darwin-x86_64) PLATFORM="darwin-x64" ;;
        *) fail "Unsupported platform: $(uname -s)-$(uname -m)" ;;
    esac
    
    # --- 2. VS Code must not be running ----------------------------------------
    if pgrep -qf "Visual Studio Code"; then
        fail "VS Code is running. Quit it (Cmd-Q) and run this script again."
    fi
    
    # --- 3. Version ------------------------------------------------------------
    VERSION="${1:-}"
    if [[ -z "$VERSION" ]]; then
        if [[ -d "$CACHE_DIR" ]]; then
            echo "Versions currently in the cache:"
            for d in "$CACHE_DIR"/*/; do
                [[ -d "$d" ]] || continue
                v=$(basename "$d")
                if [[ -f "$d$PLATFORM/.complete" ]]; then
                    printf '  %-12s (complete)\n' "$v"
                else
                    printf '  %-12s (INCOMPLETE)\n' "$v"
                fi
            done
            echo
        fi
        EXPECTED=$(detect_version)
        if [[ -n "$EXPECTED" ]]; then
            echo "VS Code declares version $EXPECTED."
            read -r -p "Version to install [$EXPECTED]: " VERSION
            VERSION="${VERSION:-$EXPECTED}"
        else
            echo "Could not read the version from VS Code's package.json."
            read -r -p "Version to install (e.g. 0.3.258): " VERSION
        fi
    fi
    
    # Digits and dots only. This catches malformed input, not a transposed digit
    # such as 0.3.329 for 0.3.239 -- the download will fail on that instead.
    [[ "$VERSION" =~ ^[0-9]+(\.[0-9]+)+$ ]] || fail "Invalid version: '$VERSION'"
    
    DEST="$CACHE_DIR/$VERSION/$PLATFORM"
    
    if [[ -f "$DEST/.complete" ]]; then
        echo "Version $VERSION is already installed and marked complete."
        read -r -p "Reinstall from scratch? [y/N] " answer
        [[ "$answer" =~ ^[yY]$ ]] || { echo "Aborted."; exit 0; }
        rm -rf "$DEST"
    fi
    
    # --- 4. Download -----------------------------------------------------------
    URL="$CDN_BASE/$VERSION/$PLATFORM.tgz"
    TMP_TGZ=$(mktemp -t claude-sdk).tgz
    
    echo
    echo "Downloading $URL"
    # --fail makes curl exit non-zero on 404 instead of saving the error page as
    # if it were the tarball.
    curl --fail --location --progress-bar -o "$TMP_TGZ" "$URL" \
        || fail "Download failed. Check that version $VERSION exists."
    
    # --- 5. Inspect the tarball before extracting ------------------------------
    ENTRIES=$(tar -tzf "$TMP_TGZ" | wc -l | tr -d ' ')
    [[ "$ENTRIES" -gt 0 ]] || fail "The tarball is empty or unreadable."
    
    echo "Archive contains $ENTRIES entries. First few:"
    tar -tzf "$TMP_TGZ" | head -5 | sed 's/^/  /'
    
    # --- 6. Extract ------------------------------------------------------------
    mkdir -p "$DEST"
    tar -xzf "$TMP_TGZ" -C "$DEST" || fail "Extraction failed."
    
    # --- 7. The sentinel file --------------------------------------------------
    # Zero bytes: only its existence matters. Without it VS Code treats the cache
    # as incomplete and ignores it even when the contents are intact.
    touch "$DEST/.complete"
    
    # --- 8. Final check --------------------------------------------------------
    echo
    echo "Result:"
    ls -la "$DEST" | sed 's/^/  /'
    echo
    echo "Size on disk: $(du -sh "$DEST" | cut -f1)"
    echo
    echo "Done. Reopen VS Code and give it a few seconds -- the first load of the"
    echo "SDK is not instantaneous."
    echo
    echo "If the picker is still empty, check Output -> Agent Host. If it still"
    echo "says 'SDK not downloaded yet', the expected version is not $VERSION:"
    echo "  grep -o '\"@anthropic-ai/claude-agent-sdk\": *\"[^\"]*\"' \\"
    echo "    \"$VSCODE_APP/Contents/Resources/app/package.json\""
  6. mmontagnana commented on Sep 9, 2026

    @mmontagnana

    Just a note about the workaround.

    Version 0.3.258 of the sdk has a different structure than 0.3.239. The subfolders are not the same: there's only node_modules/@anthropic-ai, and it's 195MB instead of 351MB of 0.3.239.

    If you prefer to have a look, you can find the version required in /Applications/Visual Studio Code.app/Contents/Resources/app/package.json:

    Image
  7. mmontagnana commented on Sep 28, 2026

    @mmontagnana

    Update: on 1.140.0-insider the SDK upgrade path now works without the workaround.

    When Insiders moved from Claude SDK 0.3.258 to 0.3.281, the agent host downloaded and installed the new version automatically on first use (the old 0.3.258 folder was left in sdk-cache/claude/ though), and the first turn ran fine on Claude Code 2.1.281.

    So the fix from #334316 / #334405 seems to be effective on 1.140; the script above should only be needed on ≤ 1.139.

  8. vs-code-engineering commented on Nov 12, 2026

    @vs-code-engineering
    Contributor

    Thanks for the report and the workaround details. The SDK download deadlock was fixed in e3c3c45: a missing SDK now has a reachable Download action regardless of GitHub sign-in, and installation refreshes Claude models and session discovery. The confirmation above that automatic SDK upgrades work on 1.140.0-insider supports closing this report as resolved; the two earlier Claude issues remain separate. The fix shipped in 1.138.0.

    This issue was closed automatically: the fix shipped in 1.138.0, proposed by the VS Code sweeper and confirmed by an independent second review. It is closed as "not planned" rather than "completed" only because a "completed" close would put this already-shipped fix back into the current milestone's verification queue. If it still reproduces on 1.138.0 or later, reply here or reopen the issue and a maintainer will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions