Claude Code 2.1.319 更新:自动模式调整与 MCP 任务支持
原标题:2.1.319
AI 摘要
Claude Code 发布 2.1.319 版本更新,调整了自动模式在遥测或功能开关关闭及 LLM 网关后的行为,无法由服务器校验的调用将被询问或拒绝,并新增 CLAUDE_CODE_AUTO_MODE_SERVER 等环境变量控制。该版本新增终端内 MCP 任务后台执行支持、permissions.denyInsteadOfPrompting 设置、/claude-api latency-optimize 命令及多项网关管理配置,同时修复了 MCP 连接、/diff 显示、401 重试、自动模式误拒等大量问题。
正文节选
- Changed auto mode with telemetry or feature flags off, including behind LLM gateways: calls the server can't check are asked about or denied, with no fallback to the built-in classifier; set `CLAUDE_CODE_AUTO_MODE_SERVER=0` to keep using it (Bedrock, Vertex and Foundry are unchanged) - Changed auto mode behind an LLM gateway: `CLAUDE_CODE_AUTO_MODE_SERVER=1` turns on the server-side check even with `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` set; if managed settings set the latter, they must set