Back to Blog

Claude Code 2.1.326: sessions default to auto mode, and bypass mode now asks

Claude Code 2.1.326 starts sessions in auto mode when no mode is set, makes some bypass permissions calls ask first, and is the largest entry in the changelog.

Mira Castellan9 min read

Claude Code 2.1.326 was published to npm on 16 November 2026 at 18:43 UTC, and it is the largest entry in the changelog: 367 bullets, against 294 for 2.1.323 and 139 for 2.1.325, and more than any of the 442 version headings the file carries. Two changes are worth reading before you upgrade, because both alter what a session does before you type anything: a session with no mode set now starts in auto mode instead of Manual mode, and bypass permissions mode no longer skips every prompt. If you run Claude Code unattended, those two are the release.

#Which changes can break a working setup?

The table covers twelve of them. The two mode rows are the ones to read first, and the self-hosted runner row is the one most likely to go unnoticed.

ChangeWhat the changelog saysWho should act
The fallback session mode"Changed terminal and VS Code sessions with no mode set to start in auto mode, not Manual mode, when your organization's policy hasn't loaded"Anyone who relied on Manual mode being the fallback
Auto mode under the HIPAA configuration"Changed terminal and VS Code sessions in organizations with the Claude Code + Cowork HIPAA configuration to start in auto mode by default; disableAutoMode turns it off"Administrators of organizations on that configuration
Bypass permissions mode"Changed some tool calls in bypass permissions mode to ask for approval, or be denied where no one can be asked"Anyone whose unattended runs depend on bypass mode never stopping
PowerShell in bypass mode"Changed the PowerShell tool to ask about some more commands, even in bypass permissions mode, and to refuse some of them"Windows setups driving PowerShell unattended
Wildcard shell allow rules"Changed auto mode to ignore some wildcard shell allow rules, such as ones that name no program or that start with $HOME, so the safety check decides those commands"Anyone whose allow rules use wildcards
Windows wildcard rules"Changed auto mode to judge wildcard allow rules whose program is a Windows backslash path, so those calls can be blocked; exact rules keep their allow; we plan to restore rules that start with .\"Windows users with backslash-path allow rules
Sandbox writes to home folders"Changed sandboxed commands on macOS, Linux and WSL to no longer write to some sensitive home folders by default; some can be allowed with sandbox.filesystem.allowWrite in user or managed settings"Anyone whose sandboxed commands write under the home directory
Writes to sign-in files"Changed Claude's file tools to refuse writes to Claude Code's sign-in files, such as .credentials.json"Anyone with tooling that rewrote those files
Hook block decisionsThe changelog says a hook's "decision": "block" now holds "in more cases, so a hook that always prints one may start blocking calls"Anyone with a PreToolUse hook that prints a block decision unconditionally
Remote Control behind a proxy"Changed how it connects through a proxy: requests now use a CONNECT tunnel, so a proxy that refuses CONNECT stops Remote Control with an error"Networks whose proxy refuses CONNECT
Self-hosted runners and gh"Changed Linux and macOS sessions with no gh to get a built-in gh api by default, via Anthropic, which adds their GitHub sign-in, if any; --use-anthropic-gh false turns it off"Anyone running a self-hosted runner without gh installed
Compaction in plan mode"Changed automatic compaction in plan mode to use the model answering you, such as Opus with opusplan, so it can cost more"Anyone on opusplan watching spend

Three of those rows change a default rather than fix a bug, and a default is what applies to the people who never read the release notes. The fallback mode, the sandbox write restrictions and the self-hosted runner's gh are all in that group.

#Why would a session start in auto mode now?

Because the fallback changed, and the condition for it is one you do not control. The entry is specific about when it applies: sessions with no mode set start in auto mode "when your organization's policy hasn't loaded". So the mode a session begins in can now depend on whether a policy fetch finished, which is a network condition rather than a setting.

A second entry describes what happens afterwards: "Changed sessions that start in auto by default to take a server-managed defaultMode once settings load, or Manual if settings fail with no stored copy and policy fails or requires it". Read the two together and the sequence is: start in auto, then take the managed default when settings arrive, and fall back to Manual only when settings fail outright with no stored copy. The window in which a session is in auto mode without that having been anyone's decision is the gap between launch and settings loading.

