官方更新 Claude Code Releases 2026-07-06T22:51 正文 ok 410 words

Claude Code v2.1.202 发布:新增动态工作流规模设置与可观测性增强

英文标题:Claude Code v2.1.202

Claude Code v2.1.202 版本引入动态工作流规模设置,允许开发者建议性控制工作流中的智能体数量(小型/中型/大型)。该版本还为工作流生成的智能体添加 OpenTelemetry 属性,以便通过遥测数据重建工作流活动。此外,修复了历史搜索崩溃、重命名会话回退、mTLS 握手失败和远程控制命令错误等大量问题,并改进了工作流列表布局和错误提示。这些更新提升了工具的稳定性与可观测性,为开发者带来更流畅的编码体验。
打开原文相关 13.2 · 机会 5
media1.3 KB media51.3 KB

中文

更新内容

  • 在 /config 中新增「动态工作流规模」设置,用于控制 Claude 生成动态工作流时通常使用的规模(小型/中型/大型智能体数量)——这是一项建议性指引,而非强制上限
  • 为工作流生成的智能体发出的遥测数据添加了 workflow.run_id 和 workflow.name OpenTelemetry 属性,从而可以通过 OTel 数据重建工作流运行的活动
  • 修复了在历史文件扫描尚未完成时确认或取消内联 Ctrl+R 历史搜索会导致崩溃的问题
  • 修复了后台会话的 /rename 在任务重启时被还原的问题,该问题导致无法通过新名称寻址会话
  • 修复了在位客户端证书轮换过程中重新应用设置时发生的瞬态 mTLS 握手失败
  • 修复了从 Remote Control(移动端/网页端)发送到交互式会话的命令因「未知命令」而失败的问题
  • 修复了从 Remote Control 移动应用或网页应用发送无标题的图像和文件时会被静默丢弃的问题
  • 修复了 claude auth login 和 claude mcp login --no-browser 打印的登录 URL 在通过 SSH 换行时无法可靠点击的问题——现在它以单个超链接形式输出
  • 修复了通过 claude agents 打开聊天时有时会失败,并提示「当前作为后台智能体运行」,随后出现工作进程崩溃/重生循环的问题
  • 修复了工作流脚本中包含 Unicode 引号转义的字符串在解析前被损坏的问题;工作流解析错误现在会显示有问题的行,而不是一律归咎于 TypeScript
  • 修复了麦克风或音频录制器失败时语音听写陷入无限重试循环的问题——重复采集失败现在会暂停语音输入
  • 修复了 /remote-control 会话在移动端和网页端应用中显示错误权限模式的问题
  • 修复了在拥有多个 git 工作树的仓库中按名称恢复会话或打开恢复选择器时耗时数分钟且占用大量内存的问题
  • 修复了当代理或网络在下载中途断开连接时安装器和更新器下载立即失败并提示「aborted」的问题——瞬时连接中断现在会进行重试
  • 修复了重新调用已加载的技能时会在其指令上下文中追加一份重复副本的问题
  • 改进了 /workflows 智能体列表的布局:标题更宽、新增专用时间列、模型名称更短,并移除了每行的工具调用计数
  • 改进了 MCP 错误消息:当服务器配置包含 url 但缺少 type 时,错误消息更清晰,会建议 "type": "http",而不是容易误导的「命令: 预期字符串」
  • 将 /review <pr> 改回快速单次审查;如需按选定投入程度进行多智能体审查,请使用 /code-review <level> <pr#>

English / 原文

  1. Releases
  2. v2.1.202

Compare

Sorry, something went wrong.

No results found

What's changed

  • Added a "Dynamic workflow size" setting in /config for controlling how large Claude generally makes dynamic workflows (small/medium/large agent counts) — an advisory guideline, not an enforced cap
  • Added workflow.run_id and workflow.name OpenTelemetry attributes to telemetry emitted by workflow-spawned agents, so a workflow run's activity can be reconstructed from OTel data
  • Fixed a crash in the inline Ctrl+R history search when accepting or cancelling while the search was still scanning the history file
  • Fixed /rename on background sessions being reverted when the job restarts, which broke addressing the session by its new name
  • Fixed transient mTLS handshake failures when settings were re-applied during an in-place client certificate rotation
  • Fixed commands sent from Remote Control (mobile/web) into an interactive session failing with "Unknown command"
  • Fixed images and files sent from the Remote Control mobile or web app without a caption being silently dropped
  • Fixed the sign-in URL printed by claude auth login and claude mcp login --no-browser not being reliably clickable when it wraps over SSH — it is now emitted as a single hyperlink
  • Fixed opening a chat from claude agents sometimes failing with "currently running as a background agent" followed by a worker crash/respawn loop
  • Fixed workflow scripts with unicode quote escapes in strings being corrupted before parsing; workflow parse errors now show the offending line instead of always blaming TypeScript
  • Fixed voice dictation retrying in an unbounded loop when the microphone or audio recorder fails — repeated capture failures now pause voice input
  • Fixed /remote-control sessions showing the wrong permission mode in the mobile and web apps
  • Fixed resuming a session by name, or opening the resume picker, taking minutes and using a large amount of memory in repositories with many git worktrees
  • Fixed installer and updater downloads failing immediately with "aborted" when a proxy or network drops the connection mid-download — transient connection drops now retry
  • Fixed re-invoking an already-loaded skill appending a duplicate copy of its instructions to context
  • Improved /workflows agent list layout: wider titles, a dedicated time column, shorter model names, and no per-row tool-call counts
  • Improved MCP error messages: clearer error when a server config has url but no type, suggesting "type": "http" instead of the misleading "command: expected string"
  • Changed /review <pr> back to a fast single-pass review; use /code-review <level> <pr#> for the multi-agent review at a chosen effort level

You can’t perform that action at this time.