---
title: "Claude Code v2.1.205 发布：多项修复与改进"
source: "Claude Code：GitHub Releases（RSS）"
source_tier: "t1_5"
url: "https://github.com/anthropics/claude-code/releases/tag/v2.1.205"
permalink: "https://feed.astralor.com/items/itm_fa26ee3d760986c5cfb1a811"
published: "2026-07-08T21:22:06.000Z"
score: 79
channel: "tech"
tags: ["Anthropic","Bug修复","Claude Code","MCP","安全改进","性能优化"]
---

# Claude Code v2.1.205 发布：多项修复与改进

## AI 点评

> 这个版本虽然没有引入炫酷的新功能，但修复了多个让人头疼的 bug——特别是会话文件安全、Windows 删除陷阱、以及背景任务通知伪造问题。这些细节往往决定了一个工具是否值得长期信赖。如果你在用 Claude Code 的 Agent 或自动模式，强烈建议升级。

## 速览

Claude Code v2.1.205 版本重点修复了多个关键问题：包括阻止恶意篡改会话文件、修复 JSON schema 生成时的静默失败、改进 Windows 工作区删除的安全性、背景代理状态显示不一致、更新进程内存占用降低约 400MB 等。此外，自动模式现在会在执行 rm -rf 前询问确认，Agent 视图增强了 PR 链接和状态展示，/doctor 命令升级为全面诊断工具。这些改进提升了安全性、稳定性和开发体验。

## 关键点

- 修复了会话文件被篡改、JSON schema 无效时静默输出非结构化内容、Windows 软删除外部文件等安全与稳定性 bug。
- 自动模式在执行 rm -rf 前会询问确认，增加变数未解析时的保护。
- 更新程序改为流式写入磁盘，峰值内存使用减少约 400MB；背景任务通知明确标注“无人输入”，防止伪造审批。
- Agent 视图改进：显示状态词与分类标题，支持 PR 链接；/doctor 命令升级为完整诊断工具。

## 全文

What's changed Added an auto mode rule that blocks tampering with session transcript files Fixed --json-schema silently producing unstructured output when the schema was invalid, and schemas using the format keyword being rejected Fixed a message sent while Claude was working being silently lost when the turn ended at the --max-turns limit 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 attach erroring 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-desktop getting 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 -rf on 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 /doctor is now a full setup checkup that can diagnose and fix issues; /checkup is 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+

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_fa26ee3d760986c5cfb1a811
