官方更新 Claude Code Releases 2026-08-12T20:56 正文 ok 663 words

Claude Code v2.1.229 发布:增强远程控制、插件市场与稳定性

英文标题:Claude Code v2.1.229

Claude Code v2.1.229 新增并完善了远程控制会话恢复、自托管 runner 的服务端 Hook,以及长时间思考期间 SSE 流式响应的保活机制。此次更新引入插件市场的 `command` 来源,允许本地命令动态提供插件目录,无需重启即可在每个会话中重新解析。版本还修复了流式输出丢失或重复、窄终端 RangeError、Windows 路径崩溃、MCP OAuth 重定向兼容性等多项问题。对开发者而言,更新提升了 Vertex、Bedrock、自托管环境、IDE 集成及复杂工作流下的可靠性与可维护性。
打开原文相关 7.2 · 机会 1
media1.3 KB media50.5 KB

中文

更新内容

  • 已记录 claude remote-control --continue 的用法,用于恢复最近一次 Remote Control 会话。
  • 为自托管 runner 会话新增由服务器提供的 Claude Code Hook 支持,使其行为与托管环境保持一致。
  • 在长时间思考停顿期间,向网关流式响应添加 SSE 保活 ping,避免 Vertex 和 Bedrock 上游连接因空闲超时而断开。
  • 新增插件市场 command 来源:本地命令(例如 IDE)可输出插件目录,该目录会在每次会话中重新解析并应用,无需重启;mode: "link" 会直接使用该目录。
  • ListAgents 现在会将已断开的 Remote Control 会话标记为 offline,并将你的云端会话标记为 cloud。
  • 修复了长响应在流式传输期间部分内容消失、并在终端中被重复打印的问题。
  • 修复了当工具调用的 glob、file_path 或 command 值不是字符串时导致崩溃并进入错误页面的问题;这也包括对受影响会话执行 --resume 时的崩溃。
  • 修复了在极窄终端窗口中渲染进度条或 Markdown 表格时出现的 RangeError 崩溃;这也可能导致 claude --continue 或 --resume 在启动时崩溃。
  • 修复了 Windows 上当工具调用或消息通过扩展长度路径(\\?\)或 UNC 路径引用文件时发生的崩溃。
  • 修复了对于通过 CLAUDE_CODE_ATTRIBUTION_HEADER 禁用归因头的用户,自动模式在每次工具调用时都失败的问题(直接连接 Anthropic API 的场景)。
  • 修复了使用自定义 ANTHROPIC_BASE_URL 网关的 claude.ai 订阅者中,/model 拒绝 Sonnet/Opus 1M 的问题。
  • 修复了 MCP OAuth 与严格授权服务器的兼容问题:重定向 URI 现使用 127.0.0.1 而非 localhost。
  • 修复了在笔记本终端输入斜杠命令后,Remote Control 客户端持续显示卡住的工作中加载动画的问题。
  • 修复了由 /install-github-app 生成的 Claude Code Review 工作流在未向 Pull Request 发布审查结果的情况下即显示完成的问题。
  • 修复了连接 IDE 扩展时,编辑包含数千条 IDE 诊断信息的文件后出现数秒 UI 卡顿的问题。
  • 修复了一次性 claude plugin 命令遗留 liveness 文件的问题;该文件可能阻止过期插件版本被清理。
  • 修复了 CPU 受限容器中的动态工作流使用宿主机核心数、而非容器 CPU 限制的问题。
  • 修复了原子文件替换后文件监视器句柄泄漏的问题,以及 Windows 上计划任务监视器在网络或虚拟文件系统中失败时未捕获错误的问题。
  • 修复了 SDK 和 --input-format stream-json 会话提交仅包含空白字符的消息时收到 400 API 错误的问题。
  • 修复了仅消息内容就超过 API 32 MB 请求限制的会话,在没有可移除图片或文档时仍反复尝试压缩的问题;现在将直接失败一次,并给出清晰提示。
  • 修复了当 Claude Desktop 会话的 OpenTelemetry 导出端点与 Desktop 管理的网关相同时,遥测导出被该网关拒绝的问题。
  • 修复了部署 managed-mcp.json 且服务器下发 MCP 服务器时,自托管 runner 及其他远程会话在启动时退出的问题;这些服务器现在会被跳过并显示警告。
  • 修复了自托管 runner 在仓库准备阶段卡在 Git Credential Manager 提示上的问题;缺少凭据时,git 现在会快速失败。
  • 改进了工作流扇出:对具有相同前缀的同级 Agent 错峰执行,使后续 Agent 可读取缓存的提示词前缀,而不必再次支付相应成本(CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS=0 可禁用)。
  • 改进了“提示词过长”错误信息:现在会说明自动压缩为何无法恢复,而不再仅建议使用 /compact。
  • 改进了沙箱:网络域名列表中的 IPv6 字面量现在会加方括号,例如 [::1]:443;存在歧义的写法将按失败即拒绝(fail-closed)执行,并由 /doctor 标记。
  • 更新 /login:成功登录后会再次显示 CLAUDE_CODE_OAUTH_TOKEN 覆盖警告。
  • 修改 /commit-push-pr:带有危险标志(如 --force、--amend、--no-verify 等)的 git/gh 命令不再被自动批准。
  • 修改自托管 runner 在 Windows 上的启动方式:现在必须显式指定 --base-dir;Windows 上不再提供默认检出目录。
  • [VSCode] “Report a problem”和 /bug 现在会打开内置反馈对话框,而不是已停用的调查问卷链接。
  • [VSCode] /btw 旁问题面板现在支持通过拖动边界调整大小,侧边停靠和堆叠布局均可使用。
  • [VSCode] 在侧边栏中新增会话组:右键可创建、重命名或删除;使用 Cmd/Ctrl 点击或 Shift 点击可一次移动多个会话。

