Back to Blog

Claude Code 2.1.328: auto mode reaches Opus 4.6 on Bedrock, and two hook changes stop firing

Claude Code 2.1.328 extends auto mode to Opus 4.6 and Sonnet 4.6 on Bedrock, Foundry and Agent Platform, where the docs still say those models start in Manual.

Mira Castellan8 min read

Claude Code 2.1.328 went to npm on 18 November 2026 at 23:09 UTC, and the dated changelog feed timestamps the entry at 01:13 UTC the next morning. Take it, but read one line first if you run Claude Code against Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry or a signed-in Claude apps gateway: auto mode now covers Claude Opus 4.6 and Sonnet 4.6 on those four providers, and an interactive session there that sets no permission mode starts in auto mode. Everything else in the release is maintenance, and there is a lot of it.

#What is in 2.1.328?

A large maintenance release with one default change hiding in the Added list. The entry carries 144 bullets against 173 for 2.1.327 and 367 for 2.1.326.

Opening wordBullets
Fixed91
Changed20
Improved19
Added14

Ninety-one fixes against fourteen additions is the same catching-up shape as its predecessor, and the fixes are worth having: a dozen of them are Code Mode, another dozen are self-hosted runners, and a handful are terminal input bugs that would make a session feel broken rather than wrong.

No bullet in the entry names a security issue, a CVE or an advisory. The entry contains no occurrence of the words "security", "CVE", "advisory" or "vulnerability" at all, which is unusual for a release this size. That is a narrower statement than it sounds, because three of the Changed bullets alter what a hook fires on, what the sandbox refuses and which servers a deny rule reaches, and none of those is labelled a security fix.

#Which deployments start in auto mode after this upgrade?

The bullet to read is in the Added list:

Added auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude apps gateway; interactive sessions with no permission mode start in it

Two things are worth separating here, because only one of them is new.

Starting an interactive session in auto mode when no mode is set is already the documented behaviour on those four providers. The permission modes documentation says so directly: "If you don't set a permission mode there, interactive sessions start in auto mode, and claude -p or Agent SDK runs start in Manual mode". What 2.1.328 changes is which models that covers, and it adds the two 4.6 models.

So the deployment that changes behaviour on upgrade is a specific one: Bedrock, Agent Platform, Foundry or a signed-in apps gateway, running Opus 4.6 or Sonnet 4.6, in an interactive terminal or VS Code session, with no permission mode set. Until this release, auto mode was unavailable for that model on that provider, so the session started in Manual mode. After it, the same session starts in auto mode. Nothing in your configuration has to change for that to happen, which is what makes it worth checking before you upgrade rather than after.

A companion Changed bullet extends the same reach to two prompts, and names the switch that turns both off:

Changed plan mode and Bash prompts for Opus 4.6 and Sonnet 4.6 on third-party providers to use and offer auto mode, as on newer models; disableAutoMode turns both off

The documentation describes what that setting does: an administrator sets permissions.disableAutoMode to "disable" in managed settings, which "removes auto from the Shift+Tab cycle, and a session started with --permission-mode auto starts in Manual instead". If your reason for not using auto mode on these providers was that your model made it unavailable, that is no longer the mechanism holding it off, and the managed setting is.

claude -p and Agent SDK runs are not affected by the default. The documentation is explicit that those start in Manual mode on these providers unless you pass a mode, so an unattended pipeline is the one shape here that does not change.

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

#Do the docs agree about Opus 4.6 on Bedrock?

Not at the time of writing, and this is the one place in the release where two of the vendor's own pages contradict each other.

The permission modes page states the opposite of the changelog, in two separate places. Its requirements list reads: "Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, and signed-in Claude apps gateway sessions: only Claude Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5, and the Fable models". Its Bedrock section repeats it and spells out the consequence: "Only Claude Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5, and the Fable models are supported on these providers. On any other model, the session starts in Manual instead."

SourceWhat it says about Opus 4.6 and Sonnet 4.6 on those providers
2.1.328 changelog entryAuto mode is added for them, and interactive sessions with no mode set start in it
Permission modes documentationNot supported, and such a session "starts in Manual instead"

