AIGenLab
EN

UPDATEclaude-code v2.1.332

Claude Code v2.1.332 gates MCP commands, fixes long sessions

Version & typev2.1.332 · Feature
In short

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.

Read the original announcement

On this page
  1. Release inventory
  2. This release guards skill…
  3. Beta MCP skills join the…
  4. Sessions can continue aft…
  5. MCP stream cuts and runaw…
  6. Model fallback follows th…
  7. The editor exposes save a…
  8. Telemetry becomes richer
  9. Peer agents tighten tool…
  10. The previous release adde…
  11. Release analysis
  12. Questions
  13. Sources & method

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.

The six change areas in Claude Code v2.1.332: skill and command gating, long-session compaction, MCP and hook stability, model selection, editor and desktop sessions, and telemetry and voice.
Where the 18 grouped changes landWhere the 18 grouped changes landSkills and command gating3Long sessions and compaction3MCP and hook stability3Model selection and cloud fallback3Editor and desktop sessions3Telemetry, voice, and status panels3
AIGenLab original

Beta MCP skills join the `/` menu as inline commands face a pre-load gate

  1. Beta MCP skills appear as `server:skill` in `/`; verify menu entries and call permissions.
  2. `PreSkillShellCommand` can refuse inline shell commands while a skill or command loads.
  3. 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

  1. After repeated auto-compaction failures, one more compaction can avoid “Prompt is too long.”
  2. If summaries exceed the output limit, the last attempt requests a shorter one.
  3. 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

  1. SSE MCP servers recover from stream cuts and endpoint changes without manual reconnection.
  2. Large logs from blocked or failed hooks are shortened above about 50,000 characters.
  3. Local MCP output floods no longer freeze the terminal or block Ctrl+C.

Model fallback follows the allowlist while cloud aliases need deployment checks

  1. Keeps `sonnet` family fallback; `--model default` steps down only to allowed older models.
  2. Foundry: deploy `claude-sonnet-5-5`, or set `ANTHROPIC_DEFAULT_SONNET_MODEL` to a deployed model.
  3. 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

  1. VS Code and Desktop warn when part of a session could not be saved and point to `/compact`.
  2. The Code tab warns when earlier messages are missing after a session resumes.
  3. Long conversations, remote windows, and large histories open and restore faster.

Telemetry becomes richer, while voice and status panels suit longer work

  1. With response logging on, OpenTelemetry's `assistant_response` records Claude's text via `SendUserMessage` or Cowork's message tool.
  2. 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.
  3. `/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 areaGemini CLI v0.69.0–v0.70.0OpenAI Codex rust-v0.172.0Claude Code v2.1.332
Skills and command gatingSkips system MCP servers with insecure permissions; asks on unresolved shell expansionSets approval reviewers per connected app toolAdds beta MCP skills to `/`; `PreSkillShellCommand` refuses inline shell commands
Long sessions and contextBounds multipart output; evicts older multimodal inline dataDeduplicates large tool output stringsFixes post-compaction prompt-too-long; requests a shorter final summary
MCP and background workKills child processes on headless abort; records cancelled tools; keeps exit codeStarts cached stdio MCP on first call; keeps child replies after interruptionRecovers SSE MCP cuts; bounds hook logs; stops local MCP flood freezes
Models and providersPrevents multi-hour quota retries; notifies ACP clientsSelects Bedrock Runtime; reports spend-limit errors by scopeKeeps family fallback; `--model default` steps down
Session and IDE recoveryRestores workspaces only after `resumeChat`; also fixes main-thread JSONL freezesRestores sandbox and workspace roots; orders cloud repliesWarns when part of a session could not be saved; notes missing history
Telemetry and voicePrevents PDF and telemetry-buffer memory retentionTraces MCP bindings and catalog refresh; deduplicates output tracesAdds `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.

Featurev2.1.331v2.1.332
Code ModeAdds terminal Code Mode on Bedrock, Agent Platform, Foundry, and Claude Platform on AWSFixes stopped-command waits, lost resume replies, and skipped inline commands
MCP tool descriptionsShows more MCP description, limits, formats, and defaultsShows long descriptions whole where they fit
Session compactionFixes summary loss around certain XML tagsFixes prompt-too-long after failed compaction; requests shorter summaries
Voice dictationStops after 15 seconds or 2 minutes; shows a noticeSilence 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 sessionsSpeeds opening, restoring, streaming, and remote windowsOptimizes startup, memory, long replies, histories, and slow disks
Plugin updatesFixes partial plugin folders after interrupted updatesCleans `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 tested

Teams 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?
No. The release marks them beta; they appear as `server:skill` in the `/` menu, and existing skill names stay unchanged.
Which commands can the pre-load gate block?
`PreSkillShellCommand` can refuse a skill or command's inline shell commands as it loads; on v2.1.331 and older, naming it in settings opens a start-up dialog.
What should teams do before upgrading cloud model aliases?
On Foundry, deploy `claude-sonnet-5-5` or point `ANTHROPIC_DEFAULT_SONNET_MODEL` to a deployed model; on Bedrock Mantle, enable Sonnet 5 before using `sonnet`.

Official sources and scope

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.