For organizations on the Claude Code and Cowork HIPAA configuration, auto mode is now the plain default for terminal and VS Code sessions, and disableAutoMode is the key that turns it off. The same configuration gets a second change: "on a direct Anthropic API connection, the server-side classifier now checks actions, as for other organizations". If your organization chose that configuration specifically to keep action classification off a direct API connection, that is the entry to read.

Two auto mode fixes in the same release are worth knowing about separately, because they describe the old behaviour failing quietly. One fixed "auto mode staying on its local classifier, which counts toward usage, because of a stale saved value, such as one from an older Claude Code", which is a billing effect rather than a permission one. The other fixed "an extra Enter at the end of setup accepting the offer to make auto mode the default". Our write-up of Claude Code 2.1.319 covers the earlier change to how auto mode behaves when telemetry is off.

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

#Does bypass permissions mode still bypass everything?

No, and this is the change most likely to surprise an unattended setup. The entry is one line: "Changed some tool calls in bypass permissions mode to ask for approval, or be denied where no one can be asked". The PowerShell tool gets its own version of the same: it now asks "about some more commands, even in bypass permissions mode" and refuses some of them.

The changelog does not say which calls those are, and that is the honest summary of what is knowable here. Neither entry names a tool, a command shape or a setting, so there is no list to check your configuration against. What you can do is treat the first run after the upgrade as the test: a bypass-mode run that previously finished without stopping may now wait for an answer that nobody is there to give, and "be denied where no one can be asked" says plainly what happens when it cannot wait.

Several related entries tighten the same area from other directions:

  • "Improved Bash permission checks: some commands now ask first, or are refused where no one can answer"
  • "Changed auto mode to stop some shell commands that ran before"
  • "Changed some Bash commands on macOS that ran before to ask or be refused"
  • "Changed the Bash permission check to ask about some commands with very long values it can't finish checking, or to refuse them where a deny rule may apply or no one can answer"
  • "Changed some cp and mv commands to ask first"
  • "Changed the Bash permission check to ask before more commands reach Claude Code's sign-in files"
  • "Changed some file tools to refuse some device and process files"
  • "Improved permission checks in Code Mode; more sandboxed commands now ask or are refused"

Every one of those is written as a widening of what asks, and none of them enumerates the commands involved. The pattern across the release is consistent: more things ask, fewer things run silently, and the vendor's notes describe the direction without the list. Our security hardening guide covers how allow, ask and deny rules compose, which is the part that decides what happens when a new prompt appears in a run with nobody watching.

#What changed in the Bash sandbox?

The sandbox got narrower in several places. The one with a named escape hatch is the home directory: sandboxed commands on macOS, Linux and WSL "no longer write to some sensitive home folders by default", and "some can be allowed with sandbox.filesystem.allowWrite in user or managed settings". The entry says "some" in both halves, so neither the restricted set nor the allowable set is published.

Four more sandbox entries change behaviour without a setting to restore it:

  • "Changed the Bash sandbox to keep its state in some cases during a session, until you run /sandbox or /cd; Bash may ask first"
  • "Changed the Bash sandbox to set aside unexpected entries in a repository's .git folder after a command"
  • "Changed the Bash sandbox on Linux and WSL to create some missing --add-dir folders before each sandboxed command, so commands that create them can fail, skip, or land inside them"
  • "Changed the Bash sandbox to ask before some lines that set environment variables when auto-allow is off; unattended runs can refuse them"

The third of those is the one to read twice if your workflow creates directories. A command that expected to create an --add-dir folder itself may now find it already there, and the entry lists three outcomes it can produce: fail, skip, or land inside the folder.

Approval rewriting is now pinned to the sandbox decision too: commands "that a permission hook or SDK host rewrites while approving" stay in the sandbox if the original was checked as sandboxed, and the approver has to pass dangerouslyDisableSandbox: true to take them out. Separately, claude mcp serve now ignores sandbox.excludedCommands, and /rewind on macOS, Linux and WSL "leaves some files untouched and reports them as skipped when the sandbox is on", which means a rewind under the sandbox is no longer a complete restore.

