Claude Code 2.1.325 一口气发了 139 项改动,第一条是安全修复

3 阅读3分钟

北京时间 11 月 14 日 04:40(UTC 时间戳 2026-11-13T20:40:01Z),anthropics/claude-code 发布 v2.1.325,prerelease 标记为否。release 正文共 139 个要点:Fixed 打头 88 条,Changed 29 条,Improved 14 条,Added 只有 6 条、看不出任何成块的新功能——这版的主营业务是修缮。触发本次速报的关键词 integrated,指向的是一条 notebook 提示行;真正该记的在正文第一行——一个 zstd 压缩响应的安全问题。

事件原文

正文第一条:“Fixed a security issue in how zstd-compressed responses are decoded”,修复 zstd 压缩响应的解码方式。触发行原文:“Added a spinner tip in VS Code and similar integrated terminals about re-running a notebook cell, shown once Claude has read or edited a Jupyter notebook”——VS Code 等集成终端里,Claude 读写过 Jupyter notebook 后,第一次提示你可以重跑单元格。

安全与权限边界向的修复不止一条:

  • “Fixed a gap in Bash permission checks where some compound commands could run without asking; these now ask for permission”——部分复合 Bash 命令此前可能不经询问直接执行,现在会问了。
  • “Fixed background sessions started on your claude.ai login using (and billing) an API key or token from the shell that started the background service”——后台会话误用启动环境里 API key 计费的问题修掉了。
  • “Added a note for Claude when a sandboxed git checkout, git stash or autostash pull cannot update protected files such as those in .claude”——沙箱内 git 操作碰不到受保护文件时,给 Claude 补了一句说明。

模型与网关向的修复:

  • “Fixed subagents with their own model being moved to the plan-mode model when the model setting is opusplan or haiku”——设了 opusplan 或 haiku 时,子代理被错拉到 plan-mode 模型。
  • “Fixed sessions on many third-party gateways and Foundry stopping with a context length error on every turn instead of compacting”——第三方网关会话每轮报上下文长度错误、不走压缩的问题有了修复。
  • 组织策略拦截请求的报错下新增指引:“run /rewind and change the message, or run /clear”。

云端与 MCP 向:cloud session 里经 tool search 加载的 MCP 工具描述截断从 4,096 字符放宽——“the limit is now 16,384, as in other Claude Code sessions”;另有十余条修复集中在 MCP 重连、token 刷新、headless 模式下 elicitation 被取消这几个环节。

三句判断

  1. 139 个要点里 88 条是修复,zstd 解码安全问题、复合命令权限缺口、后台会话误计费同版打包——这是一版要按安全维护标准对待的发布,升级优先级高于常规小版本(作者判断)。
  2. 触发速报的 integrated 命中行本身只是一条终端提示,不构成升级理由;这版真正的分量在权限与计费边界的修复上(作者判断)。
  3. 子代理模型路由、第三方网关压缩、MCP 状态机三个方向修复成串出现,光 MCP 相关就占正文 19 条——此前以实验面目铺开的这几块路径,正在被工业化收口(作者判断)。

行动清单

  • 走企业网关或代理收发响应的用户,建议尽快升 2.1.325——理由只一条:安全修复,不是新功能。
  • 模型设置写了 opusplan 或 haiku、且给子代理单独指定过模型的,升级后复测子代理用的还是不是自己的模型。
  • 在第三方网关上被"每轮上下文长度报错"卡过的,升级后先重试,再回头改网关侧配置。
  • 配了严格 deny/ask 权限规则的管理员,留意复合 Bash 命令从此会多弹询问,把预期同步给团队。
  • 只冲着 notebook 提示行来的,可以不升。