外部精选
Claude Code · v2.1.285
本文来自外部来源,不是黄奕彬的原创文章。本站提供原文入口,并在采集端生成 AI 结构化摘要、解读与中文翻译(如有),一切以原文为准。
阅读原文(github.com)结构化摘要 AI 生成
背景与问题
本文是 Claude Code v2.1.285 的官方发布说明(GitHub Releases,不可变发布,仅标题与说明可修改)。
面向该命令行编码工具的用户与企业管理员,旨在解决此前版本积累的大量缺陷(包括 2.1.283 引入的云端会话首条回复延迟回归)、企业管控能力缺口(如限制机器可用的 API 提供商)以及插件/MCP、远程控制、VSCode 扩展等场景下的功能与稳定性问题。
方法或内容
发布一个新版本(提交 ec44ca9),内容包括:新增 CLAUDE_CODE_DISABLE_WEB_FETCH 与 CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES 环境变量;新增 claude --desktop、claude plugin configure、插件安装时通过 --config 以 <server>.<key>=<value> 设置 MCP 服务器参数、allowedProviders 托管设置等;随后按 Fixed / Improved / Changed 分类,覆盖 CLI、VSCode、Cloud sessions、Claude Tag、Code Review 五大区块的数十项修复、改进与行为变更。
关键发现 / 结果
要点:后台 Bash/PowerShell 命令现受时间限制(默认 30 分钟、上限 2 小时,停止时通知 Claude);自定义 ANTHROPIC_BASE_URL 会话改用具备 1M 上下文的模型(Opus 4.7+、Sonnet 5+、Fable);修复流式持续失败时非流式回退最多重试 21 次的问题(现共享重试预算);修复 2.1.283 引入的云端会话首条回复延迟数十毫秒的回归;修复日志脱敏泄露 URL 密码(含 @ 与 %40 场景);修复 PowerShell 工具权限检查跳过 deny/ask 规则;VSCode 新增插件选项表单与按需诊断工具;其余为针对 /ultrareview、Artifact 工具、MCP、远程控制等的几十项修复与改进。
原文未说明性能数据或量化结果。
结论与意义
作为变更日志,原文未给出论述性结论;其意义在于告知用户 v2.1.285 相对旧版本的功能增补与修复范围,适用边界为 Claude Code v2.1.285(含 CLI、VSCode 扩展、云端会话等形态),并提示了若干需要用户配合的迁移点(如网关仅支持 200K 时需运行 /autocompact 200k、macOS/Linux 上传本地仓库需 git 2.31+ 等)。
AI 解读 AI 生成
方法:按「时空变量」分析(时间 / 空间 / 变量,严格区分包含、相关与因果),对象包括原文作者、署名人员与关键技术及其实际原理;结论用「元反空」(元思考、反思考、空思考、综合)整理。
时间:何时发生,现在是否仍成立
内容对应来源日期 2026-09-29 发布的 v2.1.285,描述的是该时点的变更事实。
作为不可变发布记录,其历史性描述持续有效;但其中行为细节(如超时默认值、支持的模型阵容 Opus 4.7+/Sonnet 5+/Fable、git 2.31+ 要求、Windows 环境变量处理)在后续版本中可能再次调整,当前是否仍完全成立取决于此后版本演进,原文未说明后续计划。
空间:谁的环境 / 场景
适用于 Claude Code v2.1.285 的各使用形态:CLI、VSCode 扩展、云端会话(cloud sessions)、Remote Control、Claude in Chrome,以及 WSL/Windows/macOS/Linux。
涉及 API 提供商:Anthropic API、自定义端点(ANTHROPIC_BASE_URL)、Amazon Bedrock、Mantle、Vertex AI、Foundry、Claude Platform on AWS、云端网关。
部分条目针对 Team/Enterprise 计划、托管设置/MDM 管理的机器、插件与 .mcpb MCP 服务器、Claude Tag(Enterprise 席位与 Cowork)、Code Review 等场景。
变量:实际改变了什么
相对此前的实际变更:新增 2 个环境变量(禁用 WebFetch、限制非流式回退超时重发)与 allowedProviders 托管设置;CLI 新增 --desktop、plugin configure 等用法;行为变更包括后台命令强制超时、1M 上下文启用条件改变、/config chrome=true 不再默认开启 Chrome、Windows 项目/本地设置不再设置 ALLUSERSPROFILE 等变量、MCP 服务器名 widgets 在云端被保留、项目设置不能放宽管理员要求的沙箱;安全类修复包括日志脱敏泄露 URL 密码、PowerShell 权限检查跳过 deny/ask 规则、eval runner 经符号/硬链接写文件等。
区分:包含 ≠ 相关 ≠ 因果
发布说明把(Fixed X)表述为直接因果断言(该修复解决了该缺陷),但均属厂商自述,未附复现数据或统计证据。明确的因果线索仅个别条目:如(云端会话首条回复延迟数十毫秒)被明确指认为 2.1.283 的回归;Bedrock/Vertex 在管理员移除默认模型访问权时切换同档旧模型属条件-行为描述。
多数条目(如压缩后云端会话拒绝更新 artifact、长会话中途短暂卡顿)只是并列描述症状与修复,原文未说明其深层因果或相关性验证。
对象:作者/署名与关键技术原理
作者/署名:结构化作者字段为空,原文未说明具体署名人员,仅知来自 Claude Code 官方发布渠道(Anthropic 的 GitHub releases)。
涉及的关键技术及原文描述的原理:Claude Code CLI 及子代理(fork subagent 的 Agent 调用改为前台运行,fork 继承父会话权限模式且不能退出 plan mode);MCP 服务器(.mcpb 打包、stdio/WebSocket 类型、_meta['anthropic/alwaysLoad'] 控制延迟加载);allowedProviders 托管设置限制机器可用的 API 提供商;非流式回退请求共享流式请求的重试预算;Bedrock 等的 SigV4 签名 Host 头需包含非默认端口;/ultrareview 以 git 2.31+ 的部分克隆上传工作树快照;Artifact 工具发布前需重读文件以防覆盖新内容。
元反空综合结论
元:这条内容本质是在回答(v2.1.285 改了什么、用户需要知道或做什么),是面向存量用户的增量沟通,而非新知识的论证。
反:最可能失效或有边界的部分——版本特定行为(超时值、模型阵容、git 版本要求、Windows 环境变量处理)会随后续版本变化;(修复了 X)是厂商单方断言,未经第三方验证;个别修复依赖用户配合(如 Artifact 允许规则需用 --add-dir 加入目录、网关仅支持 200K 时需 /autocompact 200k、云端 MCP 服务器名 widgets 需改名)。
空:去掉叙事后剩下的必要事实是——一次不可变的例行补丁发布(提交 ec44ca9),新增少量管理员管控项与开关、大量定向缺陷修复、若干行为收紧。
综合:本内容可信度定级为官方变更记录,适合作为升级决策与排障参考;原文未说明性能提升幅度与已知遗留问题,具体行为宜在实际版本中验证。
中文译文 AI 生成
不可变的发布。只有发布标题和发布说明可以被修改。
ec44ca9
更新内容
新增 CLAUDE_CODE_DISABLE_WEB_FETCH 环境变量,用于关闭 WebFetch 工具新增 claude --desktop,可在当前目录打开 Claude 桌面应用,或通过 --continue / --resume <id> 在某个会话上打开新增 claude plugin configure <plugin>,用于显示某个插件的选项以及哪些尚未设置,或使用 --values-stdin 保存从 stdin 读取的新值为 claude plugin install --config 新增 <server>.<key>=<value>,使捆绑的 .mcpb MCP 服务器自身的设置可以在安装时设定,从而无需访问 /plugin → Configure 即可启动新增 allowedProviders 托管设置,用于限制一台机器可以使用哪些 API 提供方(Anthropic API、自定义端点、Bedrock、Mantle、Vertex AI、Foundry、Claude Platform on AWS 或 Cloud 网关)新增 CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES 环境变量,用于限制对已超时的非流式回退请求的重发次数修复了 claude -p 搭配 CLAUDE_CODE_FORK_SUBAGENT=1 的问题:子代理自身的 Agent 调用现在在前台运行,因此该子代理能获得其子级的结果修复了通过 SSH 安装和更新插件与市场时,忽略 GIT_SSH 或你的 git 配置中 core.sshCommand 所设置的 ssh 程序的问题修复了操作系统拒绝读取托管设置文件时 Claude Code 拒绝启动的问题;现在会发出警告并在不加载该文件策略的情况下启动。
其他读取错误以及无法解析的文件仍会使每个会话终止修复了云会话在对话被压缩后重启时,拒绝更新该会话已读取或已发布的 artifact 的问题修复了使用完整 name@marketplace id 执行 claude plugin disable 和 enable 时,更改的是另一个大小写不同的设置条目而非已安装插件自身条目的问题修复了通过 Remote Control 发送的消息所附带的文件在仅一次下载失败后被遗漏的问题;网络错误、超时或服务器错误现在最多重试两次修复了会话中途通过 set_model 请求(例如 Agent SDK 的 setModel)切换模型后,新模型在重启前一直沿用内置 output token 上限和自动压缩窗口的问题修复了脱敏后的日志和转录会显示包含 @ 的 URL 密码的一部分,或当 URL 将 @ 写作 %40 时显示全部密码的问题修复了来自 worktree 和 /teleport 拉取的 SSH 密码短语和新主机提示接管终端的问题;这些拉取现在会快速失败而不是发起询问修复了在 SDK 和 -p 会话中关闭会话中途添加的 MCP 服务器后,其工具仍然可用的问题修复了 claude -p --permission-prompt-tool 的问题:后台子代理的权限请求现在会发送到提示工具,而不是被自动拒绝修复了 claude mcp list 和 claude mcp get,以及 claude mcp remove、login 和 logout 的未找到错误,会打印来自 MCP 服务器名称和值中的换行符与终端转义序列的问题修复了沙箱自动放行 仅因许多内联脚本(python3 -c、node -e)包含 = 就在其每次运行时请求批准的问题修复了 fork 子代理不保留会话的计划模式或 dontAsk 模式的问题:fork 现在在其父级的权限模式下运行,且无法退出计划模式修复了 claude remote-control --help 声称 --[no-]chrome 默认取机器的 /chrome 设置的问题;除非传入 --chrome,否则生成的会话会保持 Claude in Chrome 处于关闭状态修复了 auto 模式下的后台子代理在每次报告后请求第二次多余回复的问题修复了云会话创建和 /remote-env 只读取账户环境中最新的 20 个的问题修复了 Remote Control 在消息一到达就将其标记为已读(而不是在 Claude 开始处理该消息时),以及终端退出时丢失仍在队列中的消息(该消息现在会在下次恢复时到达)的问题修复了使用 claude plugin install 或 /plugin 安装插件时,当两者的 id 仅在 .、-、@ 或大小写(macOS、Windows)上存在差异,插件会被放入某个已安装插件的缓存或数据文件夹的问题;现在会拒绝此类安装修复了当计划是在同一响应中写入时,hooks 和 SDK 权限回调在 ExitPlanMode 上看到缺失或过时计划的问题修复了云会话中首个回复会延迟数十毫秒到达的问题,该问题是 2.1.283 中的一项回归修复了使用 ANTHROPIC_AUTH_TOKEN 向 Anthropic API 进行身份验证的会话从不加载组织策略的问题修复了工作流脚本稍后才 await 或完全不 await 的失败 agent()、parallel() 或 pipeline() 调用被当作未处理的 promise 拒绝,从而可能终止后台会话的问题修复了同步 hooks 在其启动的后台进程(例如 some-daemon &)保持输出打开期间使 Claude Code 挂起的问题;现在 hook 会在其自身进程退出后不久结束修复了 WebFetch 将被限流的域名安全检查报告为网络或企业策略阻止的问题修复了在包含数百次文件读取或搜索的轮次上打开全屏 ctrl+o 转录时短暂冻结的问题;转录打开时仍在运行的工具调用现在会在完成时显示其结果修复了 Amazon Bedrock 流中途的 modelTimeoutException 和 serviceUnavailableException 错误显示原始 JSON 正文而非错误消息的问题修复了 /autofix-pr 和 /schedule 在尚未检查安装状态的仓库上声称 Claude GitHub App 未安装的问题修复了在 /artifacts 中移除某行 会解除其文件与 artifact 的关联,导致再次发布同一文件时创建新 artifact 而不是更新它的问题修复了对话回退 后 Artifact 工具的发布会覆盖文件中较新的、Claude 仅在被回退的轮次中读取过的内容的问题;现在会拒绝该发布,直到 Claude 重新读取该文件修复了 Artifact 允许规则(“不再询问”)允许 Artifact 工具不经询问就发布工作目录之外的文件的问题;使用 --add-dir 添加该文件所在的文件夹即可让规则覆盖它修复了当服务器以与客户端预期不同的回退模型回应拒绝时,/cost 和 SDK 的 modelUsage 将某个轮次记在错误模型下的问题
修复了 Artifact 工具的一个问题:当 Claude 之前的读取被中断或文件此后已发生更改时,发布页面不再导致 Claude 在未重新读取的情况下覆盖其源文件
修复了 auto 模式在 Artifact 工具资源上传以及读取他人 artifact 时跳过其分类器的问题(此前你曾在其他权限模式下批准过该 artifact)
修复了 /ultrareview 在项目文件夹短暂无法读取时出现的误导性 "core.worktree is set" 错误
修复了 /ultrareview 在 macOS 和 Linux 上无法从其 per-worktree 配置设置了 core.longpaths 的 git worktree 上传工作树的问题
修复了 Artifact 工具在重试临时服务器错误后有时会将发布误报为与另一个会话冲突的问题(实际上首次尝试已经成功)
修复了 /ultrareview 上传中包含对凭据文件的未提交更改的问题,此类文件名在扩展名前含有冒号,例如 server:8443.key
修复了两个会话同时恢复由崩溃进程遗留的登录刷新锁时出现的罕见认证失败
修复了 PowerShell 工具的权限检查在其命令解析器启动失败时(例如机器内存耗尽时)跳过 deny 和 ask 规则、并将该失败结果缓存用于后续检查的问题
修复了 /ultrareview 上传在 macOS 和 Linux 上对某些异常文件名运行缓慢的问题,以及其凭据文件检查会遗漏带有大量备份或编辑器标记的文件或文件夹名称的问题
修复了取消请求在设置过程中到达时,已取消的 shell 命令或 hook 仍会启动并运行至结束的问题
修复了 vim 模式的问题:在外部编辑器(Ctrl+G)中编辑之后,NORMAL 模式下的 x 或 r 不再破坏提示末尾的粘贴文本占位符
修复了被 API 输出内容过滤器拦截的响应被重新发送并重试(有时长达数分钟)而不是立即显示过滤器错误的问题
修复了插件静默跳过仍需配置的内置 .mcpb MCP 服务器的问题:/plugin、安装消息和 claude plugin install 现在会说明这一点并指向 Configure
修复了当会话已保存的转录记录中包含字段缺失或格式错误的压缩标记或循环唤醒条目时,压缩或恢复该会话失败、打开时缺少历史记录或崩溃的问题
WSL:修复了 /ultrareview 在已更改文件名含有冒号或以点或空格结尾时拒绝上传 Linux 卷上 checkout 的问题
修复了 CLAUDE_CODE_RESUME_INTERRUPTED_TURN 重新运行已在 --max-turns 处结束的轮次的问题
修复了浏览器显示成功后登录可能无限等待的问题
Windows:修复了某些情况下 /ultrareview 会上传以你的主文件夹为根目录的仓库的 linked worktree 的问题
修复了云会话在任何文件上传之前就报告 uploads 文件夹缺失的问题
修复了从 claude agents 发送给正在等待权限提示的后台会话的回复有时会批准待处理命令的问题
修复了当选项位于命令名之前时(例如来自 shell alias),claude attach、logs、stop、respawn 和 rm 会以命令名作为提示启动新会话的问题
修复了 claude mcp list 遗漏 WebSocket (ws) MCP 服务器的问题;现在每个此类服务器都会连同其 URL 和健康状态一起列出
修复了 claude mcp get 对配置条目省略了 type 字段的 stdio 服务器不显示 Type、Command、Args 或 Environment 的问题
修复了在配置了 git 的 trace2 输出时,.claude/settings.local.json 的 allow 规则在 git 仓库之外被扣留的问题
修复了 /claude-api eval runner scaffold 和 report builder 通过被植入在输出文件处的 symlink 或 hard link 进行写入的问题
修复了 /claude-api eval runner scaffold 将在 max_tokens 处被截断的响应计入分数平均值的问题;这些响应现在会被标记为 truncated 并单独计数
修复了回复使用 缩进文本(例如 markdown 表格中的行标签)时,它在终端中显示为字面文本的问题
修复了在非全屏模式下长会话中途出现短暂卡顿(最长一秒)的问题,该卡顿在 /clear 或 /compact 之后会再度出现
修复了当已批准的 Edit 的目标是一个设备(例如 symlink 到 /dev/null 的文件)、且该批准来自 IDE diff 视图或更改了该编辑时,该编辑永远无法生效的问题
修复了流式传输持续失败时失败的 API 请求最多被重试 21 次的问题;非流式回退现在与该请求共享重试预算,而不是获得全新的一组重试
改进了 Claude in Chrome:native host 现在会报告你的计算机名称,因此已连接的浏览器可以按计算机标注,而不是 "Browser 1" / "Browser 2"
改进了 Bedrock 和 Vertex AI 会话:当管理员移除对默认模型的访问权限时,会切换到同等级的较旧可用模型,而不是直接失败;会话标题和摘要现在也会随之回退
改进了插件市场错误提示,现在会说明 git 地址被拒绝的具体原因,而不是援引企业策略
改进了对插件、市场以及当前仓库 remote 的 git URL 的验证
改进了 Artifact 工具的结果:现在会在写入或编辑页面的同一步骤中建议发布,这可以节省一次往返
改进了 Remote Control:向由 Claude Desktop 等应用托管的会话提出的 /btw 侧问问题,现在能看到正在进行的轮次,而不仅是最后一个已完成的轮次
改进了 Claude 以 BMP、HEIC、HEIF、AVIF 或 TIFF 文件发送的图片:在 Claude Code 能够转换它们的情况下,Claude 应用现在会显示预览
改进了 auto 模式下的 subagents:subagent 的运行现在在其将报告交回调用者的那一刻即结束,而不是继续进行无法送达任何人的额外轮次
改进了 Bedrock 和 Vertex 的启动模型检查:你的账户无法使用的模型现在会被记住最多一天,而不是在每次启动时重新检查
改进了 Artifact 工具的发布结果以使用更少的 token:关于更新 artifact 的说明更简短,且在每次发布后不再重复说明在哪里可以找到你的 artifacts
改进了非流式回退请求期间的 SDK 存活检测:在开启 partial messages 的情况下,现在会每 30 秒在 Anthropic API、Claude Platform on AWS 和网关上发送一个 ping 流事件改进了针对正在后台运行的会话使用 /resume 和 claude --resume 的行为:现在它们会打开该会话而不是拒绝,并且通过 claude --resume <id> "prompt" 给出的提示会作为该会话的下一轮发送给它改进了配置了大量 permission deny 规则和 MCP 工具时的每轮性能改进了在全屏渲染关闭时,长会话中退出 ctrl+o 转录视图的响应速度改进了 Bedrock、Vertex 和 Mantle 的启动模型检查,使其发送与常规请求相同的 User-Agent、x-app 和 session ID 头变更了 MCP 工具:当某个工具将自身的 _meta['anthropic/alwaysLoad'] 设为 false 时,即使其 --mcp-config、Agent SDK 或插件服务器被设置为 alwaysLoad,该工具仍保持延迟加载变更了后台 Bash 和 PowerShell 命令,使其在达到时间限制后停止(即它们在 run_in_background 下的 timeout,默认 30 分钟,最长 2 小时);当某个命令被停止时会通知 Claude变更了 Code Review 的 pull request 审查和 /ultrareview,使其在 disableWorkflows 开启时仍会运行,除非运行审查的机器由其自身管理员设置了该选项(通过 MDM 或 managed-settings 文件)变更了使用自定义 ANTHROPIC_BASE_URL 的会话,使其使用具备 1M 上下文窗口的模型(Opus 4.7+、Sonnet 5+、Fable)的 1M 上下文窗口;如果你的网停在 200K 处停止,请运行 /autocompact 200k变更了 Team 和 Enterprise 会话,以及 Claude Code 无法确定其登录计划的会话:如果组织策略在启动时未能加载,则会暂缓 WebFetch 直至该策略加载完成变更了 /memory,使 Auto-memory 无法再从后台会话或由 Claude Code 自身某个工具启动的会话中开启;在这些会话中关闭它仍然有效变更了将 auto 模式设为你的默认权限模式的一次性提议,使其在第三方提供商上以及遥测关闭时也会显示(当你的用户设置默认为其他模式时)变更了在第三方提供商上或遥测关闭时的 claude -p 和 Python Agent SDK 会话,使其在未配置权限模式时以 auto 模式启动,与交互式会话一致;--permission-mode 仍会覆盖它变更了 Bedrock、Mantle 和 Claude Platform on AWS 对使用非默认端口的 base URL 的请求,使其在经过 SigV4 签名的 Host 头中包含该端口变更了 MCP 服务器名称 widgets,使其在云端会话和自托管 runner 上成为保留名称:你自己以此命名的服务器,或与之近似拼写的名称(如 widgets_)将不再加载,请对其重命名变更了 macOS 和 Linux 上的 /ultrareview,使其在上传本地 checkout 时排除 symbolic refs;当前分支是 symbolic ref 的 checkout 现在会被拒绝并给出解释Windows:变更了项目设置和本地设置的 env,不再设置 ALLUSERSPROFILE、SystemDrive 或 CommonProgramFiles 变量;请改为在用户设置或托管设置中设置它们变更了 /tasks,将 Claude Code 为自身运行的后台工作折叠到一个“System tasks”行下;在其上按 Enter 即可显示这些任务变更了 macOS 和 Linux 上的 /ultrareview,要求 git 2.31 或更新版本才能上传本地仓库;使用 --separate-git-dir 创建的 checkout 现在会被拒绝,而不是用旧方法上传变更了 macOS 和 Linux 上的 /ultrareview 上传,使其在 git 2.31 或更新版本时以工作树快照的形式发送 partial clone,而不是在 git 版本显得过旧时回退或拒绝变更了 macOS 和 Linux 上的 /ultrareview 上传,使其在较旧的 git 版本上拒绝而不是去 fetch 缺少部分工作树文件的 partial clone;未使用 --filter 创建的 clone 则可上传变更了 Bedrock、Vertex 和 Mantle 的启动模型检查,使其像其他 Claude Code 请求一样将自身标识为 Claude Code变更了 claude mcp get,使其隐藏由插件提供的 stdio MCP 服务器的命令、参数和环境变量值;变量名仍会显示变更了 /claude-api,使其无法再从 Remote Control 客户端运行变更了 /config chrome=true,使其引导你前往 /config 面板,而不是默认启用 Claude in Chrome;/config chrome=false 在其开启时仍会将其关闭变更了沙箱设置,使项目设置无法放宽或关闭管理员要求的沙箱、替换托管拒绝列表背后的代理、扩展严格的允许列表,或重新打开受管理的读取拒绝[VSCode] 新增了如下提示:当窗口重新加载中断了已恢复标签页的最后一条消息且不会再有回复时,在该消息下方显示一条说明[VSCode] 为 Manage plugins 新增了插件选项表单:安装带选项的插件时会询问未设置的选项,之后可通过其所在行上的齿轮图标进行更改[VSCode] 新增了按需诊断工具,使面板中的 Claude 可以随时读取 Problems 面板当前的错误和警告,而不只是在其编辑文件之后[VSCode] 修复了输入斜杠命令后按 Enter 会运行由模糊匹配选中的无关菜单项、或毫无反应的问题[VSCode] 修复了长会话中已打开的 agent 转录丢失 agent 较新消息的问题[VSCode] 修复了引用 Claude Code 或 IDE 标签的消息在聊天中丢失其余文本的问题[VSCode] 修复了在 Claude 工作期间发送的消息在会话重新打开后从对话中消失的问题[VSCode] 修复了切换账户后会话列表的 Web 标签页显示上一个账户的会话的问题[VSCode] 修复了当 VS Code 在设置了 CLAUDE_CODE_RESUME_INTERRUPTED_TURN 的情况下启动时,恢复的标签页会重新运行被中断的一轮的问题,即使 Continue After Reload 已关闭[VSCode] 修复了点击命令菜单某一行后按 Escape 会停止正在运行的一轮而不是关闭命令菜单的问题[VSCode] 修复了打开 Past conversations 会用已保存的副本替换进行中对话的问题[VSCode] 修复了扩展重启后重新加载的 Claude 标签页保持空白而不说明如何恢复的问题
[VSCode] 修复了打开一个已在另一窗口或应用中打开的对话时,会在没有任何提示的情况下启动该对话的第二个副本的问题;现在会先询问[VSCode] 修复了 hook 阻止或中断某个 prompt 的原因在窗口重新加载后消失的问题[VSCode] 修复了标签页卡在无法恢复的对话上的问题:错误信息现在会说明这一点,并提供开始新对话的选项[VSCode] 修复了当编辑器在工具运行前不再响应扩展的自动保存时,每个文件的 Read、Write 和 Edit 操作都会停滞十分钟然后被跳过的问题[VSCode] 修复了 agent map 用会话的模型而非 sub-agent 实际运行的模型来标注它的问题(例如在 CLAUDE_CODE_SUBAGENT_MODEL_FORCE 下或使用某个 agent 自身的模型时)[VSCode] 修复了从 Manage plugins 对话框卸载插件时会删除错误的安装,或对为项目安装的插件卸载失败的问题[VSCode] 修复了返回并再次选择同一登录方式后,登录停留在授权码(authorization-code)步骤的问题[VSCode] 修复了长会话裁剪其最旧条目时聊天面板停滞的问题[VSCode] 修复了多个 agent 运行时对话从会话中消失的问题[VSCode] 修复了会话通过 /rename、由 SessionStart hook 或在 claude.ai 上被重命名后,编辑器标签页仍保留旧名称的问题[VSCode] 修复了 agent map 的 transcript 视图遗漏发送给正在运行的 agent 的消息的问题[VSCode] 改进了 Manage plugins 对话框:插件操作失败时现在会打开一个弹出窗口进行解释,并在存在修复方法时提供该修复[VSCode] 更改了 Manage plugins 对话框:在移除某个 marketplace 或关闭由项目共享的 .claude/settings.json 开启的插件之前,会先询问[Cloud sessions] 修复了在例行任务(routine)上执行 Run now 时,若运行在启动前被拒绝会显示内部错误文本的问题;现在会显示与该例行任务的失败通知相同的解释[Cloud sessions] 更改了 MCP_DISCOVERY_CACHE=1:当它设置在云环境的环境变量而非设置文件中时,会在会话重启后复用 connectors 的工具列表;其他 MCP 服务器不再被缓存,并在启动时连接[Claude Tag] 为 Enterprise 计划中拥有 Standard 或 Usage-Based Chat 席位且同时拥有 Cowork 的成员增加了与 Claude 的直接消息功能;不再要求拥有包含 Claude Code 的席位[Claude Tag] 修复了管理设置和频道 Configure 页面中的 Default model 设置会提供组织无法使用的模型的问题,该问题曾导致保存或新建会话失败[Claude Tag] 修复了 Claude 的 Slack 消息下方说明它在 fallback 模型上作答及其原因的注释在 Claude 稍后编辑该消息时消失的问题[Code Review] 修复了 Code Review 的 "Add a repository" 对话框中的组织菜单只显示少数 GitHub 组织的问题;现在会随着滚动加载更多[Code Review] 改进了 Code Review 的 check run,使其在仓库的 REVIEW.md 未被应用时予以说明,例如在超大的 pull request 上或 REVIEW.md 是符号链接时
展开原文提取正文(采集端自动提取,可能有缺失)
Immutable release. Only release title and notes can be modified.
ec44ca9
What's changed
Added CLAUDE_CODE_DISABLE_WEB_FETCH environment variable to turn off the WebFetch tool Added claude --desktop to open the Claude desktop app on the current directory, or on a session with --continue / --resume <id> Added claude plugin configure <plugin> to show a plugin's options and which are unset, or save new values read from stdin with --values-stdin Added <server>.<key>=<value> to claude plugin install --config, so a bundled .mcpb MCP server's own settings can be set at install time and it starts without visiting /plugin → Configure Added allowedProviders managed setting to limit which API providers a machine may use (Anthropic API, a custom endpoint, Bedrock, Mantle, Vertex AI, Foundry, Claude Platform on AWS, or a Cloud gateway) Added CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES environment variable to cap re-sends of a non-streaming fallback request that timed out Fixed claude -p with CLAUDE_CODE_FORK_SUBAGENT=1: a subagent's own Agent call now runs in the foreground, so the subagent gets the child's result Fixed plugin and marketplace installs and updates over SSH ignoring the ssh program set in GIT_SSH or in your git config's core.sshCommand Fixed Claude Code refusing to start when the OS denies reading the managed settings file; it now warns and starts without that file's policies. Other read errors and unparseable files stop every session Fixed cloud sessions that restarted after their conversation was compacted refusing the next update to an artifact the session had already read or published Fixed claude plugin disable and enable with a full name@marketplace id changing a settings entry in another letter case instead of the installed plugin's own Fixed files attached to a message sent over Remote Control being left out after a single failed download; a network error, timeout or server error is now retried up to twice Fixed switching models mid-session with a set_model request (such as the Agent SDK's setModel) leaving the new model on the built-in output-token limit and auto-compact window until restart Fixed redacted logs and transcripts showing part of a URL password that contains @, or all of it when the URL writes its @ as %40 Fixed SSH passphrase and new-host prompts from worktree and /teleport fetches taking over the terminal; these fetches now fail fast instead of asking Fixed switching off an MCP server added mid-session in SDK and -p sessions leaving its tools available Fixed claude -p --permission-prompt-tool: a background subagent's permission request now goes to the prompt tool instead of being auto-denied Fixed claude mcp list and claude mcp get, and the not-found error of claude mcp remove, login and logout, printing line breaks and terminal escape sequences from MCP server names and values Fixed sandbox auto-allow asking for approval on every run of many inline scripts (python3 -c, node -e) just because they contain = Fixed fork subagents not keeping the session's plan mode or dontAsk mode: a fork now runs under its parent's permission mode and cannot exit plan mode Fixed claude remote-control --help saying --[no-]chrome defaults to the machine's /chrome setting; spawned sessions keep Claude in Chrome off unless --chrome is passed Fixed background subagents in auto mode prompting a second, redundant reply after each report Fixed cloud session creation and /remote-env reading only the newest 20 of an account's environments Fixed Remote Control marking a message as read as soon as it arrived instead of when Claude started on it, and losing a message still queued when the terminal quit (it now arrives on the next resume) Fixed installing a plugin with claude plugin install or /plugin putting it into an installed plugin's cache or data folder when their ids differ only in ., -, @ or (macOS, Windows) capitals; the install is now refused Fixed hooks and SDK permission callbacks seeing a missing or outdated plan on ExitPlanMode when the plan was written in the same response Fixed the first reply in cloud sessions arriving tens of milliseconds late, a regression in 2.1.283 Fixed sessions that authenticate with ANTHROPIC_AUTH_TOKEN against the Anthropic API never loading the organization's policy Fixed a failed agent(), parallel() or pipeline() call that a workflow script awaits later, or not at all, being treated as an unhandled promise rejection, which could end a background session Fixed synchronous hooks hanging Claude Code while a background process the hook started (for example some-daemon &) kept its output open; the hook now finishes shortly after its own process exits Fixed WebFetch reporting a rate-limited domain safety check as a network or enterprise policy block Fixed the fullscreen ctrl+o transcript freezing briefly when opened on turns with hundreds of file reads or searches; tool calls still running when the transcript opens now show their results when they finish Fixed Amazon Bedrock mid-stream modelTimeoutException and serviceUnavailableException errors showing a raw JSON body instead of the error message Fixed /autofix-pr and /schedule saying the Claude GitHub App is not installed on a repository whose install status had not been checked yet Fixed dismissing a row (x) in /artifacts unlinking its file from the artifact, so publishing the same file again created a new artifact instead of updating it Fixed Artifact tool publishes after a conversation rewind (Esc Esc) overwriting a file's newer content that Claude had read only in the rewound turns; the publish is now refused until Claude re-reads the file Fixed an Artifact allow rule ("don't ask again") letting the Artifact tool publish a file outside the working directories without asking; add the file's folder with --add-dir for the rule to cover it Fixed /cost and SDK modelUsage reporting a turn under the wrong model when the server answered a refusal with a different fallback model than the client expected Fixed the Artifact tool so that publishing a page no longer lets Claude overwrite its source file without re-reading it when Claude's earlier read was cut short or the file had changed since Fixed auto mode skipping its classifier for Artifact tool asset uploads and reads of someone else's artifact when you had approved that artifact earlier in another permission mode Fixed a misleading "core.worktree is set" error from /ultrareview when the project folder briefly could not be read Fixed /ultrareview on macOS and Linux failing to upload the working tree from a git worktree whose per-worktree config sets core.longpaths Fixed the Artifact tool sometimes reporting a publish as a conflict with another session after retrying a temporary server error, when the first attempt had actually succeeded Fixed /ultrareview uploads including uncommitted changes to credential files whose name has a colon before the extension, such as server:8443.key Fixed a rare auth failure when two sessions recover a login refresh lock left by a crashed process at the same time Fixed the PowerShell tool's permission check skipping deny and ask rules, and caching that failure for later checks, when its command parser failed to start (for example when the machine was out of memory) Fixed /ultrareview uploads on macOS and Linux running slowly on some unusual file names, and their credential-file check missing file or folder names with many backup or editor marks Fixed a cancelled shell command or hook still starting, and running to its end, when the cancel arrived while it was being set up Fixed vim mode: after editing in the external editor (Ctrl+G), x or r in NORMAL mode no longer breaks a pasted-text placeholder at the end of the prompt Fixed responses blocked by the API's output content filter being re-sent and retried, sometimes for minutes, instead of showing the filter's error right away Fixed plugins silently skipping a bundled .mcpb MCP server that still needs configuration: /plugin, the install message and claude plugin install now say so and point to Configure Fixed compacting or resuming a session failing, opening without its history, or crashing when its saved transcript holds a compaction marker or loop wakeup entry with missing or malformed fields WSL: Fixed /ultrareview refusing to upload a checkout on a Linux volume when a changed file's name has a colon or ends in a dot or space Fixed CLAUDE_CODE_RESUME_INTERRUPTED_TURN re-running a turn that had ended at --max-turns Fixed sign-in that could wait forever after the browser showed success Windows: Fixed /ultrareview uploading a linked worktree of a repository rooted at your home folder in some cases Fixed cloud sessions reporting the uploads folder as missing before any file had been uploaded Fixed a reply sent from claude agents to a background session waiting on a permission prompt sometimes approving the pending command Fixed claude attach, logs, stop, respawn and rm starting a new session with the command name as its prompt when options came before it, such as from a shell alias Fixed claude mcp list leaving out WebSocket (ws) MCP servers; each is now listed with its URL and health status Fixed claude mcp get showing no Type, Command, Args, or Environment for stdio servers whose config entry omits the type field Fixed .claude/settings.local.json allow rules being held back outside a git repository when git's trace2 output is configured Fixed the /claude-api eval runner scaffold and report builder writing through a symlink or hard link planted at an output file Fixed the /claude-api eval runner scaffold counting responses cut off at max_tokens in the score averages; they are now marked truncated and counted separately Fixed showing as literal text in the terminal when a reply uses it to indent text, such as row labels in a markdown table Fixed a brief freeze (up to a second) partway through long sessions outside fullscreen mode, which came back after /clear or /compact Fixed an approved Edit never going through when its target is a device, such as a file symlinked to /dev/null, and the approval came from the IDE diff view or changed the edit Fixed a failing API request being retried up to 21 times when streaming kept failing; the non-streaming fallback now shares the request's retry budget instead of getting a fresh set of retries Improved Claude in Chrome: the native host now reports your computer's name, so connected browsers can be labeled by computer instead of "Browser 1" / "Browser 2" Improved Bedrock and Vertex AI sessions to switch to an older available model of the same tier, instead of failing, when an admin removes access to the default model; session titles and summaries now fall back with it Improved plugin marketplace errors to name why a git address is refused instead of citing enterprise policy Improved validation of git URLs for plugins, marketplaces and the current repository's remote Improved Artifact tool results: they now suggest publishing in the same step as writing or editing the page, which can save a round trip Improved Remote Control: a /btw side question asked of a session hosted by an app such as Claude Desktop now sees the turn in progress, not only the last finished one Improved pictures Claude sends as BMP, HEIC, HEIF, AVIF or TIFF files: the Claude apps now show a preview where Claude Code can convert them Improved subagents in auto mode: a subagent's run now ends as soon as it hands its report back to its caller, instead of taking extra turns that reach no one Improved Bedrock and Vertex start-up model checks: models your account cannot use are now remembered for up to a day instead of being re-checked on every launch Improved Artifact tool publish results to use fewer tokens: the note on updating an artifact is shorter, and where to find your artifacts is no longer repeated after every publish Improved SDK liveness during a non-streaming fallback request: with partial messages on, a ping stream event is now sent every 30 seconds on the Anthropic API, Claude Platform on AWS and gateways Improved /resume and claude --resume on a session that is running in the background: they now open that session instead of refusing, and a prompt given with claude --resume <id> "prompt" is sent to it as its next turn Improved per-turn performance when many permission deny rules and MCP tools are configured Improved responsiveness when leaving the ctrl+o transcript view in long sessions when fullscreen rendering is off Improved Bedrock, Vertex and Mantle start-up model checks to send the same User-Agent, x-app and session ID headers as regular requests Changed MCP tools so a tool that sets its own _meta['anthropic/alwaysLoad'] to false stays deferred when its --mcp-config, Agent SDK or plugin server is set to alwaysLoad Changed background Bash and PowerShell commands to stop after a time limit (their timeout with run_in_background, default 30 min, max 2 h); Claude is notified when one is stopped Changed Code Review's pull request reviews and /ultrareview to run when disableWorkflows is on, unless the machine running the review has it set by its own administrator (MDM or the managed-settings file) Changed sessions behind a custom ANTHROPIC_BASE_URL to use the 1M context window of models that have one (Opus 4.7+, Sonnet 5+, Fable); run /autocompact 200k if your gateway stops at 200K Changed Team and Enterprise sessions, and sessions whose sign-in plan Claude Code can't determine, to withhold WebFetch until the organization policy loads if it couldn't be loaded at startup Changed /memory so that Auto-memory can no longer be turned on from a background session or from a session one of Claude Code's own tools started; turning it off there still works Changed the one-time offer to make auto mode your default permission mode to also show on third-party providers and with telemetry off, when your user settings default to another mode Changed claude -p and Python Agent SDK sessions on third-party providers or with telemetry off to start in auto mode when no permission mode is configured, like interactive sessions; --permission-mode still overrides it Changed Bedrock, Mantle and Claude Platform on AWS requests to a base URL with a non-default port to include the port in the SigV4-signed Host header Changed the MCP server name widgets to be reserved in cloud sessions and on self-hosted runners: your own server under it, or a close spelling such as widgets_, no longer loads, so rename it Changed /ultrareview on macOS and Linux to leave symbolic refs out when uploading a local checkout; a checkout whose current branch is a symbolic ref is now refused with an explanation Windows: Changed project and local settings env to no longer set ALLUSERSPROFILE, SystemDrive, or the CommonProgramFiles variables; set them in user or managed settings instead Changed /tasks to fold background work Claude Code runs for itself under one "System tasks" row; press Enter on it to show those tasks Changed /ultrareview on macOS and Linux to require git 2.31 or newer to upload a local repository; checkouts made with --separate-git-dir are now refused instead of being uploaded with an older method Changed /ultrareview uploads on macOS and Linux to send a partial clone as a working-tree snapshot on git 2.31 or newer, instead of falling back or refusing when git's version looked too old Changed /ultrareview uploads on macOS and Linux to refuse, instead of fetching, a partial clone missing some of its working tree's files on older git versions; a clone made without --filter uploads Changed Bedrock, Vertex and Mantle start-up model checks to identify themselves as Claude Code, like other Claude Code requests Changed claude mcp get to hide the command, arguments, and environment values of stdio MCP servers provided by plugins; variable names are still shown Changed /claude-api so it can no longer be run from Remote Control clients Changed /config chrome=true to direct you to the /config panel instead of enabling Claude in Chrome by default; /config chrome=false still turns it off when it was on Changed sandbox settings so project settings cannot widen or turn off an admin-required sandbox, replace the proxy behind a managed deny list, extend a strict allowlist, or reopen managed read-denies [VSCode] Added a note under a restored tab's last message when a window reload interrupted it and no reply will follow [VSCode] Added a plugin options form to Manage plugins: installing a plugin that has options asks for the unset ones, and a gear on its row changes them later [VSCode] Added an on-demand diagnostics tool so Claude in the panel can read the Problems panel's current errors and warnings at any time, not only right after it edits a file [VSCode] Fixed pressing Enter after typing a slash command running an unrelated menu item picked by fuzzy match, or doing nothing [VSCode] Fixed an open agent transcript losing the agent's newer messages during a long session [VSCode] Fixed a message that quotes a Claude Code or IDE tag losing the rest of its text in the chat [VSCode] Fixed a message sent while Claude was working disappearing from the conversation after the session was reopened [VSCode] Fixed the session list's Web tab showing the previous account's sessions after an account switch [VSCode] Fixed restored tabs re-running an interrupted turn when VS Code was started with CLAUDE_CODE_RESUME_INTERRUPTED_TURN set, even with Continue After Reload off [VSCode] Fixed Escape stopping the running turn instead of closing the command menu after clicking one of its rows [VSCode] Fixed opening Past conversations replacing a live conversation with its saved copy [VSCode] Fixed a Claude tab reloaded after an extension restart staying blank instead of saying how to recover [VSCode] Fixed opening a conversation that is already open in another window or app starting a second copy of it without warning; it now asks first [VSCode] Fixed a hook's reason for blocking or stopping a prompt disappearing after a window reload [VSCode] Fixed tabs stuck on a conversation that can't be resumed: the error now says so and offers to start a new conversation [VSCode] Fixed every file Read, Write and Edit stalling for ten minutes and then being skipped when the editor stops responding to the extension's automatic save before the tool runs [VSCode] Fixed the agent map labeling a sub-agent with the session's model instead of the model it actually ran on (e.g. under CLAUDE_CODE_SUBAGENT_MODEL_FORCE or an agent's own model) [VSCode] Fixed uninstalling a plugin from the Manage plugins dialog, which removed the wrong installation or failed for a plugin installed for the project [VSCode] Fixed sign-in staying on the authorization-code step after going back and choosing the same sign-in method again [VSCode] Fixed the chat panel stalling when a long session trims its oldest rows [VSCode] Fixed the conversation disappearing from a session when many agents run [VSCode] Fixed the editor tab keeping an old name after a session was renamed with /rename, by a SessionStart hook, or on claude.ai [VSCode] Fixed the agent map's transcript view leaving out messages sent to a running agent [VSCode] Improved the Manage plugins dialog: a failed plugin action now opens a popup that explains it and, where there is one, offers the fix [VSCode] Changed the Manage plugins dialog to ask before removing a marketplace or turning off a plugin that your project's shared .claude/settings.json turns on [Cloud sessions] Fixed Run now on a routine showing internal error text when the run is refused before it starts; it now shows the same explanation as the routine's failure notification [Cloud sessions] Changed MCP_DISCOVERY_CACHE=1, when set in your cloud environment's variables rather than a settings file, to reuse your connectors' tool lists after a session restart; other MCP servers are no longer cached and connect at startup [Claude Tag] Added direct messages with Claude for members on an Enterprise plan Standard or Usage-Based Chat seat who also have Cowork; a seat that includes Claude Code is no longer required [Claude Tag] Fixed the Default model setting in admin settings and a channel's Configure page offering models your organization can't use, which made saves or new sessions fail [Claude Tag] Fixed the note under Claude's Slack messages saying it answered on a fallback model, and why, disappearing when Claude later edited that message [Code Review] Fixed the organization menu in Code Review's "Add a repository" dialog showing only a few of your GitHub organizations; it now loads more as you scroll [Code Review] Improved the Code Review check run to say when your repository's REVIEW.md wasn't applied, for example on a very large pull request or when REVIEW.md is a symbolic link
原文入口
阅读原文(github.com)原文将在新窗口打开。收录时间不是内容更新时间;正文、译文与解读的版权归原作者/来源所有,本站仅作个人阅读辅助并保留原文入口;页面时间均为北京时间。
了解来源批准与收录规则