Claude Code v2.1.205 发布说明
英文标题:Claude Code v2.1.205
Claude Code v2.1.205 发布,带来大量缺陷修复与重要改进。本次更新新增自动模式规则以防止会话记录被篡改,修复了 `--json-schema` 等关键功能的静默失败,并解决了多个 Windows 特定崩溃与工作树异常。自动更新流程优化后,更新器内存占用降低约 400 MB。新增 `/doctor` 命令可全面诊断并修复配置问题,代理视图也获得了更清晰的状态展示。这些改进显著提升了命令行 AI 编码助手的稳定性、安全性和开发者体验。
打开原文相关 10.8 · 机会 2
1.3 KB
47.3 KB
中文
变更内容
- 新增自动模式规则,阻止篡改会话记录文件
- 修复了
--json-schema在 schema 无效时静默产生非结构化输出,以及使用了format关键字的 schema 被拒绝的问题 - 修复了当会话轮次在达到
--max-turns限制时结束时,Claude 工作期间发送的消息被静默丢弃的问题 - 修复了当工作树内存在 NTFS 联接或目录符号链接时,Windows 工作树清理会删除工作树之外文件的问题
- 修复了后台代理使用
SendMessage恢复后,在代理列表中仍显示为“失败”或“已完成”的问题 - 修复了当代理轮次不含可读文本时,后台作业在代理列表中从“需要输入”跳回“工作中”的问题
- 修复了
claude attach在后台代理升级重启过程中报错,而非等待其恢复的问题 - 修复了会话到 PR 的关联中,当 Bash 调用创建的 PR 输出超过 30K 内联限制时,该 PR 被遗漏的问题
- 修复了当服务器名称包含不受支持的字符时,
claude mcp add-from-claude-desktop卡住的问题;现在会报告无效名称,其余服务器仍能正常导入 - 修复了一个插件 LSP 服务器初始化失败,导致另一个插件中处理相同文件扩展名的有效 LSP 服务器也被阻止的问题
- 修复了命令运行时,Claude 启动的目录被删除、锁定或卸载,导致 Windows 崩溃的问题
- 修复了目录扫描仍在进行时关闭文件监视器导致崩溃的问题
- 修复了项目验证技能在每次会话中都被重写,而非仅在文档化命令发生变更时才重写的问题
- 修复了当作业列表轻微超出屏幕时,代理视图渲染偏高一行的同时标题被裁剪的问题
- 修复了 Web 和移动端远程控制面板中后台任务显示过时的“运行中”状态,改为在每次成员变更时转发完整任务状态
- 改进了自动模式:当对上下文无法解析的变量执行
rm -rf前会进行询问 - 自动更新二进制文件的下载现在直接流式写入磁盘,而非在内存中缓冲,使更新程序峰值内存占用减少约 400 MB
- 后台任务通知现在明确说明未发生任何人工输入,以防止根据伪造的会话记录批准而执行操作
- 改进了代理视图:对现有 PR 进行编辑、合并、评论或推送的会话,现在会在
claude agents中显示该 PR 的链接 - 改进了代理视图:行现在显示彩色状态词和由分类器编写的摘要标题,而非原始工具调用文本;预览打开时会展示完整状态,包括为阻塞会话明确提出的要求
/doctor现在是一个全功能的设置检查命令,可以诊断并修复问题;/checkup为其别名- 预留了 "Claude Browser" MCP 服务器名称(与 "Claude Preview" 一起),为 Claude Desktop 窗体重命名做准备;用户配置的 MCP 服务器不能再使用这两个名称进行注册
- 修复了在 CLI 2.1.203+ 版本中,Cowork VM 模式下的本地代理会话启动失败并提示“未登录 · 请运行 /login”的问题
English / 原文
Compare
Sorry, something went wrong.
No results found
What's changed
- Added an auto mode rule that blocks tampering with session transcript files
- Fixed
--json-schemasilently producing unstructured output when the schema was invalid, and schemas using theformatkeyword being rejected - Fixed a message sent while Claude was working being silently lost when the turn ended at the
--max-turnslimit - Fixed Windows worktree removal deleting files outside the worktree when an NTFS junction or directory symlink existed inside it
- Fixed background agents staying shown as "failed" or "completed" in the agent list after being resumed with
SendMessage - Fixed background jobs flipping from "needs input" back to "working" in the agent list when the agent's turn contained no readable text
- Fixed
claude attacherroring when a background agent was mid-upgrade restart instead of waiting for it to come back - Fixed session-to-PR linking missing a PR created in a Bash call whose output exceeded the 30K inline limit
- Fixed
claude mcp add-from-claude-desktopgetting stuck when a server name contains unsupported characters; invalid names are now reported and remaining servers still import - Fixed a plugin LSP server that fails to initialize preventing a valid LSP server from another plugin handling the same file extension
- Fixed a Windows crash when the directory Claude was launched from is deleted, locked, or unmounted while a command is running
- Fixed a crash when a file watcher was closed while a directory scan was still in flight
- Fixed project verify skills being rewritten on every session instead of only when a documented command changed
- Fixed the agent view rendering one line too high and clipping its header when the job list slightly overflowed the screen
- Fixed background tasks in the web and mobile Remote Control panels showing stale "Running" status by forwarding full task state on every membership change
- Improved auto mode to ask before running
rm -rfon a variable it can't resolve from context - Auto-update binary downloads now stream to disk instead of buffering in memory, cutting the updater's peak memory usage by roughly 400 MB
- Background task notifications now explicitly state that no human input has occurred, preventing fabricated in-transcript approvals from being acted on
- Improved agent view: sessions that edit, merge, comment on, or push to an existing PR now link it in
claude agents - Improved agent view: rows now show a colored state word and a classifier-written headline instead of raw tool call text, and the peek opens with full status including the exact ask for blocked sessions
/doctoris now a full setup checkup that can diagnose and fix issues;/checkupis its alias- Reserved the "Claude Browser" MCP server name (alongside "Claude Preview") ahead of the Claude Desktop pane rename; user-configured MCP servers can no longer register under either name
- Fixed Cowork VM-mode local-agent sessions failing to start with "Not logged in · Please run /login" on CLI 2.1.203+
You can’t perform that action at this time.