官方更新 Claude Code Releases 2026-07-11T00:52 正文 ok 513 words

Claude Code v2.1.207

英文标题:Claude Code v2.1.207

Claude Code v2.1.207 发布:自动模式现已在 Bedrock、Vertex AI 和 Foundry 默认可用,无需额外配置。修复了流式返回长内容时终端冻结、远程托管设置未获同意即被记录、提示注入误报等多个关键问题。此外,改进了代理视图粘贴行为、调整了默认模型为 Claude Opus 4.8,并修复了 Windows 下 AWS 凭据解析挂起等稳定性问题。这些更新提升了开发者体验和安全性。
打开原文相关 7.2 · 机会 1
media1.3 KB media50.3 KB

中文

更新内容

  • 自动模式现已在 Bedrock、Vertex AI 和 Foundry 上默认启用,无需 CLAUDE_CODE_ENABLE_AUTO_MODE 选项;可通过设置中的 disableAutoMode 禁用。
  • 修复了在流式传输包含超长列表、表格、段落或代码块的回复时,终端冻结和按键延迟的问题。
  • 修复了来自非交互式运行(claude -p、SDK)的远程托管设置在从未显示安全同意对话框的情况下就被永久记录为已同意的问题。
  • 修复了良性系统生成的对话更新触发虚假的提示注入警告的问题。
  • 修复了自动更新程序每次发布时都会覆盖 ~/.local/bin/claude 处的自定义启动脚本或符号链接的问题;/doctor 现在会报告外部管理的启动器。
  • 修复了当输出仅重定向到 /dev/null 时,包含 cd 的复合命令仍请求权限的问题。
  • 修复了回复流式传输完毕时,对话记录跳转到答案开头之上的问题。
  • 修复了在最后一个 worktree.sparsePaths 工作树被移除后,extensions.worktreeConfig 仍残留在仓库 .git/config 中(导致如 tea 等 go-git 工具损坏)的问题。
  • 修复了规则 glob、技能路径、.ignore 和 .worktreeinclude 中格式错误的括号模式导致文件读取、文件建议和工作树创建中断的问题。
  • 修复了代理团队中的一个崩溃循环,即格式错误的队友邮箱消息导致每秒重复出现错误,直到手动删除邮箱文件为止。
  • 修复了通过接受计划自动命名的后台会话未在其代理视图行上显示该名称的问题。
  • 修复了进入 git 工作树的后台会话在从代理列表冷重启后恢复为空白的问题。
  • 修复了当连接从网络中断或凭据刷新中恢复时,远程控制任务状态更新丢失的问题。
  • 修复了桌面应用托管的远程控制会话在移动端和网页端不显示后台代理和工作流进度的问题。
  • 修复了深度研究运行将每个 Fetch 阶段代理标记为“unknown”的问题——标签现在显示源主机名。
  • 修复了 Bedrock 每次 API 请求都反复从 IAM Identity Center 请求新的 AWS SSO 凭据的问题。
  • 改进代理视图:再次粘贴相同文本时,现在会展开折叠的 [Pasted text #N] 占位符,而不是再添加一个。
  • 改进代理视图:被屏蔽的会话预览现在首先显示问题,并显示文字形式的过期时钟(waiting 3m),而不是两次相同的时间戳。
  • 将 Bedrock、Vertex 和 AWS 上的 Claude Platform 默认模型更改为 Claude Opus 4.8。
  • 更改自动模式,不再从 .claude/settings.local.json(仓库内)读取 autoMode;请改用 ~/.claude/settings.json。
  • 修复了 Windows 上 AWS 凭据解析停滞时(例如 credential_process 卡住)无限期挂起的问题:现在 60 秒停滞保护会触发,而不是一直等待。
  • 插件钩子/监视器/MCP headersHelper:shell 形式命令中的 ${user_config.*} 现已被拒绝(修复 shell 注入)。钩子:使用 exec 形式(args 数组)或 $CLAUDE_PLUGIN_OPTION_<KEY>;监视器和 headersHelper:在脚本内部读取值(配置文件或服务器的 env 块)。
  • 插件选项值(pluginConfigs)不再从项目级 .claude/settings.json 读取;仅使用用户设置、--settings 和托管设置。
  • 修复了 /usage-credits 金额输入会悄悄将格式错误的值(如粘贴的时间戳)剥离为数字的问题;现在格式错误的金额将被拒绝并报错,且超过 $1,000 的金额需要手动输入确认。

English / 原文

  1. Releases
  2. v2.1.207

Compare

Sorry, something went wrong.

No results found

What's changed

  • Auto mode is now available without CLAUDE_CODE_ENABLE_AUTO_MODE opt-in on Bedrock, Vertex AI, and Foundry; disable via disableAutoMode in settings
  • Fixed the terminal freezing and keystrokes lagging while streaming responses containing very long lists, tables, paragraphs, or code blocks
  • Fixed remote managed settings from a non-interactive run (claude -p, the SDK) being permanently recorded as consented without ever showing the security consent dialog
  • Fixed spurious prompt-injection warnings triggered by benign system-generated conversation updates
  • Fixed the auto-updater overwriting a custom launcher script or symlink at ~/.local/bin/claude on every release; /doctor now reports an externally managed launcher
  • Fixed compound commands with cd prompting for permission when the only output redirect was to /dev/null
  • Fixed the transcript jumping above the start of the answer when a response finishes streaming
  • Fixed extensions.worktreeConfig being left in the repo's .git/config (breaking go-git tools like tea) after the last worktree.sparsePaths worktree was removed
  • Fixed malformed bracket patterns in rules globs, skill paths, .ignore, and .worktreeinclude breaking file reads, file suggestions, and worktree creation
  • Fixed a crash loop in agent teams where a malformed teammate mailbox message caused repeated errors every second until the mailbox file was manually deleted
  • Fixed background sessions auto-named by accepting a plan not showing that name on their agent-view row
  • Fixed background sessions that entered a git worktree resuming blank after a cold reopen from the agent list
  • Fixed Remote Control task status updates being lost when the connection recovered from a network interruption or credential refresh
  • Fixed Remote Control sessions hosted by the desktop app not showing background agent and workflow progress on mobile and web
  • Fixed Deep research runs labeling every Fetch-phase agent "unknown" — chips now show the source hostname
  • Fixed Bedrock repeatedly requesting fresh AWS SSO credentials from IAM Identity Center on every API request
  • Improved agent view: pasting the same text again now expands the collapsed [Pasted text #N] placeholder instead of adding a second one
  • Improved agent view: blocked session peeks now lead with the question and show a worded staleness clock (waiting 3m) instead of the same timestamp twice
  • Changed Bedrock, Vertex, and Claude Platform on AWS to default to Claude Opus 4.8
  • Changed auto mode to no longer read autoMode from .claude/settings.local.json (repo-resident); use ~/.claude/settings.json instead
  • Fixed an indefinite hang on Windows when AWS credential resolution stalls (e.g. a stuck credential_process): the 60-second stall guard now fires instead of waiting forever.
  • Plugin hooks/monitors/MCP headersHelper: ${user_config.*} in shell-form commands is now rejected (shell-injection fix). Hooks: use exec form (args array) or $CLAUDE_PLUGIN_OPTION_<KEY>; monitors and headersHelper: read the value inside the script (config file or the server's env block).
  • Plugin option values (pluginConfigs) are no longer read from project-level .claude/settings.json; only user, --settings, and managed settings are honored
  • Fixed /usage-credits amount inputs silently stripping malformed values (e.g. a pasted timestamp) to digits; malformed amounts are now rejected with an error, and amounts over $1,000 require a typed confirmation

You can’t perform that action at this time.