Subagents working in a worktree lost some git access: they now "refuse, in any repository, some git commands in Bash that can rewrite branches shared with your checkout", and the entry notes that sessions are not affected, only subagents. ExitWorktree also refuses to remove a worktree "while a background subagent or shell command may still be running in it, unless Claude passes discard_changes". If you run work across worktrees, our guide to subagents is the background for what those two changes constrain.

#What is new rather than tightened?

Ten entries in the release begin with "Added", and the headline one connects two features that previously excluded each other: "Added support for turning on Code Mode while agent teams are enabled; if you already turned it on, sessions with teams on now start in Code Mode". The second half is the part that changes an existing setup without being asked to: if Code Mode was already on, a session with teams enabled now starts in it.

The rest of the additions are mostly diagnostics, and they are cheap wins for anyone who has debugged a silent failure:

AddedWhat it tells you
A startup warningWhen an --allowedTools, --disallowedTools or --tools value "has an entry that doesn't look like a complete rule"
An MCP messageWhy MCP servers stop loading "when an administrator adds managed-mcp.json during a session"
A /status rowWhen "your provider or an environment variable such as DISABLE_TELEMETRY turns features off"
A /plugin noteWhen "a malformed plugin.json field such as author or homepage is ignored"
Ctrl+OShows hidden startup notices
OTEL_RESOURCE_INCLUDE_HOSTIncludes host.name and host.id in OpenTelemetry resource attributes, off by default

The /status row and the startup warning both address the same class of problem: a setting that was silently not doing what its author thought. A malformed entry in --allowedTools previously produced no complaint, and a feature turned off by a provider or an environment variable previously just was not there.

One telemetry change runs the other way and will show up in dashboards rather than terminals. Cowork cloud sessions now "hold an organization's OpenTelemetry export until the first turn", so "a session that gets no message now sends nothing, so claude_code.session.count can fall". A drop in that metric after this upgrade is the expected result, not an outage.

#Is there a security fix in this release?

None that the changelog labels as one. Searching the 367 bullets of the 2.1.326 entry for "security", "CVE", "advisory", "vulnerability" and "exploit" returns nothing, which is a clear contrast with 2.1.325, where "Fixed a security issue in how zstd-compressed responses are decoded" was the first bullet in the release.

That absence is worth stating precisely rather than generously. It means the vendor labelled nothing in this release as a security fix. It does not mean nothing in the release is security-relevant: the permission, sandbox and bypass-mode entries quoted above all narrow what can run without being asked, and several of the 217 "Fixed" bullets describe credentials, settings files and sign-in handling. The changelog does not say which of those closed a reported problem, so neither will we.

Two of those fixes are worth naming because they concern credentials crossing a boundary. One fixed "background sessions losing the LLM gateway your shell exported after a crash, after a reopen from another folder, or when the background service lacks it: they now stop before any model request", so a background session missing its gateway now stops rather than requesting against something else. The other fixed "the background service ending your own processes, such as an SSH login, when a process number on its list had been reused by another user's process".

#What about 2.1.324, and why does npm's stable tag say 2.1.311?

These are two separate oddities in the same place, and both are visible in the npm registry rather than in the release notes.

Versionnpm publish timeIn the changelog?
2.1.32312 Nov 2026, 20:29 UTCYes
2.1.32413 Nov 2026, 18:42 UTCNo
2.1.32513 Nov 2026, 20:07 UTCYes
2.1.32616 Nov 2026, 18:43 UTCYes

Version 2.1.324 exists as a published package with its own tarball, and it appears in neither the changelog nor the dated Atom feed. Our own write-up of Claude Code 2.1.325 said 2.1.324 was not in the vendor's release records; that was true of the changelog and the feed, which is where it looked, and the npm registry shows it was published all the same. The changelog has skipped published version numbers before, so this is a pattern rather than a one-off.

The second oddity affects what you actually install. The registry's dist-tags currently put 2.1.326 under both latest and next, while stable still points at 2.1.311, published on 26 October 2026. That is 13 releases behind, spanning every permission, sandbox and auto mode change described here and in the three previous releases we have covered. An install that names the stable tag gets none of them.

The two timestamps for 2.1.326 itself differ, and they are measuring different events rather than disagreeing. The npm registry records the package being published at 18:43 UTC on 16 November; the changelog's Atom feed timestamps its 2.1.326 entry at 22:10 UTC the same day, about three and a half hours later. The feed timestamp is when the notes were written, not when the release shipped.

