UPDATEclaude-code v2.1.332
Claude Code v2.1.332 gates MCP commands, fixes long sessions
This release brings beta MCP skills into the `/` menu and adds a pre-load gate for inline shell commands, while fixing compaction, MCP reconnection, model fallback, and long editor sessions. Teams using cloud models or long-running work should validate permissions and recovery paths first.
What changed in this release
18 checkpoints in 6 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Skills and command gating
- Beta MCP server skills appear as `server:skill` in the `/` menu, while existing skill names stay unchanged.
- The new `PreSkillShellCommand` can refuse inline shell commands while a skill or command loads.
- Macs with computer use enabled reserve `computer-use`, so custom skills or commands with that name must be renamed.
Long sessions and compaction
- After repeated auto-compaction failures, sessions no longer end with “Prompt is too long” when one more compaction could continue them.
- When a summary keeps exceeding the output limit, the final attempt asks for a shorter summary.
- Long conversations gain recovery logic for proxy or gateway size limits where every message and `/compact` fails with 413.
MCP and hook stability
- SSE MCP servers handle a new or missing endpoint after a stream cut, reducing manual reconnects.
- Large logs from blocked or failed hooks are shortened so text over about 50,000 characters does not consume context without limit.
- The terminal no longer freezes or ignores Ctrl+C when a local MCP server floods standard output.
Model selection and cloud fallback
- A family name in `--fallback-model` is no longer dropped when the allowlist contains only an older version.
- `--model default` and the Default picker step down when the target is unavailable, with auto mode limited to accepted models.
- Foundry requires `claude-sonnet-5-5` or `ANTHROPIC_DEFAULT_SONNET_MODEL`; enable Sonnet 5 before using Bedrock Mantle's `sonnet`.
Editor and desktop sessions
- VS Code and the Desktop Code tab warn when part of a session cannot be saved and explain how to use `/compact`.
- The Code tab now notes when earlier messages are not loaded after a session resumes.
- Opening, restoring, and switching long conversations, remote windows, and large histories receive performance optimizations.
Telemetry, voice, and status panels
- With response logging on, OpenTelemetry's `assistant_response` records text Claude sends through `SendUserMessage` or Cowork's message tool.
- Voice dictation silence limits rise from 15 seconds and 2 minutes to 60 seconds and 10 minutes.
- `/context` is shorter in fullscreen, and `/usage` reduces peak memory and runs faster with many recent sessions.
On this page
ContextThis release guards skill entry and repairs long-session recovery
This release adds beta MCP skill menu entries and a pre-load guard, and fixes long sessions, runaway output, cloud fallback, and editor recovery.
Six groups cover skills, compaction, MCP and hooks, models, editor reliability, and telemetry and voice. The figure shows their distribution; the sections below explain what to validate first.
Beta MCP skills join the `/` menu as inline commands face a pre-load gate
- Beta MCP skills appear as `server:skill` in `/`; verify menu entries and call permissions.
- `PreSkillShellCommand` can refuse inline shell commands while a skill or command loads.
- On Macs with computer use, `computer-use` is reserved; rename conflicting skills or commands.
Sessions can continue after compaction failures instead of hitting a hard context error
- After repeated auto-compaction failures, one more compaction can avoid “Prompt is too long.”
- If summaries exceed the output limit, the last attempt requests a shorter one.
- Long conversations recover when a proxy limit makes messages and `/compact` fail with 413.
MCP stream cuts and runaway hook output are less likely to stall a session
- SSE MCP servers recover from stream cuts and endpoint changes without manual reconnection.
- Large logs from blocked or failed hooks are shortened above about 50,000 characters.
- Local MCP output floods no longer freeze the terminal or block Ctrl+C.
Model fallback follows the allowlist while cloud aliases need deployment checks
- Keeps `sonnet` family fallback; `--model default` steps down only to allowed older models.
- Foundry: deploy `claude-sonnet-5-5`, or set `ANTHROPIC_DEFAULT_SONNET_MODEL` to a deployed model.
- Bedrock Mantle: `sonnet` means Sonnet 5, not 5.5; enable Sonnet 5 first or get an error.
The editor exposes save and resume problems and opens long sessions faster
- VS Code and Desktop warn when part of a session could not be saved and point to `/compact`.
- The Code tab warns when earlier messages are missing after a session resumes.
- Long conversations, remote windows, and large histories open and restore faster.
Telemetry becomes richer, while voice and status panels suit longer work
- With response logging on, OpenTelemetry's `assistant_response` records Claude's text via `SendUserMessage` or Cowork's message tool.
- Tap-mode stops on send, and stops and says why on edit, cover, disconnect, or recorder loss; VS Code does so if audio stops or the panel stays hidden.
- `/context` is shorter in fullscreen; `/usage` uses less memory with many recent sessions.
Peer agents tighten tool execution at different layers
Claude Code targets skill loading, runaway output, and cloud fallback. Gemini CLI and Codex address related permission, resource, and recovery issues in different products.
Gemini CLI emphasizes command permissions and resource bounds; Codex emphasizes app-tool approval, MCP startup, and tracing. The table compares six areas using official releases.
Station view, not independently tested: choose Claude Code for MCP and gateways, Gemini CLI for command policies, or Codex for app-tool approval and tracing.
| Update area | Gemini CLI v0.69.0–v0.70.0 | OpenAI Codex rust-v0.172.0 | Claude Code v2.1.332 |
|---|---|---|---|
| Skills and command gating | Skips system MCP servers with insecure permissions; asks on unresolved shell expansion | Sets approval reviewers per connected app tool | Adds beta MCP skills to `/`; `PreSkillShellCommand` refuses inline shell commands |
| Long sessions and context | Bounds multipart output; evicts older multimodal inline data | Deduplicates large tool output strings | Fixes post-compaction prompt-too-long; requests a shorter final summary |
| MCP and background work | Kills child processes on headless abort; records cancelled tools; keeps exit code | Starts cached stdio MCP on first call; keeps child replies after interruption | Recovers SSE MCP cuts; bounds hook logs; stops local MCP flood freezes |
| Models and providers | Prevents multi-hour quota retries; notifies ACP clients | Selects Bedrock Runtime; reports spend-limit errors by scope | Keeps family fallback; `--model default` steps down |
| Session and IDE recovery | Restores workspaces only after `resumeChat`; also fixes main-thread JSONL freezes | Restores sandbox and workspace roots; orders cloud replies | Warns when part of a session could not be saved; notes missing history |
| Telemetry and voice | Prevents PDF and telemetry-buffer memory retention | Traces MCP bindings and catalog refresh; deduplicates output traces | Adds `assistant_response`; extends voice silence to 60s/10m |
The previous release added reach; this release closes failure paths
v2.1.331 expanded Code Mode cloud support and improved long-conversation handling; v2.1.332 targets failure recovery and usage boundaries.
The table selects six user-facing changes. Upgrade for compaction failures, MCP cuts, early dictation stops, or slow long-session opens.
Station view, not independently tested: Code Mode, MCP, and cloud-alias teams should upgrade; short-session teams can wait for maintenance.
| Feature | v2.1.331 | v2.1.332 |
|---|---|---|
| Code Mode | Adds terminal Code Mode on Bedrock, Agent Platform, Foundry, and Claude Platform on AWS | Fixes stopped-command waits, lost resume replies, and skipped inline commands |
| MCP tool descriptions | Shows more MCP description, limits, formats, and defaults | Shows long descriptions whole where they fit |
| Session compaction | Fixes summary loss around certain XML tags | Fixes prompt-too-long after failed compaction; requests shorter summaries |
| Voice dictation | Stops after 15 seconds or 2 minutes; shows a notice | Silence rises to 60s/10m; tap-mode stops on send, and stops and says why on edit, cover, disconnect, or recorder loss; VS Code does so if audio stops or the panel stays hidden |
| VS Code long sessions | Speeds opening, restoring, streaming, and remote windows | Optimizes startup, memory, long replies, histories, and slow disks |
| Plugin updates | Fixes partial plugin folders after interrupted updates | Cleans `temp_*` caches; points errors to `/reload-plugins` |
Release analysisTool-heavy and cloud-model teams should upgrade first; short-session users can wait
Station view, not independently tested: MCP, cloud-alias, and cross-device long-session users should validate first. The fixes are announced, not measured; short-session users can wait.
Gemini CLI v0.69.0–v0.70.0 targets command permissions and resource bounds; Codex rust-v0.172.0 targets app-tool approval, MCP startup, and tracing. Claude Code v2.1.332 combines skill gates, compaction recovery, and cloud fallback.
Station view, not independently tested: test skill-command refusal, compaction recovery, MCP reconnection, and model fallback in a real repository before scaling; do not infer speed or reuse old aliases.
Record version, configuration, error text, and recovery result for each test to create a baseline for the next upgrade.
AIGenLab views
Not independently testedTeams with MCP skills or cloud model gateways should validate pre-load gating and fallback paths before expanding automation.
The release adds `PreSkillShellCommand` and beta MCP skill menu entries and fixes several model-fallback and alias issues; the station has not tested them.
Long-session users should reproduce auto-compaction, runaway-output, and MCP stream-cut cases before using this release for critical work.
The release concentrates fixes on compaction failures, large hook logs, and SSE MCP stream cuts; the station has not tested them.
Teams doing short sessions without MCP or cloud aliases can wait for the next consolidated maintenance window.
Most changes target tool connectivity, long sessions, and editor recovery; the station has not tested them.
Questions
Are MCP server skills generally available?
Which commands can the pre-load gate block?
What should teams do before upgrading cloud model aliases?
Official sources and scope
- Claude Code v2.1.332 release notes All additions, fixes, behavior changes, and operational boundaries in this release.
- Claude Code v2.1.331 release notes Vertical comparison: previous Code Mode, compaction, voice, plugin, and editor behavior.
- Gemini CLI v0.69.0 release notes Horizontal comparison: tool-output bounds, quota retries, headless abort, main-thread freezes, and telemetry memory.
- Gemini CLI v0.70.0 release notes Horizontal comparison: MCP command permissions, policy evaluation, workspace restoration, and IDE port writes.
- OpenAI Codex rust-v0.172.0 release notes Horizontal comparison: per-tool approval, MCP startup, output tracing, and recovery.
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.