Claude Code v2.1.328: auto mode on enterprise channels, mcp_tool hooks onFailure: block
- Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.328
- Author: anthropics
- Published: 2026-11-19
- Intake: 2026-11-20 evening (daily-intake-evening, openclaw)
- Evidence: /Users/gracker/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/Hermes 定时任务/X-每日简报/2026-11-19-X-Hot-Brief_GeminiMacCU-ToolRetrieval-ClaudeAuto.md
中文摘要
Claude Code 2.1.328(11-19)改企业通道默认权限:Bedrock、Google Cloud Agent Platform、Microsoft Foundry、Claude apps gateway 上,Opus 4.6/Sonnet 4.6 交互会话未设权限模式时默认进 auto mode。安全侧收紧:mcp_tool hooks 支持 onFailure: block,hook 失败即阻断;跳权限提示的会话消息可能被云端扣下丢弃并警告。另有自托管 runner 参数与新指标。跑 agent 工作流的团队该核对通道默认值与 hook 失败语义。
English Summary
Claude Code v2.1.328 (published Nov 19) changes default permission behavior on enterprise channels: on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude apps gateway, interactive sessions with Opus 4.6/Sonnet 4.6 that set no permission mode now start in auto mode. On the safety side it adds "onFailure": "block" for mcp_tool hooks - a hook whose call fails blocks the action - plus a warning when messages from sessions that skip permission prompts may be held and dropped by cloud sessions. Self-hosted runner additions include --repository-folder, --hook-label, --metadata key=value and new orchestrator metrics.
Release notes (excerpts)
- - 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
- - Added
"onFailure": "block"formcp_toolhooks, as for command and HTTP hooks: a hook whose call fails blocks the action - - Added a warning when a message from a session that skips permission prompts may be held and dropped by a cloud session
- - Self-hosted runner: Added
--repository-folderto name the folder that sessions use for a repository at--capacity 1, in place of its path under the base folder, which can't be a symbolic link - - Self-hosted runner: Added
--hook-labeltoclaude self-hosted-runner orchestrator, to hand chosen session labels to thespawn-runnerhook - - Self-hosted runner: Added
--metadata key=valuetoclaude --environment, to label a session for thespawn-runnerhook - - Self-hosted runner: Added an orchestrator metric,
claude_code_self_hosted_orchestrator_sessions_given_up_total, that counts by cause how often Anthropic gave up starting a runner for a session - - Fixed auto mode failing every turn outside Claude Desktop with
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASset behind a gateway rejecting betas, on Bedrock, Agent Platform, Foundry or Claude apps gateway - - 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;
disableAutoModeturns both off