跳到主内容
@wquguru
精选85Claude Code(GitHub Releases)AI 编程与模型

Claude Code v2.1.305:修复 Vertex/Bedrock 工具搜索回归及多项 Bug

v2.1.305

原文
发到 X
推荐理由

此版本修复了导致 Vertex/Bedrock 等云提供商请求全面失败的严重回归(Regression),依赖这些接口的开发者必须升级。建议尽快更新以恢复服务稳定性。

What's changed

变更内容

  • Added sandbox.allowNestedUserNamespaces so sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox's file protections
  • Added CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices a usage limit that was lifted before its reset
  • Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search, and behind gateways with ToolSearch disallowed or left out of --tools (a 2.1.304 regression): Claude Code now retries without it
  • Fixed /effort and /autocompact settings not applying when the model name differed from a modelOverrides value by letter case or a [1m] tag
  • Fixed new worktrees in a bare repository sometimes starting from local HEAD instead of the default branch, and unchanged subagent worktrees sometimes not being cleaned up
  • Fixed Bash commands on a full disk failing with a raw ENOSPC file path: the error now says the disk is full and that nothing ran
  • Fixed an MCP server passed by a cloud session or by the SDK's setMcpServers being replaced later in the session by a same-named server from your own settings
  • Fixed Claude naming the wrong model for a subagent's work after the subagent switched to a fallback model
  • Fixed cloud sessions and teammates not telling Claude when a compaction had to leave the oldest messages out of its summary to fit
  • Fixed more cases of scheduled Cowork cloud sessions waiting five minutes for each subagent whose WebFetch needed a URL approval that nobody was there to give
  • Fixed Workflow resume re-running already-completed pipeline() and parallel() agents instead of serving them from the run's journal
  • Fixed Remote Control leaving empty "(session)" entries in /resume after switching conversations with /resume
  • Fixed /usage rows being cut off in narrow terminals
  • Fixed startup warnings printing as raw text above the logo: they now go to the debug log, and permission rules that restrict nothing show as warning rows under the banner
  • Fixed screen reader mode: search boxes now say "Search:" instead of a symbol VoiceOver read as "telephone recorder", and highlighted prompt text, such as Ctrl+R search matches and "ultrathink", no longer has spaces inside words
  • Self-hosted runner: Fixed a start script that shares only its stdout with the runner or orchestrator failing with Resource temporarily unavailable when TERM is set (a 2.1.300 regression)
  • Self-hosted runner: Fixed repository access failing since 2.1.296 when a git credential helper or askpass program reads its settings through GIT_CONFIG
  • Self-hosted runner: Fixed the orchestrator reporting a spawn-runner hook as timed out when a runner it started in the background kept its output open
  • Improved /usage: each warning is now a one-line fix that names its source, and f applies the fixes; the same fixes appear in VS Code and /doctor
  • Improved MCP consent dialogs so an Enter meant for the prompt is less likely to be taken as Accept
  • Improved a mod's Image to draw its picture in iTerm2 3.5 and later with fullscreen rendering, where it showed only its alt text
  • Remote Control: Improved the spawn-mode messages: pressing w now says the new mode is saved for the folder, and a later claude remote-control start that uses the saved mode says where it came from
  • Changed allowedMcpServers to stop filtering managed-mcp.json stdio servers that use ${VAR} only in env: one your allowlist left out now loads on upgrade; use deniedMcpServers to keep it off
  • Changed plugins that Claude Desktop mounts by path to no longer keep their allowed-tools when your organization's managed settings set allowManagedPermissionRulesOnly
  • Changed the /artifacts delete confirmation to take 1 or Enter to keep, 2 to delete, and Esc to cancel; y and n no longer answer it
  • Changed a mod's docked pane to stay within 45% of the terminal's width, including a width kept from a wider terminal
  • [VSCode] Added a "Running start-up hooks" spinner status, with a screen reader announcement, while SessionStart or Setup hooks run
  • [VSCode] Fixed the spinner cutting off "Compacting..." when your spinnerVerbs setting replaces the built-in verbs with short ones
  • [VSCode] Changed the message shown when a session does not start in time and no hook is running: it now leads with the output logs and lists causes instead of pointing to sign-in and network first
  • [Cloud sessions] Fixed the Cloud environments admin page wrongly refusing to save an existing environment with an "installs packages" error
  • [Cloud sessions] Improved deleting a self-hosted environment so the dialog and error messages say what blocks the delete and what it will affect
  • [Claude Tag] Added public Slack channels Claude hasn't joined to the Claude Tag admin Add place search, so admins can set one up from there
  • [Claude Tag] Fixed Claude Tag access bundles so a repository that moved to another GitHub account can be added again
  • [Claude Tag] Fixed a routine set up in a Slack DM thread no longer posting after another routine in that thread restarted the conversation; both now keep posting there
  • [Claude Tag] Fixed routines set up in a Slack thread reporting success without posting after the conversation ended; those runs are now skipped and the creator is told
  • [Claude Tag] Improved Claude Tag admin pages in large organizations so plugin, skill and bundle edits work while the channel list is still loading
  • [Code Review] Fixed Code Review sometimes not reviewing the newest commit when several pushes landed on a pull request during a review
  • [Code Review] Changed Code Review re-reviews so they no longer open with LGTM while earlier blocking findings are still open
  • 新增 sandbox.allowNestedUserNamespaces,使 Linux 上的沙箱命令能够创建用户命名空间(Chromium、无根 podman);这使它们能够绕过沙箱的文件保护机制
  • 新增 CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS,以便无人值守重试模式 (CLAUDE_CODE_RETRY_WATCHDOG) 能在重置前检测到已被解除的使用量限制
  • 修复了在 Vertex、Bedrock 及其他提供商上,当端点或网关拒绝工具搜索时所有请求均失败的问题,以及在 ToolSearch 被禁止或未包含在 --tools 中的网关后方出现的情况(2.1.304 回归问题):Claude Code 现在会在此情况下重试而不使用它
  • 修复了当模型名称与 modelOverrides 值在大小写或 [1m] 标签上存在差异时,/effort 和 /autocompact 设置未生效的问题
  • 修复了裸仓库中新工作树有时从本地 HEAD 而非默认分支启动的问题,以及未更改的子代理工作树有时未被清理的问题
  • 修复了磁盘满时 Bash 命令因原始 ENOSPC 文件路径而失败的问题:现在错误信息会提示磁盘已满且未运行任何内容
  • 修复了由云会话或通过 SDK 的 setMcpServers 传递的 MCP 服务器在会话后续阶段被同名但来自您自身设置的服务器替换的问题
  • 修复了子代理切换到备用模型后,Claude 为子代理的工作命名错误模型的问题
  • 修复了云会话和队友未在摘要必须排除最旧消息以容纳更多内容时告知 Claude 的问题
  • 修复了更多计划中的 Cowork 云会话等待每个需要 URL 批准但无人给予批准的 WebFetch 子代理五分钟的问题
  • 修复了 Workflow 恢复时重新运行已完成的 pipeline() 和 parallel() 代理,而非从运行日志中提供它们的问题
  • 修复了 Remote Control 在使用 /resume 切换对话后在 /resume 中留下空“(session)”条目的问题
  • 修复了窄终端中 /usage 行被截断的问题
  • 修复了启动警告作为原始文本打印在徽标上方的问题:现在它们会进入调试日志,且不限制任何内容的权限规则会显示为横幅下的警告行
  • 修复了屏幕阅读器模式:搜索框现在显示“Search:”而不是 VoiceOver 读作“telephone recorder”的符号,高亮的提示文本(如 Ctrl+R 搜索匹配项和“ultrathink”)不再在单词内部包含空格
  • 自托管运行程序:修复了一个仅与其运行程序或编排器共享其 stdout 的启动脚本,当设置 TERM 时因资源暂时不可用而失败的问题(2.1.300 回归问题)
  • 自托管运行器:修复了自 2.1.296 版本起,当 git 凭据助手或 askpass 程序通过 GIT_CONFIG 读取其设置时,仓库访问失败的问题
  • 自托管运行器:修复了编排器在后台启动的运行器保持输出打开时,错误报告 spawn-runner 钩子超时的问題
  • 改进 /usage:每个警告现在都是一行修复方案,指明其来源,且 f 键可应用这些修复;相同的修复方案也出现在 VS Code 和 /doctor 中
  • 改进 MCP 同意对话框,使原本用于提示符的 Enter 键不太可能被误认为是 Accept(接受)
  • 改进某个 mod 的 Image,使其在 iTerm2 3.5 及更高版本的全屏渲染模式下正确显示图片,而此前仅显示其替代文本
  • 远程控制:改进 spawn-mode 消息:按 w 现在会提示新模式已保存至该文件夹,后续使用保存模式的 claude remote-control start 命令会说明该模式的来源
  • 更改 allowedMcpServers 的行为,停止过滤 managed-mcp.json 中使用 ${VAR} 且仅在 env 中引用的 stdio 服务器;之前因允许列表遗漏而未加载的服务器,现在升级时会加载;如需禁用,请使用 deniedMcpServers
  • 更改由 Claude Desktop 按路径挂载的插件行为:当组织的受管设置启用 allowManagedPermissionRulesOnly 时,不再保留其 allowed-tools
  • 更改 /artifacts 删除确认交互:按 1 或 Enter 保留,按 2 删除,按 Esc 取消;y 和 n 不再用于回答此确认
  • 更改某个 mod 的固定窗格宽度限制,使其保持在终端宽度的 45% 以内,包括从更宽终端继承的宽度
  • [VSCode] 在 SessionStart 或 Setup 钩子运行时,添加“正在运行启动钩子”的旋转状态指示器,并配合屏幕阅读器播报
  • [VSCode] 修复当你的 spinnerVerbs 设置将内置动词替换为简短动词时,旋转状态指示器截断“Compacting...”文本的问题
  • [VSCode] 更改会话未能及时启动且无钩子运行时的提示信息:现在优先显示输出日志并列出原因,而非首先指向登录和网络问题
  • [Cloud sessions] 修复云环境管理页面错误地拒绝保存现有环境并报错“installs packages”的问题
  • [Cloud sessions] 改进删除自托管环境的流程,使对话框和错误信息明确说明阻止删除的原因及其影响范围
  • [Claude Tag] 将 Claude 尚未加入的公共 Slack 频道添加到 Claude Tag 管理员的“添加位置”搜索功能中,以便管理员可直接在此处进行设置
  • [Claude Tag] 修复 Claude Tag 访问捆绑包,使已迁移至其他 GitHub 账户的存储库可以重新添加
  • [Claude Tag] 修复了在 Slack DM 线程中设置的例行任务,在另一项例行任务重启对话后不再发布的问题;现在两者均能继续在该处发布
  • [Claude Tag] 修复了在 Slack 线程中设置的例行任务在对话结束后报告成功但未发布的问题;这些运行现在会被跳过,并通知创建者
  • [Claude Tag] 改进了大型组织中的 Claude Tag 管理页面,使插件、技能和捆绑包的编辑在频道列表仍在加载时即可正常工作
  • [Code Review] 修复了 Code Review 在审查期间多个推送进入拉取请求时有时未审查最新提交的问题
  • [Code Review] 更改了 Code Review 的重新审查机制,使其不再在早期阻塞性问题仍未解决的情况下以 LGTM 状态打开

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件