Claude Code 2.1.323: the permission fixes to take, and three changes that can break a setup
Claude Code 2.1.323 closes a long list of permission check gaps. It also assumes a 1M context window for unrecognized models and removes the v1 MCP client.
Claude Code 2.1.323 landed on 12 November 2026 at 22:11 UTC, and the reason to take it is the permission system: the release fixes several separate cases where a Bash command ran with no permission prompt, where an allow rule skipped one, and where the sandbox could switch off mid-session. Read three of its changes before you upgrade, though, because two can stop a working setup and one quietly raises a limit you may be relying on. It is a large release, 294 bullets against 118 in 2.1.321 and a single line in 2.1.322.
#Which changes can break a working setup?
Three, and the first is the one most likely to find you.
| Change | What the changelog says | Who should act |
|---|---|---|
| Assumed context window for unknown models | "Changed the context window assumed for a model ID that Claude Code doesn't recognize from 200K to 1M; use /autocompact to compact earlier, or CLAUDE_CODE_DISABLE_1M_CONTEXT=1 to keep 200K" | Anyone on Bedrock, Vertex, Foundry or a custom deployment name |
| v1 MCP client removed | "Changed MCP_SDK_GENERATION=v1 to run the v2 MCP client in a compatibility mode (earlier handshake, relaxed OAuth sign-in checks), because the v1 MCP client is removed" | Anyone who set that variable to work around a v2 problem |
| Proxy for organization settings | "Changed organization settings and policy requests to no longer use a proxy set only by ALL_PROXY; set HTTPS_PROXY if your network needs a proxy for them" | Networks that proxy only through ALL_PROXY |
The context window change has a second entry of its own, and it is blunter than the first: "Changed sessions on other vendors' models with a smaller window: once full, they can fail every turn until /clear, so set CLAUDE_CODE_DISABLE_1M_CONTEXT=1 before they fill". The failure arrives when the session fills rather than when you upgrade, so a session that looked fine for an hour is the expected shape of this one. If you run Claude Code against a model whose name Claude Code does not recognize, which is the normal case for inference profile ARNs and custom deployment names, set that variable now rather than after the first failed turn.
Two smaller changes in the same family are worth a look if you run anything underneath Claude Code's own git calls. The release "Changed Claude Code's own ripgrep and most internal git commands to run without most of its sign-in tokens and API keys, so a credential helper or hook under such a git command no longer finds them". A credential helper that read a token out of the environment there will stop finding one. Separately, worktree creation now "refuse[s] checkouts whose .git folders are links or hold hard links, such as git-new-workdir layouts and cp -al copies", and the changelog's advice is to use a plain clone.
#What does 2.1.323 fix in the permission system?
A list long enough that the shape of it is the story. These are the vendor's own words for its own bugs, and each one is a case where a check did not hold:
- "Fixed a case where the Bash sandbox could switch off during a session"
- "Fixed a case where the Write and Edit tools could write to a path covered by a
Readdeny rule" - "Fixed
sandbox.excludedCommandsletting a command that it does not name run outside the sandbox in some cases" - "Fixed Bash allow rules with an attached wildcard, such as
Bash(ls*), skipping the permission prompt in some cases; a rule that names a variable, such asBash(NODE_ENV*), now asks" - "Fixed Bash deny and ask rules missing some commands run through
sudo,envand similar wrappers" - "Fixed a case where Bash permission checks judged an
rmfrom the wrong folder and skipped the dangerous-removal prompt under bypass permissions or a Bash allow rule" - "Fixed
--permission-mode autoor a settingsdefaultMode: autostarting in a mode that could allow more when auto mode was unavailable. It now starts in Manual mode, which asks first" - "Fixed sandboxed commands being able to read Claude Code's file checkpoint copies under the config directory"
- "Windows: Fixed some file-reading Bash commands running without a permission prompt when given a wildcard or a list of files"
None of these is described as exploited, and the changelog attaches no advisory or severity to any of them. What they tell you is where to stop trusting a rule you wrote before this release: a wildcard allow rule, a deny rule you expected to cover sudo, and sandbox.excludedCommands are three places where the rule you read in your settings file was not the rule being enforced. If your threat model leans on any of them, the upgrade is the fix, and our security hardening guide covers how those rules are meant to compose.
The sandbox itself got stricter in two ways that may surface as new refusals rather than as fixes. It now ignores "write access granted through a symlink in a writable folder that leads elsewhere or to a missing path", and the changelog's advice is to grant the real path instead. And on macOS and Linux, "git worktree add, move and remove now fail read-only, as do commits in a worktree the session wasn't started in or given, even one inside the project". A workflow that had Claude manage its own worktrees will need the worktree given to the session.
Want step-by-step guides for this and more?
ClawDocx Pro includes 500+ curated prompts, setup guides, SKILL.md files, and templates — everything to make your AI agent unstoppable.
See plans & pricing#What else is in the release?
/logout in a background session, which the changelog says previously had no effect, now "signs out every session on the computer, deletes stored MCP logins and plugin secrets, and ends the session, as in a terminal". That is a much larger action than the command used to take in that context, so it is worth knowing before you type it to clear one session.
Two MCP changes tighten approvals. Project .mcp.json server approvals now "match the server's exact name; an approval entry written in another spelling now asks again", so an approval you spelled loosely will prompt once more. And the tool Claude uses to finish an MCP server sign-in now "asks you to confirm, even in bypass and auto modes", with /mcp as the route where nobody can be asked, such as dontAsk mode. If you are wiring up servers, our walkthrough of adding a custom MCP connector is the place to start.
The release also adds Code Mode, "an experimental opt-in in which Claude writes JavaScript to call its tools". It is off unless you turn it on, and turning it on is the problem: the changelog says to see https://code.claude.com/docs/en/code-mode to do so, or to turn it off for an organization, and that page returned 404 when we checked it on 13 November 2026. Nor is it listed anywhere else in the documentation. The Claude Code docs index at https://code.claude.com/docs/llms.txt and the site's sitemap, 2,413 pages between them, carry no Code Mode entry under any spelling. The feature is announced; the instructions are not published yet. Plugin authors get engines["claude-code"] in plugin.json, after which "plugins outside their stated Claude Code version range are not installed, updated or loaded", and claude plugin validate now type-checks a plugin's TypeScript hooks module, as warnings unless you pass --strict. The subagentStatusLine setting is removed, and settings files that still carry the key load as before.
One loosening deserves naming on its own, because it runs the other way from everything above. The changelog records the limit on "how many messages each of your sessions on the same machine can send the others without a prompt from you, from about 20 to 100,000", with a matching entry for a Claude Desktop Code tab session. That prompt was the thing that told you cross-session traffic was happening. At 100,000 it will not arrive in any ordinary session.
#What should you do today?
- If you run a model Claude Code does not recognize by name: set
CLAUDE_CODE_DISABLE_1M_CONTEXT=1before the session fills, or expect turns to fail until/clear. - If you set
MCP_SDK_GENERATION=v1: you are on the v2 client in compatibility mode now, so re-test the server that needed the workaround. - If your permission rules use wildcards, deny rules over
sudo, orsandbox.excludedCommands: upgrade, then re-read those rules, because several of them were not being enforced as written. - If your network proxies only via
ALL_PROXY: setHTTPS_PROXYas well, or organization settings and policy requests will stop going through it. - If you relied on a prompt to notice session-to-session messages: that ceiling is now 100,000, so the prompt is no longer your signal.
For the previous two releases in this series, see our write-up of Claude Code 2.1.321 and 2.1.322, and for the auto mode change that preceded them, Claude Code 2.1.319. Everything above was checked against the Claude Code changelog and its dated feed on 13 November 2026.
Frequently asked questions
- Should I upgrade to Claude Code 2.1.323?
- Yes, and sooner rather than later if you rely on permission rules or the Bash sandbox to hold anything back. The release fixes several cases where a command ran without a permission prompt, where an allow rule skipped one, and where the sandbox could switch off during a session. Read the three breaking changes below first, because two of them can stop an existing setup working.
- Why do my sessions on a non-Anthropic model now fail every turn?
- Because 2.1.323 changed the context window it assumes for a model ID it does not recognize from 200K to 1M. The changelog says that sessions on other vendors' models with a smaller window can fail every turn once full, until you run /clear. Set CLAUDE_CODE_DISABLE_1M_CONTEXT=1 before they fill, which also restores the old 200K assumption.
- What happened to the v1 MCP client?
- It is removed. MCP_SDK_GENERATION=v1 no longer selects it: the changelog says that variable now runs the v2 client in a compatibility mode with an earlier handshake and relaxed OAuth sign-in checks. If you set that variable to work around a v2 problem, you are on v2 in compatibility mode now, so test the affected server rather than assuming the workaround still holds.
- Does 2.1.323 change how many messages my sessions can send each other?
- Yes, and it raises the ceiling a long way. The changelog records the limit on how many messages each of your sessions on the same machine can send the others without a prompt from you going from about 20 to 100,000, with the same change for a Claude Desktop Code tab session. If you were relying on that prompt to notice session-to-session traffic, it will not arrive at 20 any more.
- Is Code Mode on by default?
- No, and nothing changes for you unless you opt in. The changelog describes Code Mode as an experimental opt-in in which Claude writes JavaScript to call its tools, and it points to a documentation page for turning it on or off. That page returned 404 when we checked on 13 November 2026, and the Claude Code docs index does not list a Code Mode page, so the instructions are not published yet.