claudekit / updates / claude-code-2-1-332
[ PATCH · ]

Claude Code 2.1.332

Adds skills from MCP servers (beta) and a PreSkillShellCommand hook event that can refuse a skill's inline shell commands. Fixes several freezes from endless hook output, a local MCP server flooding stdout and long commands checked against wildcard rules. On Google Cloud's Agent Platform and Microsoft Foundry, the sonnet alias and the default model move to Sonnet 5.5. About 150 changes.

Official announcement →

This article is a summary based on official documentation.

What changed

Claude Code 2.1.332 shipped on November 25, 2026, with about 150 changes. 70 of them are bug fixes, and 30 are for the VS Code extension. New features include skills from MCP servers (beta) and a PreSkillShellCommand hook event. The terminal no longer freezes while a hook or a local MCP server floods its output, or when a permission rule with several wildcards is checked against a long command. Model aliases, default models and the fallback when a model isn’t available change a lot on Amazon Bedrock, Google Cloud’s Agent Platform and Microsoft Foundry, so if you use a third-party cloud, read the Notes below first.

New features

  • Skills from MCP servers (beta)

    MCP servers couldn’t provide skills. They now can, and these skills show as server:skill in the / menu. Other skills keep their names.

  • PreSkillShellCommand hook event

    A hook had no way to refuse the inline shell commands in a skill or command file. The new PreSkillShellCommand event can refuse a skill or command’s inline shell commands as it loads. On 2.1.331 and older, a settings file naming it opens a dialog at start.

  • “Always deliver” for held messages from other sessions

    The prompt for held messages from other sessions had no option to always deliver them. It now offers “Always deliver”.

  • A footer line when a flagged message changes your model

    There was no lasting sign that a flagged message had your session on a different model. A footer line now stays until you pick a model with /model.

  • OpenTelemetry assistant_response event

    With response logging on, text Claude sent through SendUserMessage or Cowork’s message tool didn’t produce an assistant_response event. It now does.

  • Session save notices in VS Code and Desktop’s Code tab

    • A warning when part of a session couldn’t be saved, saying how to save it with /compact.
    • A notice when a resumed session’s earlier messages weren’t loaded, as the terminal already shows.
  • Cyber Verification Program tier in the startup header

    Your Cyber Verification Program access tier now shows beside the model name in the startup header, when your tier applies to that model and you’re signed in with a claude.ai account.

  • VS Code: new notices and info

    • A notification in more cases when closing a proposed diff leaves the edit unapplied, and no more diff notifications on a split copy of an answered diff.
    • A warning when restoring a conversation with /rewind in the side bar stops a self-paced /loop.
    • The installed version on the rows of Manage plugins.

