官方更新 Claude Code Releases 2026-07-10T01:45 正文 ok 501 words

Claude Code v2.1.206 发布

英文标题:Claude Code v2.1.206

Claude Code v2.1.206 版本带来了多项增强与修复。新增了 `/doctor` 检查以精简签入的 `CLAUDE.md` 文件,并为 `/cd` 添加了目录建议。`/commit-push-pr` 允许推送到配置的推送远程,网关登录支持 Anthropic 公共端点。修复了大量问题,包括过期登录错误、MCP 超时、agent 视图卡顿等,同时提升了 `/code-review` 质量和终端列宽显示。
打开原文相关 9.6 · 机会 1
media1.3 KB media50.0 KB

中文

变更内容

  • 为 /cd 添加目录路径建议,匹配 /add-dir 的行为
  • 新增一项 /doctor 检查,该检查会建议对已签入的 CLAUDE.md 文件进行精简,去掉那些 Claude 能够从代码库中推导出的内容
  • /commit-push-pr 现在会自动允许向仓库配置的推送远程 (remote.pushDefault,或在仅配置一个远程时使用唯一远程) 执行 git push,不仅是 origin
  • 网关:/login 现在支持 Anthropic 运营的公共网关端点
  • EnterWorktree 现在在进入项目 .claude/worktrees/ 目录之外的工作树时会请求确认
  • 后台 agent 现在在 Claude Code 更新后会立刻在后台升级至新版本,无需在附加时经历缓慢的过期会话升级
  • 修复了过期登录导致所有模型失败时给出误导性错误“所选模型存在问题”,而不会提示运行 /login 的问题
  • 修复了 claude --resume 和 --continue 在启动时不响应键盘输入的问题
  • 修复了通过 --mcp-config 或 .mcp.json 配置的 MCP 服务器忽略每个服务器的 request_timeout_ms 设置,导致长时间运行的 MCP 工具调用在新会话中因默认 60 秒超时而失败的问题
  • 修复了 CLAUDE_CODE_EXTRA_BODY 被 claude agents / --bg 后台工作进程静默忽略的问题;现在 shell 导出的该覆盖变量会跟随派发会话
  • 修复了 OAuth MCP 服务器在单次令牌刷新失败后需要手动重新认证的问题
  • 修复了在服务器完成连接前的冷启动期间,--permission-prompt-tool 指向 MCP 服务器时崩溃并提示“MCP 工具未找到”的问题
  • 修复了 /model 选择器行显示出与行名称不同的模型价格的问题,并且不再对不按此计费的提供方报价第一方目录价
  • 修复了当权限或白名单限制导致与某行对齐的服务端提供的模型行被移除时,/model 选择器中其他行错位的问题
  • 修复了桌面会话在回合中发送斜杠命令后卡在“运行中”状态的问题
  • 修复了在 Windows 上,当设置提示出现在裸 claude --resume 之前时,agents 视图忽略键盘输入的问题
  • 修复了 claude rm 删除作业后该作业仍留在守护进程清单中,导致 claude agents 中重新出现该行的问题
  • 修复了 /remote-control 在退出登录时显示“未知命令”的问题——现在会解释如何登录
  • 修复了在工作流详情视图中左箭头键无法从某个阶段或 agent 中退回的问题
  • 修复了 /status 重复列出相同损坏安装警告的问题
  • 修复了针对 LSP 插件的虚假“未使用插件”提示及失真的未使用遥测数据
  • 修复了 /doctor 更新检查,使其能将 Homebrew 安装与其对应 cask 的通道进行对比,而非与设置通道对比
  • 修复了全屏跳到底部提示条在 macOS 上建议使用 Ctrl+End、不显示反弹按键组合以及覆盖对话记录的问题
  • Bedrock:修复了在具有受限出口网络上使用 awsCredentialExport 助手时出现数分钟启动挂起的问题
  • 改进了 /code-review 在 claude-opus-4-8 上所有努力级别下的发现质量
  • 改进了 agents 视图:状态列现在使用完整终端宽度,而不是截断为 64 个字符
  • 更改了 agents 视图:Ctrl+X 现在会永久删除已完成会话,并且会话不再重复渲染;已删除的后台作业将保持删除状态

English / 原文

  1. Releases
  2. v2.1.206

Compare

Sorry, something went wrong.

No results found

What's changed

  • Added directory path suggestions to /cd, matching /add-dir behavior
  • Added a /doctor check that proposes trimming checked-in CLAUDE.md files by cutting content Claude could derive from the codebase
  • /commit-push-pr now auto-allows git push to the repo's configured push remote (remote.pushDefault, or the sole remote when only one is configured) in addition to origin
  • Gateway: /login now supports Anthropic-operated public gateway endpoints
  • EnterWorktree now asks for confirmation before entering a git worktree outside the project's .claude/worktrees/ directory
  • Background agents now upgrade to a new version in the background right after a Claude Code update, instead of paying a slow stale-session upgrade when you attach
  • Fixed an expired login failing every model with a misleading "There's an issue with the selected model" error instead of prompting to run /login
  • Fixed claude --resume and --continue not responding to keyboard input on startup
  • Fixed MCP servers configured via --mcp-config or .mcp.json ignoring a per-server request_timeout_ms, which caused long-running MCP tool calls to time out at the 60s default in fresh sessions
  • Fixed CLAUDE_CODE_EXTRA_BODY being silently ignored by claude agents / --bg background workers; the shell-exported override now follows the dispatching session
  • Fixed OAuth MCP servers requiring manual re-authentication after a single failed token refresh
  • Fixed --permission-prompt-tool pointing at an MCP server crashing with "MCP tool not found" on cold start before the server finishes connecting
  • Fixed /model picker rows printing a price for a different model than the row named, and stopped quoting first-party list prices on providers that don't bill them
  • Fixed server-provided model rows being misplaced in the /model picker when an entitlement or allowlist restriction drops the row they were positioned against
  • Fixed desktop sessions getting stuck showing "running" after a slash command was sent mid-turn
  • Fixed keyboard input being ignored in the agents view when a setup prompt appeared before a bare claude --resume on Windows
  • Fixed claude rm leaving the removed job in the daemon roster, causing the row to reappear in claude agents
  • Fixed /remote-control showing "Unknown command" when logged out — it now explains how to sign in
  • Fixed left arrow not stepping back out of a phase or agent in the workflow detail view
  • Fixed /status listing the same broken-install warning twice
  • Fixed false "disused plugin" tips and skewed disuse telemetry for LSP plugins
  • Fixed /doctor's update check to compare Homebrew installs against their cask's channel instead of the settings channel
  • Fixed the fullscreen jump-to-bottom pill suggesting Ctrl+End on macOS, not showing rebound chords, and wrapping over the transcript
  • Bedrock: fixed a multi-minute startup hang when using an awsCredentialExport helper on networks with restricted egress
  • Improved /code-review findings quality on claude-opus-4-8 across all effort levels
  • Improved agents view: status column now uses full terminal width instead of truncating at 64 characters
  • Changed agents view: Ctrl+X now permanently removes a completed session, and sessions no longer render twice; deleted background jobs stay deleted

You can’t perform that action at this time.