This article follows the changelog, for one reason: it is the newer of the two and it is the document that records changes, while the requirements list is the kind of page that lags a release by days. Readers on Opus 4.6 or Sonnet 4.6 should treat the docs page as not yet updated rather than as a correction, and should confirm the mode their own sessions start in rather than trusting either page. /status reports the session's permission mode, and it costs nothing to look once after upgrading.

#Which hook changes stop protecting you?

Three Changed bullets quietly narrow what a hook or a sandbox covers. None is labelled a security change and all three are worth an audit if you rely on hooks for redaction or logging.

ChangeWhat the changelog saysWho should act
Code Mode and UserPromptSubmit"Changed Code Mode to no longer run UserPromptSubmit hooks, managed ones included, on scripts' output; to redact that output, use a PostToolUse hook with updatedToolOutput"Anyone redacting Code Mode script output with a UserPromptSubmit hook
Managed PostToolUse on refused calls"Changed managed PostToolUse hooks to no longer fire for calls refused before they ran: no log entry, rewrite, block or stop there; PostToolBatch gets most, not marked as refused"Administrators whose audit trail counts on a hook firing for refused calls
PermissionRequest rewrites and the sandbox"Changed a shell command rewritten by a PermissionRequest hook to a sandbox-excluded command to run outside the sandbox"Anyone rewriting commands in a PermissionRequest hook on a sandboxed setup

The first is the one most likely to matter today, because it has a named replacement and a silent failure mode. A UserPromptSubmit hook that redacted secrets out of Code Mode output simply stops being called; nothing errors, and the output it used to clean now passes through. The changelog names PostToolUse with updatedToolOutput as where that work moves.

The second changes an audit trail rather than a permission. A refused call used to reach a managed PostToolUse hook, which could log it; now it does not, and the changelog is explicit that there is "no log entry" there. PostToolBatch still receives most of them, but "not marked as refused", so a log built on that batch can no longer tell a refusal from a completion. Anyone reconstructing what an agent attempted from hook output should read that bullet carefully. Our security hardening guide covers the wider habit this falls under: do not let a single hook be the only record of what a tool call did.

The third is narrow but sharp. A PermissionRequest hook that rewrites a command, where the rewritten command is one the sandbox excludes, now runs that command outside the sandbox. That is a sandbox boundary moving as a side effect of a rewrite you wrote for another purpose.

#What else can break a working setup?

Four more Changed entries, none of which announces itself at startup.

ChangeWhat the changelog says
MCP deny rules reach further"Changed deniedMcpServers entries of the form claude.ai <name> to apply to that connector in cloud and self-hosted runner sessions too"
A sandbox that cannot start"Changed how a sandbox that can't start is reported, unless sandbox.failIfUnavailable is set: the next sandboxed Bash command is refused and says that the sandbox is off for the session"
/code-review narrows its scope"Changed /code-review on most models to report only bugs and CLAUDE.md violations; run /simplify for reuse, simplification and efficiency cleanups"
Subagent waits in claude -p"Changed claude -p with CLAUDE_CODE_FORK_SUBAGENT=0 to count a background subagent and those it waits for against one 10-minute wait; raise CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS for longer chains"

The MCP one is a tightening rather than a loosening, and it is the kind that surfaces as a connector that worked yesterday and is refused today in a cloud or self-hosted runner session. If a claude.ai <name> deny rule was written for local sessions and nobody minded that it did not reach the runner, it reaches it now.

The sandbox reporting change is easy to misread as a failure. The sandbox not starting used to be reported differently; now the next sandboxed Bash command is refused outright and says the sandbox is off for the session. That is a clearer signal, but a script that treats a refusal as a fatal error will stop where it used to continue. Our write-up of 2.1.325 covers the earlier round of sandboxed Bash prompt changes this builds on.

/code-review reporting only bugs and CLAUDE.md violations is a scope change, not a regression: the cleanups moved to /simplify. The same bullet group adds that findings are now marked Important, Pre-existing or Nit, and that a clean review reads "Code review found no issues."

#Did 2.1.328 fix anything 2.1.327 broke?

Yes, one thing, and the changelog says so itself:

Fixed effort being turned off for a subagent's model for the session if Bedrock, Google Cloud's Agent Platform or Foundry refused its progress summary's effort setting (regression in 2.1.327)