Key improvements

  • Model aliases and default models on third-party clouds

    • On Google Cloud’s Agent Platform and Microsoft Foundry, the sonnet alias now means Sonnet 5.5, and Foundry’s opus alias means Opus 5.5. sonnet on Amazon Bedrock stays at Sonnet 4.5.
    • The default model on Microsoft Foundry is now Sonnet 5.5: deploy claude-sonnet-5-5, or set ANTHROPIC_DEFAULT_SONNET_MODEL to a model you have deployed.
    • sonnet and background requests on Agent Platform read VERTEX_REGION_CLAUDE_5_5_SONNET. With only the 4_5 variable set, they go to CLOUD_ML_REGION or us-east5.
    • Terminal and VS Code sessions moved to Sonnet 5 or 5.5 on Bedrock Mantle, Agent Platform and Foundry start in auto mode if no mode is set. Set disableAutoMode to "disable" to stop it.
    • On Microsoft Foundry, Claude Sonnet 4, Opus 4 and Opus 4.1 now count as retired, so step-downs stop above them and a pin to one warns that it was retired.
    • In the Claude apps gateway’s built-in model list, Sonnet 5.5 replaces Sonnet 4.5 as the second model, and Claude Desktop starts on it where a policy allows no Opus 4.6.
  • Falling back when a model isn’t available

    --model default and a Default pick stopped with an error when that model wasn’t available. They now move to an older model; in auto mode, only to a model auto mode accepts.

  • Code Mode

    • On resume, Claude is told up front that its earlier script variables are gone.
    • Claude confirms before discarding worktree changes, reads artifact files before publishing them, and updates an existing artifact instead of creating a second one.
    • Tool search cut long MCP tool descriptions, which could lead to wrong calls. It now shows them whole where they fit.
  • Computer use

    • The Screen Recording permission prompt can now restart Claude Code and resume the chat.
    • Computer use takes less context until Claude uses it.
    • Computer use on macOS follows newer safety rules, so some actions are refused and typing can be slower.
    • On Macs with computer use on, computer-use is a reserved skill name: your own skill or command of that name stops loading, and a start-up notice says to rename it.
  • Errors behind a proxy or gateway

    • When a proxy or gateway cut or damaged a compressed response, the turn showed raw “ZlibError fetching” text. It now ends in plain words.
    • Better recovery for long conversations behind a proxy or gateway with a request size limit, where every message and /compact failed with a 413.
  • Memory and speed

    • Lower peak memory use and faster /usage on machines with many recent sessions.
    • Faster Glob in large local folders on Windows machines with 6 or more CPUs: folders are walked in parallel, and a search stopped at its time limit now lists what it found.
    • Less memory use when resuming a long conversation, at startup with MCP servers that list many tools, and for claude -p and SDK-hosted sessions at the start of a conversation.
  • Windows and Linux

    • claude plugin marketplace add on Windows waits and tries again in some cases when another program, such as a virus scanner, briefly holds the downloaded files.
    • Better stability on some company PCs, where Claude Code could exit with no output shortly after start.
    • On Linux, the Ctrl+V message names the package to install (wl-clipboard or xclip) when images can’t be read from the clipboard.
  • Commands and dialogs

    • /context has shorter output in fullscreen, so the total is less likely to scroll off in a short window, and the legend names its unit once.
    • /permissions refuses a rule that would be skipped at the next start, such as rm -rf with no tool name, and shows the reason.
    • PgUp and Home go to No on destructive questions, such as /clear from an agent’s view.
    • /feedback drafts in the terminal open on Not now, above separate rows to send the report alone or with the transcript.
    • /schedule, permission prompts and /loop’s cloud offer say “cloud scheduled task” instead of “routine” or “cloud schedule”. /routines still works.
    • Model switches from the Claude mobile app or claude.ai keep the effort level you saved for the previous model when none is saved for the new one.
  • Tap-mode voice dictation

    • Tap-mode dictation stopped after 15 seconds without new words or at 2 minutes. It now keeps the microphone on until 60 seconds without new words or 10 minutes, then keeps the text unsent; the next tap adds to it.
    • It stops when you send the prompt, and stops and says why when you edit it, a panel covers it, or the connection or a separate recorder program is lost.
  • OpenTelemetry

    • The default service.name of desktop Code tab sessions is now claude-code-desktop.
    • tool_input shows only the length of text sent through SendUserMessage or Cowork’s message tool, unless response logging is on (OTEL_LOG_ASSISTANT_RESPONSES=1).
  • Self-hosted runner and credential helpers

    • The CLAUDE_CODE_OAUTH_TOKEN prefix can now end in oat02- as well as oat01-.
    • claude self-hosted-runner setup with no arguments on macOS and Linux asks for the environment key in the terminal before Claude starts, and hides it as you paste.
    • awsCredentialExport times out after 10 minutes instead of waiting forever.
  • Behavior changes in Desktop, VS Code and the SDK

    • Claude Desktop’s Code tab on Anthropic’s API ignores default, side-request, alias and subagent model ids not starting with claude in your own settings beside a gateway address.
    • It also ignores a CLAUDE_CODE_AUTO_COMPACT_WINDOW under 200K in your own settings beside a gateway address; use /autocompact instead.
    • Plan mode in the desktop app’s Code tab and VS Code asks for approval instead of refusing when no auto mode safety check can judge a command, for plans entered from Manual or Accept edits.
    • SDK and claude -p mid-turn messages count as the user’s where feature flags aren’t fetched, as on clouds or with telemetry off, from Opus 4.8 on. Mark relayed text isSynthetic: true.
    • The hint a mod’s PromptHint hook receives leaves out the hint for selected text when the fullscreen footer has a label on its right.
  • VS Code: speed and dictation

    • Faster opening of the Claude panel and long sessions, better performance while long replies stream, and faster reading of diagnostics in very large workspaces.
    • Commands and one-line output opened in a plain text tab now wrap.
    • Voice dictation stops by itself after 60 seconds without recognized speech or 10 minutes, up from 15 seconds and 2 minutes. It also stops, and says why, when the microphone stops sending audio or the panel stays hidden.

