Claude Code v2.1.203 发布
英文标题:Claude Code v2.1.203
Claude Code v2.1.203 版本带来多项关键修复和体验改进。新增登录过期预警与手动权限模式灰色⏸徽章,提升后台任务安全性;将额外工作目录集成至 MCP,并大量修复后台会话卡顿、路径继承、子代理崩溃等二十余项问题。其中修复了后台守护进程令牌过期导致的永久无响应,以及 macOS 低内存误判引起的 15–20 秒延迟。还通过延迟加载缩减二进制大小约 7 MB,优化长响应渲染性能,对开发者而言大幅提升了稳定性和工作效率。
打开原文相关 14.4 · 机会 3
1.3 KB
49.8 KB
中文
更新内容
- 添加了登录即将过期时的警告,以便在后台会话中断之前重新认证。
- 在手动权限模式下,在页脚添加了灰色⏸徽章,使活动模式始终可见。
- 将会话的额外工作目录添加到 MCP
roots/list,并在集合变化时发送notifications/roots/list_changed。 - 修复了 macOS 上打开或切换后台代理会话时因错误检测到低内存而卡顿 15–20 秒的问题(2.1.196 版本中的回归问题)。
- 修复了当守护进程的会话令牌过时,后台会话变得永久无响应(无法附加、回复和停止)的问题 —— 现在会话可自动恢复。
- 修复了从
claude agents返回时悄悄停止正在运行的子代理并从头重新运行提示的问题 —— 它们的工作现在可以继续进行了。 - 修复了交互会话中的内存和每回合 CPU 占用回归问题:上下文使用指示器不再在每个回合后重复分析整个对话记录。
- 修复了后台代理从守护进程继承了过时的
PATH而不是分派 shell 的,导致 Windows 上缺失工具的问题。 - 修复了后台和代理视图会话丢失 shell 导出的
ANTHROPIC_BASE_URL导致 API 密钥发送到默认端点并以 401 失败的问题。 - 修复了在有许多 git 工作树的仓库中 Bash 因“参数列表过长”而失败的问题。
- 修复了工作树隔离的子代理有时在父检出目录中而不是在自己的工作树中运行 shell 命令的问题。
- 修复了在多仓库工作空间中工作树创建拒绝嵌套仓库,导致后台会话无法隔离和编辑的问题。
- 修复了当后台代理的工作目录被删除、替换为文件或变成无效路径时它们会崩溃循环 —— 现在它们会一次性失败并给出明确的错误。
- 修复了后台守护进程自动升级失败会静默杀死所有正在运行的后台会话的问题。
- 修复了
TaskStop和TaskOutput无法找到由其他代理生成的后台代理的问题 —— 错误现在会列出正在运行的代理及其 ID 和描述。 - 修复了当斜杠命令不可用时,
claude agents编写器会丢弃你键入的消息的问题。 - 修复了打开一个已停止的会话(其对话已在另一个会话中打开)时,代理列表崩溃的问题。
- 修复了问题已回答后,代理列表中后台会话仍显示“需要输入”的问题。
- 修复了后台代理启动失败只显示“exit_with_message”而不是实际错误的问题。
- 修复了后台会话在通过守护进程分叉时忽略 settings.json 中
effortLevel更改的问题。 - 修复了附加的后台会话忽略
CLAUDE_CODE_DISABLE_MOUSE和CLAUDE_CODE_DISABLE_MOUSE_CLICKS选择退出的问题。 - 修复了在所有命名代理完成后
/exit错误地警告后台代理仍在运行的问题。 - 修复了从非 git 目录启动的后台会话在配置了
WorktreeCreate钩子时无法编辑文件的问题。 - 修复了
claude agents中的@目录选择器不显示注册的 git 工作树的问题。 - 修复了在 Windows 上
/clear后后台任务输出被永久替换为空文件的问题。 - 修复了在长对话历史中向上滚动时内容跳动的问题。
- 修复了在 bash 模式下输入时,当显示 shell 历史建议时终端闪烁和跳动的问题。
- 修复了重新附加到后台会话时打印字面量
^[[I/^[[O转义码的问题。 - 修复了纯 LSP 插件在语言服务器提供诊断或响应导航请求时被错误标记为弃用的问题。
- 改进了长响应流过程中的响应速度:实时预览更新不再重新渲染整个屏幕。
- 改进了子代理行为:代理现在不太可能将整个任务重新委派给另一个子代理。
- 通过延迟加载一个大型捆绑依赖而不是内联它,二进制文件大小减少了约 7 MB,启动内存减少了约 7 MB。
- 将左箭头键改为不再关闭后台任务、差异和工作流详情视图 —— 请按 Esc 键代替。
- 将空的
claude agents视图改为始终显示带有描述的组织区域(需要输入 / 工作中 / 已完成)。 - 移除了启动时的“claude 命令缺失或损坏”警告 —— 它们现在出现在
/doctor和/status中。 - 从
claude agents页脚移除了一个冗余的导航提示。 - [VSCode] 添加了一个设置选项,用于“为所有会话启用远程控制”。
English / 原文
Compare
Sorry, something went wrong.
No results found
What's changed
- Added a warning when your login is about to expire, so you can re-authenticate before background sessions are interrupted
- Added a grey ⏸ badge to the footer when in manual permission mode, making the active mode always visible
- Added the session's additional working directories to MCP
roots/list, withnotifications/roots/list_changedsent when the set changes - Fixed opening or switching background agent sessions on macOS stalling for 15–20 seconds due to a false low-memory detection (regression in 2.1.196)
- Fixed background sessions becoming permanently unresponsive to attach, replies, and stop when the daemon's session token went stale — the session now recovers automatically
- Fixed returning to
claude agentssilently stopping running subagents and re-running the prompt from scratch — their work now carries over - Fixed a memory and per-turn CPU regression in interactive sessions: the context-usage indicator no longer re-analyzes the entire transcript after every turn
- Fixed background agents inheriting a stale
PATHfrom the daemon instead of the dispatching shell, causing missing tools on Windows - Fixed background and agent-view sessions dropping a shell-exported
ANTHROPIC_BASE_URL, which sent API keys to the default endpoint and failed with 401 - Fixed Bash failing with "argument list too long" in repos with many git worktrees
- Fixed worktree-isolated subagents sometimes running shell commands in the parent checkout instead of their own worktree
- Fixed worktree creation rejecting nested repositories in multi-repo workspaces, leaving background sessions unable to isolate and edit
- Fixed background agents crash-looping when their working directory was deleted, replaced by a file, or became an invalid path — they now fail once with a clear error
- Fixed a background daemon auto-upgrade failure silently killing all running background sessions
- Fixed
TaskStopandTaskOutputfailing to find background agents spawned by another agent — errors now list running agents by id and description - Fixed the
claude agentscomposer discarding your typed message when a slash command isn't available there - Fixed the agent list crashing when opening a stopped session whose conversation was already open in another session
- Fixed background sessions showing "Needs input" in the agent list after the question was already answered
- Fixed background agent startup failures showing only "exit_with_message" instead of the actual error
- Fixed background sessions ignoring
effortLevelchanges in settings.json when forked through the daemon - Fixed attached background sessions ignoring
CLAUDE_CODE_DISABLE_MOUSEandCLAUDE_CODE_DISABLE_MOUSE_CLICKSopt-outs - Fixed
/exitincorrectly warning about running background agents after all named agents had completed - Fixed background sessions started from a non-git directory unable to edit files when a
WorktreeCreatehook was configured - Fixed the
@directory picker inclaude agentsnot showing registered git worktrees - Fixed background task output on Windows being permanently replaced by an empty file after
/clear - Fixed content jumping when scrolling up through long transcript history
- Fixed the terminal flickering and jumping while typing in bash mode when a shell-history suggestion was shown
- Fixed literal
^[[I/^[[Oescape codes being printed when reattaching to a background session - Fixed LSP-only plugins being incorrectly flagged for disuse when their language servers deliver diagnostics or answer navigation requests
- Improved responsiveness while long responses stream: live-preview updates no longer re-render the whole screen
- Improved subagent behavior: agents are now less likely to re-delegate their entire task to another subagent
- Reduced binary size by ~7 MB and startup memory by ~7 MB by loading a large bundled dependency lazily instead of inlining it
- Changed left arrow to no longer close the background tasks, diff, and workflow detail views — press Esc instead
- Changed the empty
claude agentsview to always show the organized sections (Needs input / Working / Completed) with descriptions - Removed the startup "claude command missing or broken" warnings — they now appear in
/doctorand/statusinstead - Removed a redundant navigation hint from the
claude agentsfooter - [VSCode] Added a Settings toggle for "Enable Remote Control for all sessions"
You can’t perform that action at this time.