Claude Code 2.1.296 更新:新增网关策略与子代理配置并修复多项问题
原标题:2.1.296
AI 摘要
Claude Code 发布 2.1.296 版本更新,新增多项配置能力:gateway 的 managed.policies[] 增加 code 键以在 Claude Desktop 的 Code 标签页应用相同设置,subagent frontmatter 支持 autoCompactWindow 提前压缩上下文,并新增 CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL 和 CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS 环境变量。同时修复了大量问题,涵盖 hooks 行为、MCP 服务器加载、权限检查、非 UTF-8 文件编辑、自托管 runner、插件同步与密钥脱敏等。
正文节选
- Added a `code` key to the Claude apps gateway's `managed.policies[]`: the same settings as `cli`, also applied in Claude Desktop's Code tab; beside `desktop`, it turns on Claude Desktop's gateway mode - Added `autoCompactWindow` to subagent frontmatter and `--agents` definitions, so a subagent can auto-compact earlier than the main conversation's window - Added `CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL` to run every workflow agent on one model while other subagents keep theirs - Added `CLAUDE_CODE_