Bug fixes

Freezes and lag

  • Read, @-mentions and compaction hanging on a named pipe that nothing writes to, such as a .env mounted by a locked secrets manager — the read now fails after 20 seconds.
  • A freeze when a permission rule or hook condition with several wildcards was checked against a long command.
  • Freezes and runaway memory use, in most cases, while a hook prints output without end.
  • A freeze and context overflow when a hook blocks or fails during a turn, or after /compact, with a very large log — text over about 50,000 characters is now shortened.
  • The terminal freezing, and ignoring Ctrl+C, while a local MCP server floods its standard output.
  • A freeze when a prompt or piped input holds an @ followed by a very long unbroken string, such as minified CSS with an embedded font.
  • A long freeze when opening a rewind point after a large tracked file was rewritten.
  • A rare hang when a helper command, such as an API key helper, ran past its time limit.
  • Resuming a session and /stats freezing for seconds when a transcript holds many damaged lines, and keys lagging for seconds while /stats reads large session transcripts, also after the dialog is closed, and with debug logging on while a language server floods its stderr.
  • Esc not stopping a Bash command while it waited for its file diff in large or slow git repositories, which held the next message.

Compaction and context

  • Turns ending in “Prompt is too long” after repeated auto-compaction failures when one more compaction at the context limit could have kept them going.
  • Compaction failing when a summary kept running past the output limit — after three cut-off replies, the last try now asks for a shorter summary.
  • Idle compaction being skipped for subscribers still well under their weekly limit.
  • CLAUDE.md and rules files being sent to the model a second time, in most cases, after a session moves into a worktree under .claude/worktrees with EnterWorktree or is resumed there.
  • An @-mentioned text file with an extension being silently dropped when even its first 2,000 lines exceed the read limit — Claude is now told its size and how to read it.

Models and third-party clouds

  • The sonnet alias on Bedrock Mantle resolving to Haiku 4.5 — it now means Sonnet 5, not Sonnet 5.5, and an account without Sonnet 5 gets an error, so enable it first.
  • opus failing on Bedrock, Google Cloud’s Agent Platform and Foundry behind a gateway that refuses a model in its own words — it now steps down to an older model that answers.
  • An enforced list of older models failing on Agent Platform and Foundry when the first is refused — it now steps down to the next in that family, if listed newest first.
  • A session failing when the cloud refused its default model and an availableModels list that isn’t enforced named neither it nor an older model of that family.
  • A family name such as sonnet in --fallback-model being dropped when availableModels allows only an older version of it.
  • The start-up model upgrade offer on Bedrock and Agent Platform naming a model that your availableModels list leaves out.
  • Bedrock sub-agents failing when your account lists no profile for their model in the parent’s region — they now use the model’s own profile, which can be outside that region.
  • Foundry sessions leaving a model family when an admin’s list blocks the version sonnet, opus or haiku points to — they now use its newest allowed version under a built-in or mapped name.
  • A resumed conversation sometimes missing its last messages after a crash or kill on Bedrock, Agent Platform, Foundry and other third-party providers.

MCP and plugins

  • SSE MCP servers hanging or refusing every tool call after their event stream was cut and came back on a new endpoint or not at all, until reconnected by hand.
  • MCP tool calls failing with “malformed task handle” when the server’s task ID is longer than 128 characters — IDs of up to 1,024 characters now work.
  • Local MCP servers seeing a new session ID after a Remote Control session’s process restarts.
  • /mcp reconnect all and /mcp disable all counting a built-in server that isn’t turned on for the account, and OpenTelemetry reporting a failed mcp_server_connection event at each start for that server.
  • temp_* folders piling up in ~/.claude/plugins/cache when a downloaded plugin couldn’t be copied into place.
  • The plugin “not cached” error pointing to /plugin instead of /reload-plugins, the command that reloads plugins.

Code Mode

  • Silently skipping a tool call whose input has a list of over 4,096 items, and freezing on a very large typed array in a tool’s input, which is now refused.
  • A message typed during a command left unanswered when Esc was pressed before Claude replied — the message now starts a new turn, which a second Esc stops.
  • Not telling Claude when a slow command moved to the background and left its script with empty output, or of the time limit on background commands in claude -p and the Agent SDK.
  • Waiting for minutes on a command that had already been stopped, and resuming a paused workflow waiting for minutes while other background work was running.
  • A typed slash command’s inline shell commands not running after a background script’s output arrived.
  • Sessions in the Agent SDK and claude -p sometimes losing Claude’s last reply on resume after being stopped while a script was running.
  • Subagents failing with “Agent stalled” and losing their command when a script ran for more than 10 minutes.