#What should you do today?

  • If you run Claude Code unattended: test one run before you trust the upgrade. Bypass permissions mode now asks on some calls and refuses them where nobody can answer, and the changelog names none of them.
  • If you rely on Manual mode being the fallback: set the mode explicitly. A session with no mode set now starts in auto mode when your organization's policy has not loaded.
  • If you are on the Claude Code and Cowork HIPAA configuration: auto mode is now the default for terminal and VS Code sessions, disableAutoMode turns it off, and the server-side classifier now checks actions on a direct Anthropic API connection.
  • If your allow rules use wildcards: re-read them. Auto mode now ignores rules that name no program or start with $HOME, and judges Windows backslash-path rules so they can be blocked.
  • If your sandboxed commands write under your home directory: check them, and add sandbox.filesystem.allowWrite entries where you need them back.
  • If you run a self-hosted runner without gh installed: it now gets a built-in gh api via Anthropic, carrying the session's GitHub sign-in. Pass --use-anthropic-gh false if you do not want that.
  • If your proxy refuses CONNECT: Remote Control now fails with an error rather than connecting.
  • If you install from the stable npm tag: you are on 2.1.311 and none of this applies to you yet.
  • If you have a PreToolUse hook that always prints a block decision: it may start blocking calls that previously went through.

For the release before this one, see our write-up of Claude Code 2.1.325, and the Claude Code platform hub collects our coverage of the product. Everything above was checked against the Claude Code changelog, its dated Atom feed and the npm registry on 17 November 2026.

Frequently asked questions

Should I upgrade to Claude Code 2.1.326?
Probably yes, but read the mode changes first. This is the largest entry in the Claude Code changelog, and two of its changes alter what a session does before you type anything: a session with no mode set now starts in auto mode rather than Manual mode when your organization's policy has not loaded, and some tool calls in bypass permissions mode now ask for approval or are refused. Both can change the behaviour of an unattended setup on the first run after the upgrade.
Why does my Claude Code session start in auto mode now?
Because the fallback changed. The changelog entry reads: Changed terminal and VS Code sessions with no mode set to start in auto mode, not Manual mode, when your organization's policy hasn't loaded. A separate entry makes auto mode the default for terminal and VS Code sessions in organizations on the Claude Code and Cowork HIPAA configuration, where disableAutoMode turns it off.
Does bypass permissions mode still skip every prompt?
No. The release changed some tool calls in bypass permissions mode to ask for approval, or be denied where no one can be asked, and the PowerShell tool now asks about some more commands even in bypass permissions mode and refuses some of them. The changelog does not list which commands those are, so an unattended run that relied on bypass mode never stopping should be watched on its first run after the upgrade.
Is there a security fix in Claude Code 2.1.326?
Not one the changelog labels as such. Unlike 2.1.325, whose first bullet was a security issue in zstd decoding, no bullet in the 2.1.326 entry names a security issue, a CVE or an advisory. That is not the same as there being nothing security-relevant in it: the release tightens Bash permission checks, sandbox write access and bypass permissions mode, and none of those entries says whether it closes a reported problem.
Is there a Claude Code 2.1.324?
Yes, on npm. Version 2.1.324 was published to the npm registry on 13 November 2026 at 18:42 UTC, with its own tarball, but it appears in neither the changelog nor the dated Atom feed. So 2.1.325 follows 2.1.323 in the release notes while npm records a version in between that the notes never describe.
Why does npm install an older version than 2.1.326?
Check which dist-tag you are installing. As of 17 November 2026 the npm registry lists 2.1.326 under both the latest and next tags, but the stable tag still points at 2.1.311, published on 26 October 2026. That is 13 releases behind, so an install pinned to the stable tag will not pick up any of the permission or sandbox changes described here.

Sources

  1. Claude Code CHANGELOG
  2. Claude Code Changelog feed (dated entries)
  3. npm registry metadata for @anthropic-ai/claude-code

Get the full experience with ClawDocx Pro

Access 500+ prompts, step-by-step guides, SKILL.md files, and more. Everything you need to master OpenClaw.

Start Free Trial

Related Posts