Claude Code 2.1.332 Changelog: Fixes and Upgrade Checks
Decide whether to upgrade Claude Code 2.1.332 and verify the fixes that affect your sessions. Configure an inline-shell hook, distinguish MCP skill rollout from installation, audit Foundry and Agent Platform model changes, and update Desktop gateway and OAuth-token rules.
Contents

Claude Code 2.1.332 fixes stale usage-limit reports, misleading login success messages, and one Prompt is too long recovery failure. Upgrade if these interrupt your IDE, Remote Control, SDK, or terminal work. Before a team rollout, audit cloud model aliases, Desktop gateway settings, and shared hooks.
Anthropic dates the release to November 25, 2026 in its official changelog. The checks below reflect documentation available as of 2026-11-26.
Keep your access route unless billing is the problem
Start by updating the client you already use. A false limit report after a reset is different from exhausting a real allowance.
| Route | Choose it when | Requirements and billing |
|---|---|---|
| Keep your existing account and upgrade | Your current workflow works except for a listed client bug. | Keep the account and access conditions already required by your deployment. The update is not an allowance increase. |
| Anthropic Console or your cloud provider | You need API-based billing or an existing organization deployment. | A Console account or configured cloud credentials, an available model and region, and API billing. Model usage is metered in tokens. |
| BetterToken API | You want separately billed, pay-as-you-go model access. | Your own BetterToken account and API key. Text usage follows token billing rules; payment options depend on the console. Use the documented Claude Code integration. |
Anthropic documents the vendor routes in its authentication guide and cost guide. Changing the billing route should be a separate decision from verifying this update.
- One key for every model
- Pay as you go, no subscription
- OpenAI- and Anthropic-compatible
Upgrade each affected runtime
Follow the update instructions for your installation. For a native CLI installation, run these commands in Bash:
claude --version
claude update
claude --version
Check that the final command reports 2.1.332 or a later approved version. Restart the affected session before testing. Also check the runtime used by Desktop, your IDE, or the SDK; the shell version alone does not verify those sessions.
Upgrade before distributing settings containing PreSkillShellCommand. The hook reference warns that older versions run injected commands without calling this hook. On 2.1.331 and older, naming the event also produces a startup warning. Administrators can enforce requiredMinimumVersion through managed settings.
Verify the fixes against the original symptom
The 2.1.332 release notes identify the following failure conditions. Test the branch that matches your original problem.
A usage limit remains reached after its reset
The release fixes a stale limit report sent to Remote Control, IDE, and SDK clients after the allowance had already reset. Retest through the same affected interface after confirming the actual reset.
Success means an ordinary request proceeds without the stale limit rejection. If it still fails, check the current account allowance and the returned error before changing plans or providers. This fix does not establish that every remaining limit message is incorrect.
Login says “Login successful.” but does not persist
Previously, claude auth login could report success when it could not save a claude.ai login. It now exits with code 1 and reports a diagnostic, such as a leftover lock file or a full disk.
For the affected claude.ai login route, use Bash:
claude auth login && claude auth status --text
The second command runs only if login succeeds. Confirm the expected authentication status, restart Claude Code, and send a harmless request. The CLI reference specifies that claude auth status exits 0 when logged in and 1 otherwise.
If saving fails, investigate the reported filesystem condition rather than deleting credential files blindly. For an HTTP 403 instead of a local save failure, use the separate Claude Code access and authentication diagnostic guide.
“Prompt is too long” follows repeated compaction failures
The fix targets turns that ended after repeated automatic compaction failures, although another attempt at the context limit could have recovered them. Retry the triggering workload in a comparable near-limit session.
Confirm that the affected turn continues after automatic compaction without ending with Prompt is too long. A successful later turn does not verify this fix. If you cannot reproduce the failure sequence, leave the fix unverified. This fix does not increase the context window.
If recovery still fails, try /compact and reduce the next request. VS Code and Desktop’s Code tab also gain a warning when part of a session could not be saved, with instructions to use /compact. Follow that warning before abandoning the session.
A separate fix matters when compaction appears stuck on a file: reading an unwritten named pipe now fails after 20 seconds. For example, a locked secrets manager can expose .env this way. Restore the file source before treating another compaction attempt as the remedy.
Add PreSkillShellCommand after upgrading
A skill can run an inline shell command while its content loads. The skill permission documentation explains that PreToolUse does not intercept this loading step. PreSkillShellCommand adds the relevant checkpoint. Keep ordinary tool-call controls as well.
For a disposable test project on macOS or Linux with Bash, merge this into .claude/settings.local.json. Preserve any existing settings and hooks:
{
"hooks": {
"PreSkillShellCommand": [
{
"matcher": "Bash|PowerShell",
"hooks": [
{
"type": "command",
"shell": "bash",
"command": "printf '%s\\n' 'HOOK_SMOKE_BLOCKED' >&2; exit 2",
"onFailure": "block"
}
]
}
]
}
}
This deliberately blocks every matching injected command. The hook writes a recognizable reason to stderr before exiting 2. onFailure: "block" also prevents the injected command from running if the checker fails. The event’s decision rules distinguish blocking the command from stopping the skill itself.
Create .claude/skills/hook-smoke/SKILL.md using the documented local skill and inline-command format:
---
name: hook-smoke
description: Test inline shell blocking.
allowed-tools: Bash(pwd)
---
Working directory: !`pwd`
Report whether the injected command was blocked. Do not run tools.
After saving both files, exit any running test session. From the test project’s root, start a fresh session in Bash:
claude --debug-file .claude/hook-smoke.log
Use an unused log filename when repeating the test. Invoke /hook-smoke in that new session.
Look for Claude Code’s own Not run in /hook-smoke: pwd diagnostic containing blocked by hook: HOOK_SMOKE_BLOCKED. This identifies the attempted command, the hook denial, and the reason emitted by this checker. The skill should still load, but its injected pwd must not execute.
Do not count the model’s explanation as evidence. If the diagnostic is missing, inspect the current session’s PreSkillShellCommand execution in .claude/hook-smoke.log, following the hook debugging instructions. An earlier permission denial, or a settings entry containing the marker, does not prove the hook ran. Do not weaken managed rules to force the test.
Remove the test hook, skill, and private debug log afterward, or replace the block-all command with your reviewed policy checker. Keep the hook in settings rather than relying on the skill to install its own protection.
Check MCP skills and held messages separately
MCP skills: installation is only one requirement
The release adds beta MCP server skills to the / menu as server:skill; other skills retain their names. Check for a skill your connected server actually publishes.
As of 2026-11-26, the MCP availability documentation lists organization enablement for Team/Enterprise /login users. API-key and Console accounts have a separate rollout. Enterprise customers should confirm organization access: the November 24 announcement still describes Enterprise availability as forthcoming. An upgraded binary alone is not proof of entitlement.
Use the dedicated MCP skills availability and permissions guide for missing-menu diagnosis, model requirements, connection restrictions, and permission rules.
Do not confuse discovery with a broken connection. The release also fixes SSE MCP servers that hung or rejected calls after their event stream disconnected and returned differently. Test a harmless tool call after reconnection when that was your original symptom.
“Always deliver”: review the receiving session’s policy
The held-message prompt now includes “Always deliver” for messages from other sessions. Use it deliberately when accepting a trusted cross-session handoff, then verify delivery with a harmless message.
The receiving session’s own permissions still apply. For centrally controlled workflows, review the documented crossSessionInbound controls. Message delivery does not approve every action the message requests.
Audit cloud aliases before the first request
The same alias does not select the same model across every provider. These are the built-in choices relevant to 2.1.332, before explicit pins and availability fallbacks:
| Provider | sonnet | opus | Unpinned primary model |
|---|---|---|---|
| Microsoft Foundry | Sonnet 5.5, changed | Opus 5.5, changed | Sonnet 5.5, changed |
| Google Cloud’s Agent Platform | Sonnet 5.5, changed | Opus 5.5 | Opus 5.5 |
| Amazon Bedrock | Sonnet 4.5, unchanged | Opus 5.5 | Opus 5.5 |
The version-specific release supplies the changed mappings. The Agent Platform defaults and Bedrock defaults document their unchanged primary models.
On Foundry, deploy claude-sonnet-5-5 or set ANTHROPIC_DEFAULT_SONNET_MODEL to a deployment you already have. For a deployment named exactly claude-sonnet-5-5, the Bash setting is:
export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-sonnet-5-5"
Use the actual deployment name, not a display label. The Foundry setup guide explains deployment-name pinning. This release also treats Sonnet 4, Opus 4, and Opus 4.1 as retired on Foundry; do not select them as rollback targets.
On Agent Platform, review VERTEX_REGION_CLAUDE_5_5_SONNET for both sonnet and background requests. With only the older 4_5 variable configured, those calls use CLOUD_ML_REGION or fall back to us-east5. Set the new override to a location where your project can use the required model.
On Bedrock, the built-in sonnet mapping remains Sonnet 4.5. Separately, selecting Default or --model default can now fall back to an older available model. Auto mode restricts that fallback to models it accepts.
Verify startup, sonnet, and opus separately
Run the startup check first: /model saves its selection for later sessions. Use an administrator-approved test configuration without a saved model, model environment overrides, or an organization-selected default. Keep authentication intact. If enforced policy selects a model, record that override rather than bypassing it.
- Foundry startup: Start
claudewithout--model,--resume, or--continue. Before making any model selection, send a harmless request. Expect Sonnet 5.5 at startup and in the first primary request. sonnetalias: Select/model sonnetand send a separate request. Expect the provider-specific model shown in the table.- Foundry
opusalias: Select/model opusand send another request. Without an alias override, expect Opus 5.5. A successful Sonnet request does not verify this mapping.
For each Foundry request, compare the outgoing model value with the deployment name in Foundry. Microsoft documents that this field selects the deployment. Inspect your approved gateway’s upstream request trace, after any rewriting, or your configured Azure Log Analytics request/response logs for direct Foundry access.
Arrange access to the request time and deployment metadata before testing. If existing logs omit the model, ask the platform administrator for a metadata-only trace. Do not record credentials or prompt bodies. Record any fallback separately; a request reaching an older model does not verify the intended migration. Restore your normal pins afterward.
Recheck Desktop gateways and token filters
Separate policy defaults from ignored model settings
The Claude apps gateway change replaces Sonnet 4.5 with Sonnet 5.5 as its second built-in model. Claude Desktop starts on Sonnet 5.5 where a policy allows no Opus 4.6.
For an affected deployment, start a fresh Code tab session before selecting a model. Expect Sonnet 5.5 at startup under that exact policy condition. Send a harmless request and check the gateway’s received model ID and upstream mapping. A policy-driven startup change is separate from an ignored personal model setting.
The release also changes Desktop’s Code tab on the Anthropic API route. Personal settings beside a gateway address now ignore model IDs that do not start with claude. This covers default, side-request, alias, and subagent model IDs.
Audit those settings independently. A value remaining in your configuration file does not prove Desktop used it. Compare the selected model with the gateway’s received model ID; do not invent a claude-prefixed name to disguise an incompatible mapping.
Under the same conditions, Desktop ignores CLAUDE_CODE_AUTO_COMPACT_WINDOW values below 200K. Use /autocompact instead. These changes are scoped to Desktop’s Code tab, not all CLI gateway configurations.
OAuth-prefix checks must accept the new format
For self-hosted runners, the release extends CLAUDE_CODE_OAUTH_TOKEN prefixes: they can now end in oat02- as well as oat01-. Update proxy validation and log-redaction rules that recognize only the older prefix. Mask the entire credential, not merely its prefix.
Verify that the proxy accepts a valid runner credential whose prefix ends in oat02-, without logging it. Alternatively, exercise the proxy’s prefix-validation rule with synthetic fixtures for both oat01- and oat02-; both must pass. Synthetic fixtures verify that rule, not upstream authentication.
Separately, test the log-redaction rules with both synthetic variants and confirm that each complete value is masked. A successful model request does not, by itself, prove the credential was scrubbed from logs.