Remote Control, Desktop and headless sessions

  • Remote Control showing a session in the desktop app, VS Code or the Agent SDK as running while it waited on a dialog or an MCP server’s question, and sessions hosted by the desktop app or VS Code showing as idle while /compact runs.
  • A usage limit being reported as reached to Remote Control, IDE and SDK clients after it had already reset.
  • A session sometimes losing its “needs input” status after a background task’s report in Claude Desktop.
  • Headless and cloud sessions reporting a foreground fork’s Agent call as finished the moment the fork started.
  • Tool calls that never ran being counted as done in a claude.ai chat’s summary line after you declined a permission prompt in a session that had restarted.

Authentication and self-hosted runner

  • claude auth login reporting Login successful. when a claude.ai login could not be saved — it now exits 1 and says what to check, such as a leftover lock file or a full disk.
  • Self-hosted runner sessions failing their first clone under Anthropic-managed git when the machine’s git config has an includeIf "gitdir:" or (git 2.44 to 2.46) "onbranch:" section.
  • --configure-git on the self-hosted runner sometimes reporting a hung git --version as a git that isn’t on PATH.

Tools and files

  • Grep issues: -o missing an empty match at the end of a file with no last newline, -o with multiline adding an empty line or misnumbering lines in non-UTF-8 files, and -A and -B ignored beside a zero -C.
  • NotebookEdit saving an invalid notebook when an edit changes a cell’s type — turning a cell with attachments into code is now refused.
  • Task ids being reused and deleted tasks coming back when several tasks were deleted or updated at once, and TaskGet listing completed tasks as blockers.
  • On Linux, the Bash edit diff showing an unchanged symlink as edited after Claude had read the file through it.
  • Web searches failing with an API error when Claude’s list of allowed or blocked domains was empty or had duplicates.
  • ~/.claude.json being reported as corrupted when another session was in the middle of saving it.
  • A long README in a design system moved from standalone Claude Design losing its list of files to load when Claude starts a deck or design.

