What changed
Claude Code 2.1.331 shipped on November 23, 2026, with about 135 changes. 78 of them are for the VS Code extension, mostly fixes to keyboard handling, diffs and the panel, plus speed improvements. In the terminal, Code Mode now works on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude Platform on AWS, MCP tool calls no longer hang for up to 30 minutes on some malformed replies, and an interrupted or failed plugin update no longer leaves a partial plugin folder behind. Admins have a few things to check, such as managed settings in the Windows registry and an upcoming default for marketplace auto-update, so see the Notes below.
New features
-
Code Mode on third-party cloud providers
Code Mode, where Claude writes scripts that call several tools at once, wasn’t available in terminal sessions on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry or Claude Platform on AWS. Terminal sessions on these providers now support it.
-
optionalDependenciesin plugin manifestsA plugin had no way to bring along other plugins as optional extras. Plugins listed in
optionalDependenciesnow install with the plugin listing them and can be disabled or uninstalled on their own. The plugin auto-update notice also names plugins it newly installs as dependencies, separately from updated plugins. -
API connectivity in
claude doctorclaude doctordidn’t tell you whether the API could actually be reached. A new API connectivity section reports whether it can, with the HTTP status or the error, or says why it wasn’t tested. -
Two Claude apps gateway settings
oidc.groups_jsonpath: groups sent as a list of objects couldn’t be read. It now reads groups from the matching entries of a list of objects with a small subset of JSONPath (RFC 9535).CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1: withoidc.use_proxy: true,NO_PROXYcould keep sign-in requests off the proxy. With this set, sign-in requests hand the proxy anhttpsIdP’s hostname even withNO_PROXYset.
-
CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSIONBehind a proxy that cuts compressed responses off, model replies could be truncated. This variable asks for uncompressed model responses. It’s not advised yet for self-hosted runners or Remote Control.
-
gen_ai.*attributes on trace spansclaude_code.llm_requesttrace spans carried no token usage or response model. They now includegen_ai.usage.*,gen_ai.response.modelandgen_ai.operation.name;gen_ai.usage.input_tokensincludes prompt cache tokens. -
A notice when tap-mode voice dictation stops by itself
Tap-mode voice dictation could stop without saying why. A notice now shows when it stops after 15 seconds without recognized speech or at its 2-minute limit.
-
VS Code: new menu entries
- “Add Cell to Chat” in the notebook cell menu attaches a cell with its outputs or error.
- “Fix with Claude Code” is a quick fix for errors and warnings, and appears on failed tests in the test peek and the Test Results view; it puts the problem into the chat box.
- “Add to Chat” in the right-click menu of changed files in the Source Control view.
- “Resolve Merge Conflicts” in the editor title of a file with merge conflicts and in the Merge Changes group in Source Control.
-
VS Code: warnings for large input and logout
- A notice before sending a very large selection or attached text file, and advice under “Prompt is too long” that names the large part and what to do next.
- A warning and a link to the revoke page when you log out and the request to revoke your claude.ai login isn’t confirmed.
Key improvements
-
Faster start-up
A session started soon after another waited for the model list, and one outside a git repository without
.claude/settings.local.jsonwaited on git. Neither waits now. On Windows, the first Bash command in a session is also faster on machines with no custom shell start-up files. -
Typing speed in screen reader mode
Typing in screen reader mode was slow, and slower in long sessions. It is now faster, most of all in long sessions.
-
Code Mode tool search
Code Mode tool search showed little of an MCP tool’s description, so constraints were easy to miss. It now shows more of it, with its limits, formats and defaults.
-
A shorter Console sign-in link
The Console sign-in link shown by
/loginandclaude auth login --consolewas long. It is now much shorter. -
Web pages marked in Claude’s list of your artifacts
Claude sometimes tried to open a web page artifact with the Claude Docs connector. The list now marks web pages, so Claude is less likely to do that.
-
Folder trust prompts in short terminals
Folder trust prompts were hard to use in short terminals. Fullscreen
/cdand/add-dirnow show their choices in fewer rows, and the prompt at launch keeps the folder path in view when it has many warnings. -
Answer order in confirmation questions
The questions for stopping auto-connect in
/ide, and for/clear,/compactor/rewindin a subagent’s view, now list Yes first. They still start on No, so Down then Enter now answers No. -
What
retry: truemeans in aPermissionDeniedhookA
PermissionDeniedhook’sretry: truenow tells Claude to make the refused call again only if you asked for that call. -
VS Code: speed and memory
- The panel and new chat tabs open faster, a first message in a new tab is answered sooner, and on Pro and Max plans the folder trust dialog comes up sooner.
- Opening, restoring and switching back to long conversations is faster, most of all with many file edits or where git is slow.
- Long chats are more responsive: smooth typing and large file writes while a reply streams, faster permission prompts, and far less freezing on send with accessibility support on.
- Remote windows (SSH, WSL, containers) start the panel, show replies and reopen sessions faster.
- Faster first replies in a new folder when the Python extension is installed and the folder has no Python, after a chat has been idle for a few minutes on a machine low on memory, and on slow or antivirus-scanned disks.
- Diffs appear faster in reopened conversations, and diff menu entries that did not work are gone.
-
VS Code: the @ file menu and sign-in screen
- The @ file menu lists the files of open editor tabs first, the most recently used on top.
- The sign-in screen says when it opened because a request was refused.
-
VS Code: behavior changes
- Saving a proposed diff accepts it only after you click or type in its proposed (right) side; a notification says when a save is refused or a close with Save applies nothing.
- Diffs from a terminal session open without moving keyboard focus, and beside a file with unsaved changes. To answer, click Accept or use the terminal.
- Permission cards show only Yes and No when
allowManagedPermissionRulesOnlyis set and the card would offer an allow rule; key 2 on those cards now answers No. - A Claude tab ignores Enter and shows a notice when its Find box has lost the keyboard.
Bug fixes
MCP, plugins and connections
- MCP tool calls hanging for up to 30 minutes on some malformed replies from a local or WebSocket server.
- An interrupted or failed plugin update leaving a partial plugin folder that later loaded with skills or other components missing (anthropics/claude-code#102186).
claude plugin install,marketplace addand similar commands hanging with no output when managed settings needed an approval that could not be asked for.- A Workflow agent’s background shells and MCP servers sometimes being left running after it handed back its report.
- Turns and subagents failing in cloud sessions, or timing out on long replies elsewhere, when a reply went silent while Claude was still thinking — Claude Code now tries the request once more.
- Esc and Stop waiting about a minute or more when the contents of a cloud or network file that Claude is reading stall.
- A crash when a custom API endpoint returned a tool call with no tool name — the call now fails with an error and the session continues.
- The CLI freezing on some replies, and quoted text sometimes going missing or showing twice.
Code Mode
- Sessions resumed with
--resumeor--continuein another permission mode losing thinking and the prompt cache — one begun in a mode that asks keeps that mode’s limits on scripts. - Sending a request about every second when a
!or slash command was typed while a script was running. - Losing the middle of a long script output — Claude now gets a path to the uncut text (anthropics/claude-code#111373).
- Code Mode with
--barenot telling Claude what its scripts can call.
Permissions and agents
- A permission rule on a subagent’s model, such as
Agent(model:*), blocking Claude’s follow-up message to a subagent started on this version with no model named. - PermissionRequest hooks not saving
Skill(name:*)allow rules outside local settings. - Claude not being told when permission rules on the Agent tool dropped its queued message to a subagent that had already ended.
- Auto mode sometimes refusing Claude’s call to stop a /loop, which left the next wake-up to fire.
- “Ask your admin” asking to raise your own limit when your team’s pooled group budget blocked you, and saying “Request sent” when an admin had approved your request in the last few minutes.
Conversation history and files
- /compact and auto-compact sometimes losing part of the conversation summary when the summary quoted certain XML tags.
- A rewind deleting files after a restore had failed.
- @-mentions written as
@file#10-12attaching the whole file instead of those lines. - Claude failing to read a notebook that has a null output or an error output with no traceback.
- Sandboxed Bash commands sometimes failing to start on a full temp disk, for sandboxes whose file rules keep commands out of the temp directory.
- Claude misreading a pasted artifact invitation link — it now asks you to accept the invitation and paste the artifact’s own link.
Hooks, notifications and Remote Control
- Stop hooks that read the transcript missing the last reply in Claude Desktop — SubagentStop hooks now wait for it too.
- PushNotification telling a headless run, such as a scheduled one, that the terminal was active in its first minute, instead of saying whether a mobile push was requested.
- A Remote Control message sometimes showing above the reply that was finishing when it was sent.
Display and input
- One-line tool results cut with no ellipsis in narrow windows, Markdown stars in the Auto mode tab of /permissions, and a hook’s reason to stop a forked skill showing twice.
/diffhiding its key hints and not selecting files in windows of 24 to 26 rows, and leaving out files added withgit add -Nin a repository with no commits.- The first-run theme list showing too few themes in short windows, /usage and other tall screens coming out garbled there, and
/bugin fullscreen hiding its Yes and No answers behind a long report. - Hold-to-talk dictation stopping early and losing words when Claude Code was busy.
/install-github-appskipping the repository step after setup warnings when no repository was found, and Esc not going back from its workflow list and sign-in steps.
Windows
- Claude Code refusing to start when managed settings in the registry contain non-ASCII characters such as Japanese (anthropics/claude-code#93280).
- File writes on FAT32 and exFAT drives asking for permission every time in some plugin sessions.
/desktopdownloading the older Claude Desktop installer, and asking for an update when an older install’s folder was left behind.- A possible crash when the machine is almost out of memory, and Remote Control clients showing no steps for a new subagent.
VS Code: keyboard and input
- Shortcuts such as Ctrl+1, Alt+1 or Ctrl+Space answering an open dialog, which could restore files in the rewind confirmation or switch the git branch.
- Escape on a permission prompt sending a half-typed instruction to Claude instead of cancelling, Escape stopping Claude at a Remove or Delete confirmation in MCP, Hooks and Memory dialogs and in other spots, and Escape stopping Claude after renaming a session.
- Enter rewriting a message or running a menu action when a
/wordsuch as the path/apistands beside other text, and running a typed slash command without its arguments. - Ctrl+J and Ctrl+O in the chat also opening VS Code’s terminal or Open File dialog on Windows and Linux.
- The command menu keeping an earlier match highlighted while you type more in its filter, so Enter could run the wrong row.
- Typed text being lost after /tasks, /copy, /export, a skipped /feedback, or /plan while already in plan mode, a written message being wiped by Tab on a command in the ”/” button’s menu or by a click on an onboarding suggestion, a message queued behind a queued /clear being lost, and an @-mention added while a permission prompt was open being lost.
- The arrow keys replacing typed text with an old prompt while selecting, and dropping edits to a recalled prompt.
- The question card dropping a typed “Other” answer on Ctrl/Cmd+Enter, and sending the word “Other” when nothing was typed.
- A newly opened Claude tab not focusing its message box, or taking the keyboard late from the terminal or command palette and sending the typed text as a prompt.
- A quick double click in the panel pressing a button or row that appeared after the first click, or starting a second compaction from the context usage circle.
VS Code: diffs and edits
- Empty boxes showing instead of the + and − signs in diffs (anthropics/claude-code#73069).
- Claude not being told when you reject part of a proposed edit or change it in the diff view before accepting.
- Claude continuing to edit files after you rewind code while it is working.
- Diff tabs opening out of order when several subagents wait for approval, and a later edit to the same file cancelling an earlier one.
- Proposed changes to notebooks and files with a custom editor opening in a tab with no Accept or Reject that stayed open after the answer.
- Proposed diffs showing and saving garbled non-ASCII text when
files.encodingis not UTF-8, and approved edits and writes saving right-to-left marks as literalescapes on lines with Hebrew, Arabic or Persian text. - Unsaved changes being missed, and Claude’s edit being overwritten by the next save, in a folder opened through a symlink.
- An edited command on the permission prompt running without the line breaks that were typed or pasted into it.
VS Code: @-mentions and file links
- Alt+K line ranges such as
@app.ts#5-10sending the whole file, or its first 2,000 lines, instead of the selected lines. - @-mentions attaching nothing, or another file of the same name, after Claude changed folders with
cd. - The @ menu showing “No files found” before its first search results arrived, or when it couldn’t search all files of a very large workspace, which it now says.
- The @ menu inserting the wrong file on a quick Tab or Enter, and Enter not sending a prompt that ends in an @word with no matching file.
- File links in the chat ignoring your editor associations for files in the workspace, except notebooks (anthropics/claude-code#81482), and file links without a line number moving the cursor of an open file to line 1.
- Selected lines staying attached to your next message after their file’s tab was closed, and prompts that start with a file path or code comment being sent without the selected code and having no fork or rewind menu.
VS Code: sessions, panel and plugins
- A forked conversation overwriting the original conversation’s plan file — a fork or rewind that can’t copy the plan now shows a warning.
- Memory growing with each fork or rewind of a long conversation until the window was reloaded.
- The session list opening every transcript at once, which stalled the editor’s extensions and could leave sessions out in projects with many sessions.
- A chat left in bypass permissions mode reopening in Auto mode instead of your initial permission mode when settings disable bypass, and new sessions starting in Edit automatically after pressing Shift+Tab through it to reach Plan mode.
- Manage Plugins not loading when Claude Code is slow to start or fails to start, so a plugin that blocks startup can now be turned off; it also no longer loses its search box or stays silent when a search has no match or the list of available plugins fails to load.
- Electron apps and extension tests failing to start from Claude, a hook or an MCP server — a wrapper, hook or server that runs VS Code as Node must now set
ELECTRON_RUN_AS_NODE=1. - Switching models failing with “Settings file is not valid JSON” when settings.json is empty or starts with a byte order mark, and a model pick being ignored for the next message when Claude’s process had ended or was still starting.
- The chat no longer following Claude’s reply after the panel was resized, or hidden and shown again, and the chat panel freezing on some CSS code blocks and diffs.
- A missing notification when a conversation running behind another one in the same panel needs a permission or an answer, and plan comments not showing on the plan approval card in Focus view.
- The spend limit message telling Team and Enterprise members to run
/usage-credits, which can’t send a request to their admin from the panel. - Voice dictation saying no speech was recognized when its connection closed or never opened — it now says the connection was lost or couldn’t connect.
Notes
- If you deploy managed settings through the Windows registry, check them before upgrading: an
HKLMpolicy outranksmanaged-settings.json, and a broken value can stop the start. - If managed
extraKnownMarketplaceslists plugin marketplaces, they will auto-update by default in a future release, on or after November 30, 2026. This is not part of 2.1.331. To opt one out, set"autoUpdate": falseon its entry. - If a wrapper, hook or MCP server runs VS Code as Node, it must now set
ELECTRON_RUN_AS_NODE=1. - If you answer the
/ide,/clear,/compactor/rewindquestions from the keyboard, Yes is now listed first but they still start on No, so Down then Enter now answers No. - If your
PermissionDeniedhook returnsretry: true, Claude now makes the refused call again only if you asked for that call. - If you use
allowManagedPermissionRulesOnlyin VS Code, cards that would offer an allow rule show only Yes and No, and key 2 answers No. - If you accept proposed diffs in VS Code by saving them, a save now accepts only after you click or type in the proposed (right) side.
- If a proxy cuts off compressed responses,
CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSIONasks for uncompressed ones, but it’s not advised yet for self-hosted runners or Remote Control. - If you count tokens from
gen_ai.usage.input_tokens, it includes prompt cache tokens. - This post covers the main items only. See the GitHub release notes for the full list.