Claude Code 2.1.328 adds auto mode for Opus 4.6/Sonnet 4.6 and new self‑hosted runner flags
Claude Code 2.1.328 introduces auto mode for Claude Opus 4.6 and Sonnet 4.6 across major cloud platforms, adds a --repository-folder flag and other options to the self‑hosted runner, and expands hook handling with an onFailure block mode.
Claude Code 2.1.328 was released on 2026-11-19. The update adds auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud Agent Platform, Microsoft Foundry, and the Claude apps gateway. Interactive sessions that lack a permission mode now start directly in auto mode.
The mcp_tool hook schema now supports the "onFailure": "block" attribute, causing a failing hook to block the associated action like command and HTTP hooks. Hosts can set the environment variable CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME to prevent claude -p --resume and --continue from executing a tool call that a hook previously deferred.
The /status endpoint and the claude doctor command display a notice when an OpenTelemetry exporter lacks an endpoint, indicating likely data loss. The Claude apps gateway shows a startup warning if a policy’s maxEffortLevel value is not a recognized effort level. Embedding apps can enable the policy plugin’s allowManagedModsOnly option, while an admin’s managed settings continue to take precedence.
Self‑hosted runner enhancements include a new --repository-folder flag that names the repository folder used at capacity 1, replacing the previous path‑based approach that could not be a symlink. The runner now warns at start‑up if the host’s settings.json defines a default permission mode that sessions will ignore. The orchestrator command claude self-hosted-runner accepts a --hook-label option to pass selected session labels to the spawn‑runner hook, and a new --metadata key=value option for claude --environment allows labeling a session for the spawn‑runner hook. Two new metrics—claude_code_self_hosted_orchestrator_session_queue_wait_by_reason_seconds and claude_code_self_hosted_orchestrator_sessions_given_up_total—track queue wait reasons and runner start‑up failures.
- Fixed a Bash‑in‑Zsh issue where commands beginning with
=caused a "not found" error. - Fixed markdown rendering freezes caused by extremely long or malformed input.
- Resolved rare screen‑freeze bugs.