2026 年 8 月 11 日发布的 v2.1.228 是一次密集的修复版本,涵盖会话渲染、Windows Git 路径、跨会话消息、自托管 Runner、凭据处理等多个方面,其中最值得关注的是一项针对 claude.ai 同步技能的安全加固。本文基于官方 Changelog 逐条解读。
安全加固:claude.ai 同步技能不再能悄悄接管命令
Hardened skills synced from claude.ai: they no longer shadow local
commands or MCP prompts, their descriptions are sanitized and
labeled, and on your machine their bodies don't run ! commands or
expand @ files
这是本次更新中分量最重的一条——此前从 claude.ai 同步下来的技能,存在几个潜在风险点:可能覆盖本地同名命令或 MCP 提示、描述文本未经清洗可能带有误导性内容、技能体内容在本机执行时可能触发 ! 命令执行或 @ 文件展开。现在这几个风险点都被收紧:
加固前 → 加固后
可能遮蔽本地同名命令/MCP提示 → 不再遮蔽,本地定义优先
描述文本未标注来源 → 描述文本被清洗并明确标注来源
技能体可执行 !命令、展开@文件 → 同步技能的技能体不再具备
这两项本地执行能力
如果你的团队在用 claude.ai 同步技能这个功能,这次加固值得重点关注——本质上是把"从云端同步下来的内容"和"本地信任的内容"做了更明确的权限区隔,是一次典型的供应链安全加固。
崩溃类修复
Fixed interactive sessions that could stop redrawing entirely, while
the process kept running, after a rare internal layout error
一个此前存在的边界 Bug——某种罕见的内部布局错误会导致交互式会话界面完全停止重绘,但底层进程其实还在正常运行,容易让人误以为程序卡死了实际上没有。
Windows 平台修复
Fixed git / Git Bash not being found on Windows when Claude Code is
launched from a parent folder of the git installation
如果 Claude Code 是从 Git 安装目录的父文件夹启动的,此前在 Windows 上会找不到 git / Git Bash——这是一个路径解析的边界情况,现已修复。
跨会话消息相关修复(两项)
Fixed cross-session messaging sometimes starting without an inbox in
the first session after install or upgrade
安装或升级后的第一个会话,跨会话消息功能有时会在没有收件箱的状态下启动——这个功能刚上线不久,这类首次使用的边界情况修复很正常。
Fixed Remote Control /resume while connected leaking the resumed
conversation's title or history into the connected session
这是一个值得警惕的信息泄露修复——在 Remote Control 连接状态下执行 /resume,此前恢复的会话的标题或历史记录可能泄露到当前已连接的会话中。如果你重度使用 Remote Control 多设备协作,这个修复值得尽快升级验证。
自托管环境相关修复(两项)
Fixed claude self-hosted-runner sessions failing on every fresh
runner when the checkout hook fails for a repository the session
doesn't push to; that repository is now skipped with a warning
Fixed self-hosted runners ending sessions in the gap between a
background task finishing and the follow-up turn starting
第一项修复很实用——如果 checkout hook 对一个会话根本不会推送的仓库执行失败,此前会导致每个全新 Runner 上的会话都失败,现在改为跳过该仓库并给出警告,不再阻断整个会话。
数据安全类修复(两项)
Fixed session cleanup deleting contents inside a project's memory
folder
Fixed background plugin-cache cleanup deleting a plugin's cache when
its only version is a symlinked development checkout
这两项都是"清理逻辑误删数据"类的修复——前者是会话清理误删了项目 memory 文件夹内的内容,后者是插件缓存清理在插件唯一版本是符号链接开发检出时误删了缓存。如果你在开发自己的插件并用符号链接方式做本地测试,这项修复直接相关。
配置与体验类修复
Fixed a settings-merge issue where a marketplace entry redefined in a
higher-precedence settings tier could inherit another tier's custom
headers; marketplace entries now merge as whole entries
Fixed the deferred-tools reminder occasionally being sent to the
model twice after a skill invocation
Improved cross-session messages: the sender and body now display
inline instead of a collapsed line, and messages to Remote Control
sessions on other machines show your Remote Control session name as
the sender
Improved Vertex AI credential handling: expired or missing Google
Cloud credentials now fail within seconds instead of retrying for
minutes
Improved compaction progress: the retry countdown and stall hint now
appear during compaction instead of only a progress bar
Vertex AI 凭据处理的改进尤其实用——此前凭据过期或缺失,会重试数分钟才报错,现在几秒内就能快速失败,省去了不必要的等待。
Write 工具行为变更
Changed the Write tool so newer models can overwrite an existing file
they haven't read this session, matching the Edit tool's rules;
older models still require the read first
较新的模型现在使用 Write 工具时,即使本次会话没有读过某个已存在的文件也可以直接覆盖写入,这一行为和 Edit 工具的规则保持了一致;较旧的模型仍然要求先读后写。这是一处模型能力差异化处理的细节调整。
总结
v2.1.228 虽然没有新功能,但修复密度很高,尤其是 claude.ai 同步技能的安全加固和 Remote Control 会话信息泄露这两项,分量都不轻——如果你在用这两项功能,建议尽快升级验证。其余的清理误删、Vertex AI 凭据超时等修复,则是各条产品线日常打磨的体现。
来源:Claude Code Changelog v2.1.228 — Claude Code 官方文档,Anthropic