English / 原文

  1. Releases
  2. v2.1.229

Compare

Sorry, something went wrong.

No results found

What's changed

  • Documented claude remote-control --continue for resuming the most recent Remote Control session
  • Added server-supplied Claude Code hook support for self-hosted runner sessions, matching managed-environment behavior
  • Added SSE keepalive pings to gateway streaming responses during long thinking pauses, preventing idle-timeout disconnects on Vertex and Bedrock upstreams
  • Added plugin marketplace command sources: a local command (e.g. an IDE) prints the plugin directory, which is re-resolved each session and applied without a restart; mode: "link" uses it in place
  • ListAgents now marks disconnected Remote Control sessions as offline and labels your cloud sessions as cloud
  • Fixed long responses partly disappearing while streaming and being printed twice in the terminal
  • Fixed a crash to the error screen (including on --resume of the affected session) when a tool call had a non-string glob, file_path, or command value
  • Fixed a RangeError crash when a progress bar or markdown table rendered in a very narrow terminal window (could also crash claude --continue/--resume at startup)
  • Fixed a crash on Windows when a tool call or message referenced a file by an extended-length (\\?\) or UNC path
  • Fixed auto mode failing on every tool call for users who disable the attribution header via CLAUDE_CODE_ATTRIBUTION_HEADER (direct Anthropic API connections)
  • Fixed /model rejecting Sonnet/Opus 1M for claude.ai subscribers using a custom ANTHROPIC_BASE_URL gateway
  • Fixed MCP OAuth with strict authorization servers by using 127.0.0.1 instead of localhost in the redirect URI
  • Fixed Remote Control clients showing a stuck working spinner after a slash command typed in the laptop terminal
  • Fixed the Claude Code Review workflow generated by /install-github-app completing without posting its review on the pull request
  • Fixed multi-second UI stalls after editing a file with thousands of IDE diagnostics while the IDE extension is connected
  • Fixed one-shot claude plugin commands leaving a stray liveness file that could prevent cleanup of outdated plugin versions
  • Fixed dynamic workflows inside CPU-limited containers using the host machine's core count instead of the container's CPU limit
  • Fixed a file-watcher handle leak after atomic file replacements, and an uncaught error on Windows when the scheduled-tasks watcher failed on a network or virtual filesystem
  • Fixed SDK and --input-format stream-json sessions getting a 400 API error when a whitespace-only message was submitted
  • Fixed conversations whose messages alone exceed the API's 32 MB request limit retrying compaction when no images or documents can be stripped; they now fail once with a clear message
  • Fixed OpenTelemetry export from Claude Desktop sessions being rejected by the Desktop-managed gateway when that gateway is also the telemetry endpoint
  • Fixed self-hosted runner and other remote sessions exiting at startup when managed-mcp.json is deployed and the server delivers MCP servers; those servers are now skipped with a warning
  • Fixed self-hosted runner repository preparation hanging on a Git Credential Manager prompt; git now fails fast when credentials are missing
  • Improved workflow fan-outs to stagger same-prefix sibling agents so subsequent agents read the cached prompt prefix instead of re-paying it (CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS=0 disables)
  • Improved "prompt is too long" errors to explain why automatic compaction could not recover instead of only suggesting /compact
  • Improved sandbox: IPv6 literals in network domain lists are now bracketed ([::1]:443), and ambiguous spellings are enforced fail-closed and flagged by /doctor
  • Updated /login to repeat the CLAUDE_CODE_OAUTH_TOKEN override warning after a successful login
  • Changed /commit-push-pr so git/gh commands with dangerous flags (--force, --amend, --no-verify, etc.) are no longer auto-approved
  • Changed self-hosted runner Windows startup to require an explicit --base-dir; there is no default checkout directory on Windows
  • [VSCode] "Report a problem" and /bug now open the built-in feedback dialog instead of a retired survey link
  • [VSCode] Made the /btw side-question panel resizable by dragging its boundary, in both side-docked and stacked layouts
  • [VSCode] Added session groups in the sidebar — right-click to create, rename, or delete; Cmd/Ctrl- or Shift-click to move several sessions at once

You can’t perform that action at this time.