Claude Code 2.1.328
Claude Code 2.1.328 added auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and the Claude apps gateway. Interactive sessions that don't set a permission mode start in auto mode.
Other changes in this release:
- MCP tool hooks now accept "onFailure": "block", as command and HTTP hooks already do. If the hook's call fails, the action it guards is blocked.
- Claude Code now warns you when a message from a session that skips permission prompts may be held and dropped by a cloud session.
- /status and claude doctor now show a notice when an OpenTelemetry exporter has no endpoint, since its data would likely be lost.
- A new setting, CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME, lets a host stop claude -p --resume and --continue from running a tool call that a hook deferred.
- Apps that embed Claude Code can now switch on the policy plugin's allowManagedModsOnly option. An admin's managed settings still win.
- The Claude apps gateway warns at startup when a policy's maxEffortLevel isn't a valid effort level.
- The self-hosted runner has a new --repository-folder flag. At --capacity 1, it names the folder sessions use for a repository instead of that repository's path under the base folder. The folder can't be a symbolic link.