Input and display

  • Ctrl+C at the prompt starting a new turn, and a double Ctrl+C not exiting, when a background agent it stopped had an unread subagent report.
  • Dictated text past 10,000 characters being lost.
  • Raw “JSON Parse error” and “The operation was aborted.” API errors when the non-streaming retry got a broken response or was interrupted.
  • Esc not stopping computer use between actions on macOS when Claude Code’s window or an app you allowed is in front — an Esc meant for that app’s popup now stops computer use instead.
  • Selecting text in fullscreen pushing the footer’s right-hand label onto a second row, which moved the text under the mouse and could copy the wrong line.
  • A PreToolUse hook’s reason for asking not showing on terminal Read, Grep, Glob, Edit and Write prompts (anthropics/claude-code#102892, anthropics/claude-code#105343).
  • --effort being ignored when starting an interactive session with --environment while CLAUDE_CODE_EFFORT_LEVEL is set to the same level.
  • Replies that start with phrases like “You’ve used” or “You’ve hit your” showing as a red usage limit error.
  • Stale and repeated rows in the fullscreen Ctrl+R history picker when prompts share a timestamp.
  • Unbinding a chord in keybindings.json still leaving its first key waiting for a second when it was spelled meta and bound as alt, or the reverse.
  • Moving an empty session to the background sometimes failing with “Couldn’t load transcript from file”.
  • Pasted links and relative paths ending in an image file name appearing late and swallowing an Enter pressed right after.
  • Interrupting a turn while a mod’s turn.step hook was waiting showing “user-cancel” as an error instead of “Interrupted”.
  • /install-github-app ticking a workflow again after going back with Esc.

VS Code: edits, rewind and sessions

  • Rewind staying on “Checking code changes…” while Claude’s process hung at its start.
  • The diff view’s “Copy deleted line” and “Copy changed line” copying a different line than they name, and a double-click near the bottom copying unasked.
  • The compaction summary showing as your own prompt, and in Rewind and prompt history, after reloading, resuming or forking a compacted conversation.
  • Forking a conversation, opening and saving memories, and creating project output styles failing on NTFS drives in VS Code 1.101 and 1.102 on Windows 11 24H2 and later.
  • Queued messages and attached files showing in reverse order after a conversation was reopened.
  • A session rename that cannot be saved reverting silently.
  • An empty, locked editor pane staying beside the next file or Claude tab after the last Claude tab was closed.
  • spinnerVerbs from Claude Code user and managed settings being ignored.

VS Code: input, display and accessibility

  • The model picker’s arrow keys starting from the wrong row right after it opens, and /model completed with Tab sometimes switching the model, and closing the model picker right away when nothing is running.
  • A held Up key replacing an unsent message with an earlier prompt, and Down not bringing the message back after the recalled prompt got a new line or was cleared.
  • The message box not underlining the word that an input method (IME) is composing.
  • A second Logout in the same window reporting success while the first was still running — the error when logout fails now has a Show logs button.
  • A sign-in that failed with no error message returning to the sign-in screen with nothing shown, and an authentication error still looking current after you signed in again in that tab.
  • The chat showing no notice when a background command, agent, workflow or monitor finished while Claude was idle.
  • Web Fetch showing “Fetched from” with a success dot when the site returned an error or a redirect that wasn’t followed.
  • Most links to files without an extension, to folders, and with a line and column doing nothing.
  • Redacted thinking showing as “Unsupported content type”, and a question that ended in an error showing “Something went wrong” when its stored result had no text.
  • The chat moving when a menu opened over some banners, and an agent’s tool call count shrinking in long sessions — it now shows how many of the calls are listed.
  • Right-to-left text from mods showing its punctuation on the wrong side, and a mod’s band or pane filling only part of its width when the panel font has no box-drawing characters.
  • Display issues: the blocked microphone’s tooltip being cut off, long addresses running out of Web Fetch rows, usage bars looking full in High Contrast, and a Thinking row jumping away when clicked.
  • Accessibility and question issues: screen readers not announcing the model picker’s highlighted model, a session’s status, which session is open or which groups are collapsed; a hidden panel’s notice not naming the waiting session; Hebrew and Arabic questions reading out of order; and a question cut off when Claude’s process ended showing only a red dot.

Notes

  • If you use Google Cloud’s Agent Platform or Microsoft Foundry, sonnet now means Sonnet 5.5, and Foundry’s opus means Opus 5.5. sonnet on Amazon Bedrock stays at Sonnet 4.5, but on Bedrock Mantle it means Sonnet 5, and an account without Sonnet 5 gets an error until you enable it.
  • If you use Microsoft Foundry, the default model is now Sonnet 5.5: deploy claude-sonnet-5-5, or set ANTHROPIC_DEFAULT_SONNET_MODEL to a model you have deployed. A pin to Claude Sonnet 4, Opus 4 or Opus 4.1 now warns that it was retired.
  • If you set regions per model on Agent Platform, add VERTEX_REGION_CLAUDE_5_5_SONNET. With only the 4_5 variable set, sonnet and background requests go to CLOUD_ML_REGION or us-east5.
  • If you use Sonnet 5 or 5.5 on Bedrock Mantle, Agent Platform or Foundry, sessions with no mode set start in auto mode. Set disableAutoMode to "disable" to stop it.
  • If you run Bedrock sub-agents, they now use the model’s own profile when the parent’s region has none, and that profile can be outside the parent’s region.
  • If several Claude Code versions share a settings file, one that names PreSkillShellCommand opens a dialog at start on 2.1.331 and older.
  • If you have a skill or command named computer-use on a Mac with computer use on, it stops loading, so rename it. Computer use on macOS also follows newer safety rules, so some actions are refused and typing can be slower.
  • If your OpenTelemetry filters key on claude-code, desktop Code tab sessions now report service.name as claude-code-desktop: update the filters, or set OTEL_SERVICE_NAME to keep the old name. tool_input also shows only the length of message text unless response logging is on.
  • If proxy rules or log scrubbers on a self-hosted runner match oat01-, update them for the oat02- prefix too, and mask the whole value.
  • If you relay text mid-turn through the SDK or claude -p, it can count as the user’s from Opus 4.8 on, so mark it isSynthetic: true.
  • If a script checks the result of claude auth login, it now exits 1 when a claude.ai login could not be saved.
  • If Read or an @-mention points at a named pipe, the read now fails after 20 seconds when nothing writes to it.
  • If you’re used to “routine” in /schedule or /loop, they now say “cloud scheduled task”, and /routines still works.
  • This post covers the main items only. See the GitHub release notes for the full list.