
Key Updates in Claude Code v2.1.322–v2.1.323 - Addition of Code Mode and Fixes to Bash Permission Checks and Sandbox
This page has been translated by machine translation. View original
I'm Ishikawa from the Cloud Business Division. This post summarizes the updates to Claude Code from v2.1.322 to v2.1.323 (2026-11-10 to 2026-11-12). v2.1.323 alone contains 294 changes. I tried out the behavior of halting startup when sandbox settings fail validation.
The previous update article is here.
Update Summary
This covers 2 versions (v2.1.322 to v2.1.323, 2026-11-10 to 2026-11-12), for a total of 295 changes. v2.1.322 has 1 change, and v2.1.323 has 248 changes in the CLI itself plus 46 platform-specific changes for the VS Code extension, Claude Code on the web, and others. Categorizing the 248 CLI changes in v2.1.323 for this article gives 142 fixes, 42 security items, 30 improvements and performance changes, 15 new features, and so on. Most of the items I classified as security relate to Bash permission checks and the sandbox. There are 20 breaking changes and deprecations.
Notable Updates
Code Mode added (v2.1.323)
Code Mode has been added as an experimental opt-in feature. In this approach, Claude writes JavaScript to call tools. How to enable it is described at the link below, but as of 2026-11-13 this page returns a 404, so I couldn't confirm the steps. I really wanted to try this.
How to disable it at the organization level is also described on the same page.
I'd guess that people who delegate work involving many tool calls will notice the difference most.
engines["claude-code"] added to plugin.json (v2.1.323)
You can now write engines["claude-code"] in plugin.json. In environments whose Claude Code version doesn't fall within the specified range, the plugin is not installed, updated, or loaded. For installs and updates, the latest version that matches the range is selected.
For those distributing plugins, writing the supported Claude Code version range should make it easier to avoid situations where a plugin is loaded in an unsupported version of Claude Code.
Fixed an issue where unanswered messages were summarized by /compact (v2.1.323)
Fixed an issue where, when running /compact repeatedly or after a command such as /context, messages Claude had not yet answered were included in the summary and disappeared.
I think this bug mostly affected people who routinely check usage with /context and then run /compact.
Bash permission check fixes (v2.1.323)
Cases where allow rules and deny rules did not work as expected have been fixed in bulk. The main ones are as follows.
- Cases where
rmwas evaluated relative to the wrong folder, skipping the confirmation for dangerous deletions under bypass permissions or Bash allow rules - Cases where an allow rule with a wildcard immediately following without a space, such as
Bash(ls*), skipped confirmation (rules that include a variable name, such asBash(NODE_ENV*), now ask for confirmation) - Cases where deny rules and ask rules overlooked commands run through wrappers such as
sudoandenv - Cases where the Write / Edit tools could write to paths covered by a Read deny rule
If you restrict the scope of operations with allow and deny rules, or use bypass permissions, I think it's best to update soon.
Startup halts when sandbox settings fail validation (v2.1.323)
Fixed an issue where, when --settings or SDK settings that enable the sandbox failed validation, claude -p and the Agent SDK ran Bash without the sandbox. They now halt at startup and display the invalid settings. In addition, if the --settings file is not valid JSON and contains a sandbox key, startup is now halted even if the setting was meant to turn the sandbox off.
If you pass sandbox settings to claude -p --settings in CI or similar, it's good to be aware that a mistake in the settings will now prevent startup.
Target Versions and Period
| Version | Release date |
|---|---|
| v2.1.322 | 2026-11-10 |
| v2.1.323 | 2026-11-12 |
New Features
In addition to Code Mode and engines["claude-code"] introduced in the notable updates, the following features have been added.
- Fast mode is now available in the Vertex AI global, us, and eu regions. If Vertex rejects fast mode, it falls back to standard speed (v2.1.322)
claude plugin validatenow type-checks a plugin's TypeScript hook modules. Findings are treated as warnings, and adding--strictmakes them failures (v2.1.323)- When a model requires usage credits and those credits are disabled or exhausted, a menu is now shown that lets you choose to stop, switch to usage credits, or upgrade (v2.1.323)
CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIEShas been added (available since 2.1.318). Setting it to1disables subagent progress summaries and the requests that generate them (v2.1.323)CLAUDE_CODE_RESUME_HINT_COMMANDhas been added. When a program that launches Claude Code sets it, the hint shown on exit displays that program's resume command (v2.1.323)- In
claude -pand SDK sessions, a progress heartbeat is sent every 30 seconds while a hook is running for a long time. This prevents hosts such as Claude Desktop from deciding the response has stalled and ending the turn, and it takes effect after the host incorporates this version (v2.1.323) unsetOptionCount, which indicates the number of unsetuserConfigoptions, has been added to the result ofclaude plugin install --json(v2.1.323)- When a plugin's language server cannot start, a warning showing the server name and what to check is now displayed (v2.1.323)
- When a Perforce configuration is found and
CLAUDE_CODE_PERFORCE_MODEis off, a notice naming this environment variable is shown once at startup (v2.1.323) - The Artifact tool's asset upload now supports
.docx(v2.1.323) - A
/diff to closehint has been added to the diff panel, and the keys for focusing and closing the panel have been added to the?shortcut guide (v2.1.323) - For Claude Desktop sessions on third-party providers,
CLAUDE_CODE_AUTO_MODE_MODELcan now be specified in managed settings. It takes effect after Claude Desktop incorporates this version (v2.1.323) - For mod development,
claude plugin validatenow displays the$nouns added, excluded, or replaced by theengine.createhook, andisPromptCoveredhas been added to pane props (v2.1.323)
Improvements
- In
/loginandclaude setup-token, errors for rejected, unreachable, or timed-out requests now indicate what happened and what to check (v2.1.323) /mcpnow shows the number of tools excluded because the API rejects their input schemas, along with the reason (v2.1.323)- Memory usage when using many subagents has been improved. Transcripts of finished subagents are now released early instead of staying in memory while later subagents run (v2.1.323)
- WebFetch speed and memory usage on deeply nested pages have been improved (v2.1.323)
- The latest version is no longer downloaded twice when installing with the install script (v2.1.323)
- On Linux where
/homeis an autofs map, startup no longer looks up files in/homeitself. For map roots located two or more levels below/, setCLAUDE_CODE_AUTOMOUNT_ROOTS(v2.1.323) - In
-p, SDK, IDE, and cloud sessions, the message shown when the Fable limit is reached now includes the limit's reset time and how to continue (v2.1.323) - The maximum value of
CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MShas been changed from 64000 to 300000 (v2.1.323) - The number of messages each session on the same machine can send to other sessions without a user prompt has been changed from about 20 to 100,000 (v2.1.323)
- In addition, changes have been made to
ToolSearchresponses, the wording displayed byclaude rm, the scope of thetool.listplugin hook, and the handling of workflows in the desktop app's Code tab.
Security (Permission Checks and Sandbox)
Beyond those introduced in the notable updates, there are many other fixes and changes related to permission checks and the sandbox. The main ones are as follows.
- Fixed the startup mode when auto mode is unavailable: Fixed an issue where, when auto mode was unavailable,
--permission-mode autoordefaultMode: autoin settings started in a mode that could allow more operations. It now starts in Manual mode, which asks for confirmation beforehand (v2.1.323) - Fixed the Bash sandbox turning off during a session: Fixed cases where the Bash sandbox could turn off during a session (v2.1.323)
- Fixed the scope of sandbox.excludedCommands: Fixed cases where
sandbox.excludedCommandscaused commands that were not specified to run outside the sandbox (v2.1.323) - Fixed allow rules with combined sudo flags: Fixed cases where Bash allow rules written with combined
sudoflags skipped confirmation (v2.1.323) - Fixed confirmation being skipped due to zsh shell options: Fixed cases where Bash commands ran without confirmation in zsh with certain non-default shell options set (v2.1.323)
- Fixed writes outside the project via plansDirectory: Fixed an issue where plan files could be written outside the project when
plansDirectorywas set. Writes that cannot be confirmed to stay within the project are rejected (v2.1.323) - Fixed confirmation skipping and .cmd execution on Windows: Fixed an issue where some file-reading commands given wildcards or file lists ran without confirmation, and an issue where
.cmdand.batwrappers next to an.exein the same PATH folder were run. It now runs the.exe, ascmd.exedoes (v2.1.323) - Changed handling when the permission check fails after a hook responds: If the permission check fails with an error after a
PreToolUsehook returns "allow", it is evaluated as if the hook had not responded. If the permission check fails on input rewritten by aPermissionRequesthook, it asks again, or denies the call if no one is available to respond (v2.1.323) - Changed the rules saved by "don't ask again": Allow rules that appear to contain secrets, and allow rules that would be saved to a git-tracked
settings.local.json, now apply to that session only and are not saved (v2.1.323) - Added a warning for allow rules whose variable values contain
*: A warning is now shown at startup for Bash allow rules whose variable values contain*, such asBash(PORT=* npm run dev)(v2.1.323) - Changed MCP server sign-in to ask for confirmation: Tools Claude uses to complete an MCP server sign-in now ask for confirmation even in bypass and auto modes. When confirmation isn't possible, such as in
dontAskmode, use/mcp(v2.1.323) - In addition, other fixes and changes are included, such as confirmations for
lsofand writes to.gitand.claude, reading file checkpoints from inside the sandbox, loading project settings via symbolic links, proxy and CA settings when reading managed settings fails, re-checking policies in WebFetch, and confirmation before updating artifacts.
Fixes (Main Ones)
This is an excerpt focused on fixes related to stability and usability.
- Fixed message merging in resumed sessions: Fixed an issue where, in a resumed session, the next message sent was merged with an earlier interrupted message that was not the target of the resume (v2.1.323)
- Fixed a memory spike after modifying a large file: Fixed an issue where memory usage spiked on the next prompt after Claude modified a very large file (v2.1.323)
- Fixed manual edits to settings.json being reverted: Fixed an issue where settings saved by a running session reverted the contents of a
settings.jsonthat had just been edited by hand. Settings files deleted during a session now stay deleted (v2.1.323) - Fixed non-streaming request failures: Fixed an issue where non-streaming requests failed on errors that are recoverable when streaming, such as rejected images, thinking blocks, and beta headers (v2.1.323)
- Fixed sign-in switching in background sessions: Fixed issues such as sessions using a named Anthropic profile, or an API key or auth token passed from the shell, switching to a different sign-in in the background. When a profile can't be found, for example, it stops and displays a message to that effect. You are advised to reopen sessions that were open during the update (v2.1.323)
- Fixed MCP tool calls not prompting for re-sign-in: Fixed an issue where an MCP tool call ended with a sign-in server error such as
TOKEN_EXPIREDwithout prompting for re-sign-in (v2.1.323) - Fixed "Not logged in" reappearing on macOS: Fixed an issue where, when the keychain responded slowly, "Not logged in · Please run /login" reappeared right after a successful
/loginor after a token refresh (v2.1.323) - Fixed the error message when Amazon Bedrock denies a model: When Amazon Bedrock denies an account the use of a model, the message now guides you to enable the model rather than to refresh AWS credentials (v2.1.323)
- Fixed double execution of awsAuthRefresh and gcpAuthRefresh: Fixed an issue where, when three or more sessions needed to sign in again at the same time, the
awsAuthRefreshorgcpAuthRefreshcommand could run twice for a single request (v2.1.323) - Fixed file writes being displayed as "Read 1 file": Fixed an issue where a Bash command that writes a file with
cat > file <<EOFwas displayed as "Read 1 file" (v2.1.323) - Fixed column misalignment in WebFetch tables: Fixed an issue where WebFetch dropped empty table cells, shifting subsequent values one column to the left (v2.1.323)
- Fixed managed settings being missed: Fixed an issue where
managed-settings.jsonandmanaged-settings.dcould be missed at startup while another program was rewriting the files. They are now read once more at startup (v2.1.323) - Fixed settings.local.json not being globally ignored: Fixed an issue where
.claude/settings.local.jsonwas not globally ignored when a folder later became a git repository or on a new machine (v2.1.323) - Fixed claude -p using a different model: Fixed an issue where, when the requested model was blocked in settings, text-output
claude -psilently used a different model. A warning is now written to stderr (v2.1.323) - Fixed OpenTelemetry export failures: Fixed an issue where exports failed silently when the
otlpexporter had an endpoint butOTEL_EXPORTER_OTLP_PROTOCOLwas not set, and the default is nowhttp/protobuf. Also fixed an issue where exports failed if reaching the collector through a proxy took more than 10 seconds, and the wait time is now 25 seconds. The maximum value that can be specified withOTEL_EXPORTER_OTLP_TIMEOUThas also changed from the previous 30 seconds to 25 seconds (v2.1.323) - A quietly welcome fix: Fixed a case where pressing Ctrl+C right after
claude updatecompleted deleted theclaudecommand (v2.1.323). Recovering from a missing command is a hassle, so it's a modest fix but a reassuring one. - In addition, many other minor bugs have been fixed, including MCP server and plugin loading, Remote Control, cloud sessions,
/usageand usage limit displays, and Windows-specific behavior.
Breaking Changes and Deprecations
There are 20 breaking changes and deprecations. Two of them that can be handled by setting environment variables are shown with configuration examples, followed by a table of all of them.
Assumed context window for unrecognized model IDs changed from 200K to 1M (v2.1.323)
The context window that Claude Code assumes for model IDs it does not recognize has changed from 200K to 1M. The model's own context window does not change. Use /autocompact to compact earlier, or CLAUDE_CODE_DISABLE_1M_CONTEXT=1 to keep 200K.
For sessions with other vendors' models that have smaller context windows, every turn may fail until /clear once the limit is reached, so you are advised to set CLAUDE_CODE_DISABLE_1M_CONTEXT=1 before reaching the limit.
The following are configuration examples.
Before (up to v2.1.322):
# 200K is assumed for unrecognized model IDs (no configuration needed)
claude
After (v2.1.323 onward):
# 1M is assumed for unrecognized model IDs
# To keep 200K, set the environment variable
export CLAUDE_CODE_DISABLE_1M_CONTEXT=1
claude
Organization settings and policy requests no longer use a proxy specified only by ALL_PROXY (v2.1.323)
Organization settings and policy requests no longer use a proxy configured only through ALL_PROXY. On networks where these requests require a proxy, set HTTPS_PROXY.
The following is a configuration example (proxy.example.com is a hostname for illustration).
Before (up to v2.1.322):
# Organization settings and policy requests also use the ALL_PROXY proxy
export ALL_PROXY=http://proxy.example.com:8080
After (v2.1.323 onward):
# HTTPS_PROXY is required for organization settings and policy requests
export ALL_PROXY=http://proxy.example.com:8080
export HTTPS_PROXY=http://proxy.example.com:8080
List of breaking changes and deprecations
All are changes in v2.1.323.
Startup, models, and network
| Target | Before | After / required action |
|---|---|---|
| Assumed context window for unrecognized model IDs | 200K | 1M. To keep 200K, use CLAUDE_CODE_DISABLE_1M_CONTEXT=1 |
| Proxy for organization settings and policy requests | Uses a proxy specified only by ALL_PROXY |
Not used. Set HTTPS_PROXY |
--settings with invalid JSON that contains a sandbox key |
Startup is not halted | Startup is halted (even if the setting turns the sandbox off) |
Environment variables used by policyHelper in managed settings |
Received from user settings or the --settings file |
Not received. Set them in managed env or in the launching shell |
/logout in background sessions |
Has no effect | Signs out all sessions on the computer, deletes saved MCP logins and plugin secrets, and ends the sessions |
Permissions and sandbox
| Target | Before | After / required action |
|---|---|---|
| Write permissions via symbolic links in the Bash sandbox (macOS, Linux, WSL) | Permission via a link inside a writable folder that points elsewhere or to a nonexistent path is effective | Ignored. Grant permission to the real path |
git worktree add, move, and remove inside the sandbox (macOS, Linux) |
Can be run | Fails with a read-only error. Commits in a location that is neither the worktree where the session started nor a worktree passed to the session also fail, even inside the project |
glab config set (without --global or --host) and glab config edit --local inside the sandbox |
Can be run | Fails with a read-only error. Run outside the sandbox |
| Claude Code's own ripgrep and most internal git commands | Run with the sign-in token and API key passed in | Most run without them being passed. Not accessible from auth helpers or hooks under these git commands |
/security-review and skills' inline git commands |
/security-review does not ask for confirmation before running. Inline git commands do not stop in folders such as bare-repository worktrees |
/security-review asks for confirmation before running. In folders such as bare-repository worktrees, inline git commands stop until allowed (except in auto mode and bypass) |
Self-hosted runners with --trust-workspace false, and VS Code sessions in untrusted folders |
Repository settings can disable hooks or toggle plugins on and off | Cannot be toggled |
Plugins and MCP
| Target | Before | After / required action |
|---|---|---|
subagentStatusLine setting |
Available | Removed. Subagent lines always use the default display. Settings files containing this key are still loaded as before |
Plugin agent setting |
Available | Deprecated. Still applied, but a warning is shown at startup, in claude plugin list, and in claude plugin validate |
MCP_SDK_GENERATION=v1 |
Runs the v1 MCP client | The v1 client is removed, and the v2 MCP client runs in compatibility mode (earlier handshake, relaxed OAuth sign-in checks) |
Approval of project (.mcp.json) MCP servers |
Approval entries with a different notation were accepted without confirmation | Matched by exact server name. Approval entries with a different notation are asked about again |
| Marketplace plugins whose git submodule is not in the recorded commit | Can be installed | Installation fails |
Hooks with *, namespaces, or negation on a mod's engine.create |
Can add and exclude $ nouns |
Observe-only. To add or exclude, hook engine.create by name |
Mods with engine.create hooks written in a format other than the accepted one |
claude plugin validate does not fail |
claude plugin validate fails. Installed mods continue to load |
worktree
| Target | Before | After / required action |
|---|---|---|
Checkouts whose .git folder is a link or contains hard links (such as git-new-workdir setups or cp -al copies) |
A worktree can be created | Worktree creation is refused. Use a regular clone |
Other Platforms
Here are the main items from the 46 changes outside the CLI itself.
- VS Code extension: Claude Code's trust prompt is now shown before starting the first session in an untrusted folder. If you decline, that folder's settings and MCP servers are not used. Also, live output of running Bash and PowerShell commands is now shown below the command card in the chat (v2.1.323)
- Claude Code on the web: Added a failure notification when the sandbox required by a scheduled task is unavailable at the execution destination, a No repository option in new sessions in self-hosted environments, and a warning on session deletion indicating that scheduled tasks will pause. Also fixed an issue where pull request updates from GitHub Enterprise Server linked to github.com, and an issue where git clone and fetch operations exceeding 10 minutes could be disconnected at the final stage (v2.1.323)
- Remote Control: A Try again button has been added to the error shown when the computer running the session is signed out of Claude Code (v2.1.323)
- Claude Tag: On the Enterprise plan, Claude Tag sessions started from Slack are now covered by the Compliance API (beta). Listing sessions and reading transcripts are supported. A Scope filter has been added to the Network events tab of the Activity page (v2.1.323)
- Code Review: A Download CSV button has been added to the admin settings, allowing you to export per-repository review costs by month, week, or day (v2.1.323)
Trying Out Startup Halting When Sandbox Settings Fail Validation
Fixed an issue where, when --settings or SDK settings that enable the sandbox failed validation, claude -p and the Agent SDK ran Bash without the sandbox.
In v2.1.323, I'll check whether startup halts when sandbox settings passed to --settings fail validation, and when JSON containing a sandbox key is invalid. For comparison, I'll also try invalid JSON that does not contain a sandbox key.
For verification, I prepared the following three JSON files in a working directory.
| File | Contents |
|---|---|
sandbox-invalid-value.json |
sandbox.enabled is true. excludedCommands is a string rather than an array |
sandbox-broken-json.json |
sandbox.enabled is false. There is an extra trailing comma, making it invalid JSON |
nosandbox-broken-json.json |
No sandbox key. There is an extra trailing comma, making it invalid JSON |
In the logs below, lines containing the full path of the verification files are omitted.
When the settings that enable the sandbox fail validation
% cat sandbox-invalid-value.json
{"sandbox": {"enabled": true, "excludedCommands": "docker"}}
% claude -p --max-turns 1 --settings ./sandbox-invalid-value.json "OK とだけ返してください"
These settings files did not load, so nothing in them is in effect, including hooks and permission rules. Each loads again once the problem listed for it is fixed:
Error: sandbox required but unavailable: the settings passed with --settings or the SDK's settings option configure the sandbox but failed validation, so none of them apply (sandbox.excludedCommands: Expected array, but received string). Fix them and start again
Refusing to start without a working sandbox (see sandbox.failIfUnavailable).
% echo $?
1
It stopped at startup with Error: sandbox required but unavailable, and no OK reply was output. The error message shows the key that failed validation (sandbox.excludedCommands) and the reason (Expected array, but received string), and the exit code is 1. At the end of the message, the setting name sandbox.failIfUnavailable is shown.
When JSON containing a sandbox key is invalid
% cat sandbox-broken-json.json
{"sandbox": {"enabled": false},}
% claude -p --max-turns 1 --settings ./sandbox-broken-json.json "OK とだけ返してください"
These settings files did not load, so nothing in them is in effect, including hooks and permission rules. Each loads again once the problem listed for it is fixed:
Error: sandbox required but unavailable: the settings passed with --settings or the SDK's settings option configure the sandbox but failed validation, so none of them apply (Invalid or malformed JSON). Fix them and start again
Refusing to start without a working sandbox (see sandbox.failIfUnavailable).
% echo $?
1
Even though "enabled": false is a setting that turns the sandbox off, startup was halted with the same error. The reason is shown as Invalid or malformed JSON, and the exit code is 1.
When JSON without a sandbox key is invalid
% cat nosandbox-broken-json.json
{"model": "sonnet",}
% claude -p --max-turns 1 --settings ./nosandbox-broken-json.json "OK とだけ返してください"
These settings files did not load, so nothing in them is in effect, including hooks and permission rules. Each loads again once the problem listed for it is fixed:
OK
% echo $?
0
A warning that the settings file could not be loaded was displayed, but processing continued, OK was returned, and the exit code was 0. The omitted line shows Invalid or malformed JSON. Among these three cases, startup halted only in the two cases that contain a sandbox key.
Because the key name that failed validation and the expected type appear directly in the error message, isolating the cause looks easy. For those who build automation on the premise of a sandbox, this is a change that lets you use --settings with confidence.
Conclusion
Among the new features, Code Mode, where Claude writes tool calls in JavaScript, interested me the most. I couldn't view the documentation as of 2026-11-13, but once it becomes available, I'd like to try how it differs from conventional tool calling. In addition, with the permission check and sandbox fixes landing together, I feel the range of what you can confidently leave to Claude Code has expanded.
Why not check the list of breaking changes and deprecations for items relevant to your environment, and then update?
References