That is the only bullet in the entry attributed to a regression in the previous release. It affects the same provider set as the auto mode change, which is worth noting if you took 2.1.327 on Bedrock, Agent Platform or Foundry and have seen subagents running without the effort level you set: the fix is in this release and not in the one you are on.

One self-hosted runner fix also belongs beside the data-loss fixes 2.1.327 shipped:

Self-hosted runner: Fixed deletion of a kept clone's objects or refs, and of commits that existed only there, after a temporary disk error; that start now fails instead

A commit that existed only in a kept clone has no copy anywhere, so this is the same class of problem as a deleted git-ignored file: the thing removed was the only version. The new behaviour is to fail the start rather than proceed, which is the right direction.

#Why does npm still install 2.1.311 on the stable tag?

Because the stable dist-tag has not moved since 26 October 2026. The registry metadata currently lists:

TagVersion
latest2.1.328
next2.1.328
stable2.1.311

2.1.311 was published on 26 October 2026 at 19:47 UTC, and fifteen versions have been published since. That gap has now been open for more than three weeks, across every release this site has written up since, so an install pinned to stable has none of the permission or hook changes in this article and none of the data-loss fixes from the release before it. We have no vendor page describing what the stable channel is meant to track, so the figures above are the registry facts rather than an explanation of them.

#What should you do today?

Four things, in order, and only the first is urgent:

  1. If you run Claude Code on Bedrock, Agent Platform, Foundry or a signed-in apps gateway with Opus 4.6 or Sonnet 4.6, decide whether you want interactive sessions starting in auto mode before you upgrade. permissions.disableAutoMode set to "disable" in managed settings is the switch that holds it off.
  2. Search your hooks for UserPromptSubmit handlers that touch Code Mode output. Move any that redact to a PostToolUse hook with updatedToolOutput.
  3. If an audit trail depends on a managed PostToolUse hook firing for refused calls, rebuild it, because that hook no longer fires there and PostToolBatch does not mark refusals.
  4. Then upgrade for the 91 fixes, which is the honest reason to take this release. Check the Claude Code hub for the earlier releases in this sequence.

Frequently asked questions

Should I upgrade to Claude Code 2.1.328?
Yes on the Anthropic API, where this is a large maintenance release: 144 bullets, 91 of them beginning with Fixed. Check your permission mode first if you run Claude Code against Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry or a signed-in Claude apps gateway on Claude Opus 4.6 or Sonnet 4.6, because auto mode now covers those two models on those providers and an interactive session that sets no mode starts in it.
Why does my Bedrock session start in auto mode after upgrading?
Because the model requirement moved. The changelog entry reads: Added auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude apps gateway; interactive sessions with no permission mode start in it. Starting an interactive session in auto mode when no mode is set was already the documented behaviour on those four providers, so the change is which models it reaches, not what it does.
Do the Claude Code docs agree that Opus 4.6 gets auto mode on Bedrock?
Not at the time of writing. The permission modes page still says that on those providers only Claude Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5 and the Fable models are supported, and that on any other model the session starts in Manual instead. The changelog is the newer of the two vendor sources, so this article follows it, but check the page again before you rely on either.
Will my redaction hook still run on Code Mode script output?
No. The release changed Code Mode to stop running UserPromptSubmit hooks, managed ones included, on scripts' output. The changelog names the replacement: to redact that output, use a PostToolUse hook with updatedToolOutput. A redaction hook left as a UserPromptSubmit hook stops covering Code Mode output on the first run after the upgrade.
Does Claude Code 2.1.328 contain a security fix?
No bullet in the entry names a security issue, a CVE or an advisory, and the entry contains no occurrence of the words security, CVE, advisory or vulnerability. That is not the same as nothing in the release mattering for security, because several entries change what hooks fire, what the sandbox refuses and which MCP servers a deny rule reaches.
Why does npm still install an older Claude Code than 2.1.328?
Check which dist-tag you are installing. The npm registry lists 2.1.328 under both the latest and next tags, while the stable tag still points at 2.1.311, published on 26 October 2026. Fifteen versions have been published since then, so an install pinned to stable picks up none of the permission or hook changes described here.

Sources

  1. Claude Code CHANGELOG
  2. Claude Code changelog feed (dated entries)
  3. Choose a permission mode (Claude Code docs)
  4. @anthropic-ai/claude-code on the npm registry

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