黄奕彬

外部精选

Claude Code · v2.1.318

本文来自外部来源,不是黄奕彬的原创文章。本站提供原文入口,并在采集端生成 AI 结构化摘要、解读与中文翻译(如有),一切以原文为准。

阅读原文(github.com)
来源
Claude Code releases ↗
作者 / 署名
ashwin-ant
来源更新时间
本站收录时间
原文域名
github.com

以上时间均为北京时间;来源更新时间由来源提供,不代表首次发布时间。

结构化摘要 AI 生成

背景与问题

本文是 Claude Code v2.1.318 的官方发布说明(GitHub Releases,提交号 646b741,不可变发布),面向使用命令行 claude、无头 claude -p、Agent SDK、VSCode 扩展、云端会话、Remote Control、自托管 runner 及 Claude apps gateway 的开发者与运维人员。

它回答的问题是:相对上一版本,本版新增、修复、改进、改变了哪些行为,升级前需注意什么。共享网络主目录、同一主机多次登录、macOS 多 Bash 命令等复杂环境下的配置与登录可靠性问题,是本版多处修复的背景。

方法或内容

正文为按类别组织的变更清单:

  • Added(新增):mod 启用应答记录、网关 assume_role、mod 的 $.model.fork effort 选项、登录到期字段等
  • Fixed(修复):--continue 回归、macOS 内存增长、权限提示误触、网络主目录配置丢失、spawn ENOENT 等大量缺陷
  • Improved(改进):配置文件存活能力、MCP 错误信息、自动更新重试、远程会话重连速度等
  • Changed(变更)与 Removed(移除)
  • 另设 Gateway、Self-hosted runner、Remote Control、VSCode、Cloud sessions、Claude Tag、Code Review 分节

关键发现 / 结果

关键变更点(择要):

  • 登录到期可见化:claude auth status 新增 loginExpiresAt,claude -p JSON 新增 credential_expires_at,到期前 10 天起向 stderr 输出一行警告
  • 修复 --continue 在畸形工具调用的重试耗尽后丢失先前对话(2.1.314 引入的回归)
  • 修复 macOS 下大量运行中 Bash 命令时会话停滞、内存增长
  • 修复共享网络主目录上一组配置写入问题:/logout、claude mcp add/remove 假成功、存储登录被空文件覆盖等
  • 修复更新或版本清理删除仍在运行进程的二进制后 spawn ENOENT 导致无法新建会话
  • 行为变更:IDE 终端内启动不再安装/更新 IDE 扩展;后台 shell 命令统一 3 分钟后移入后台;移除 2.1.288 保留先前 thinking 的修复

原文未说明任何量化性能数据。

结论与意义

原文未给出整体结论或升级建议,仅为逐条变更说明,适用边界由条目自身限定:全部变更针对 v2.1.318。其中一条修复明确针对 2.1.314 引入的回归,一条移除针对 2.1.288 的修复(影响 2.1.286 及更早版本开始的会话恢复)。

该发布为不可变发布(Immutable release),仅标题与说明可修改;发布时 main 分支相对此发布已有 1 个提交,后续版本可能继续变更。

AI 解读 AI 生成

方法:按「时空变量」分析(时间 / 空间 / 变量,严格区分包含、相关与因果),对象包括原文作者、署名人员与关键技术及其实际原理;结论用「元反空」(元思考、反思考、空思考、综合)整理。

时间:何时发生,现在是否仍成立

来源日期 2026年11月4日 08:01(北京时间),即北京时间 2026-11-04 08:01:03。所有条目描述该时点 v2.1.318 的状态;正文提到此后 main 分支已有 1 个提交,说明后续版本可能覆盖部分行为,现在是否仍成立原文未说明。

文中含时间性的机制包括:登录到期前 10 天开始警告;3 秒内自行死亡的 stdio MCP 服务器被固定在旧握手 7 天;后台 shell 命令 3 分钟后移入后台;冷缓存下子代理进度最多等待 5 分钟。

空间:谁的环境 / 场景

适用于 Claude Code v2.1.318 的多种使用形态:

  • 命令行 claude、无头 claude -p、Agent SDK 会话
  • VSCode 扩展与 IDE 终端
  • 云端会话(Anthropic 托管环境)、Remote Control、自托管 runner
  • Claude apps gateway(mantle 上游)及 Bedrock、Vertex、Foundry 等提供商
  • macOS、共享网络主目录、配置 NODE_EXTRA_CA_CERTS 自定义 CA 等特定环境

另有条目仅针对单一形态:iPhone 应用、Claude Tag 管理设置、Code Review 分析页。

变量:实际改变了什么

相对此前的实际变化(择要):

  • 新增字段与警告:loginExpiresAt、credential_expires_at、到期前 10 天 stderr 警告
  • 新增能力:mod 启用应答被记录;$.model.fork 支持 effort 选项并在结果中报告;网关上游支持 assume_role(跨 AWS 账号角色、按开发者成本归集)
  • 回归处置:修复 2.1.314 引入的 --continue 丢失;移除 2.1.288 的 thinking 保留修复
  • 行为切换:IDE 终端不再自动装/更新 IDE 扩展;「Ask each time」下子代理停止而非切换模型;/permissions 对话框内双击 Ctrl+C 返回或取消而非退出
  • 写入策略:claude mcp add 等现在等待锁或以退出码 1 退出;非交互启动遇到无效 ~/.claude.json 不再用默认值覆盖而是失败并说明恢复方法

区分:包含 ≠ 相关 ≠ 因果

有明确因果表述的条目:--continue 丢失归因于畸形工具调用重试耗尽,并标注为 2.1.314 回归;spawn ENOENT 归因于更新或版本清理删除了运行中进程的二进制;任务退出 Not logged in 归因于同账号同组织在另一终端或主机再次登录;存储登录被空文件覆盖归因于网络主目录空间不足。

仅为伴随或相关描述的:macOS 条目只说停滞发生时内存增长(stalling while memory grew),未说明二者因果;多条 Improved 使用「less often」「more reliable」等程度化措辞,未提供因果证据或量化数据。其余条目间的关联原文未说明。

对象:作者/署名与关键技术原理

署名作者(仅依据结构化作者字段):ashwin-ant。关键技术及原文对其的描述方式:

  • mods:Claude Code 会在会话中询问是否开启它所写的 mods,现会记录该应答;mod 具有 turn.step、prompt.submit 钩子;$.model.fork 可带 effort 选项,快速侧任务可用低于会话的 effort 运行
  • 登录凭据:存储于本地(如 ~/.claude.json),claude.ai 登录有到期时间;claude setup-token 可签发 token,配置 forceLoginOrgUUID 的机器会校验组织归属
  • MCP:stdio 服务器在版本探测时退出曾被反复探测;deniedMcpServers 按 URL 或名称拒绝服务器
  • 网关:mantle 上游可配 assume_role,用于另一 AWS 账号的角色与按开发者成本归集;listen.trusted_proxies 仅应列出真正添加 X-Forwarded-For 的代理

原文未说明这些机制更底层的技术原理。

元反空综合结论

元:本条内容本质在回答「从上一版到 v2.1.318,Claude Code 各产品面(CLI、SDK、VSCode、云会话、runner、网关)具体改了什么」,服务于升级决策与问题排查。

反:最可能有边界的主张——针对共享网络主目录的「less often deleted」类改进是程度性承诺,不保证不再发生;移除 2.1.288 修复意味着恢复旧会话时先前 thinking 可能被丢弃,对依赖该行为的用户是退步;3 分钟后台化、5 分钟等待、7 天握手固定等时间阈值在不同负载与提供商下表现可能不同;多数修复依赖特定环境(macOS、网络文件系统、自定义 CA、多登录)才可感知。

空:去掉叙事后剩下的必要事实是——一个提交号为 646b741 的不可变发布,逐条列出对命令、字段、钩子、配置文件的明确增删改,多处直接点名回归来源版本。

综合:这是一次以稳定性与状态可靠性为主的维护版本,核心价值在登录到期可见化、配置文件抗损坏、无头/SDK 语义正确性;同时包含少量需用户主动适应的行为变更(IDE 扩展安装策略、子代理模型切换、thinking 保留移除),升级前应对照 Changed 与 Removed 条目评估影响。

中文译文 AI 生成

· 1 个提交到 main自本次发布以来

不可变发布。只有发布标题和说明可以被修改。

646b741

变更内容

  • 新增:当 Claude Code 询问是否开启它在某个会话中编写的 mods 时,会记录你的回答
  • 新增:在 Claude apps gateway 的 mantle 上游添加 assume_role,用于另一个 AWS 账户中的角色,以及按开发者归因 AWS 成本
  • 新增:为 mod 的 $.model.fork 添加 effort 选项,使快速的临时任务无论会话使用何种 effort 都能以低 effort 运行;结果会报告所发送的 effort
  • 新增:将存储的 claude.ai 登录的结束日期添加到 claude auth status(loginExpiresAt)以及 claude -p 的 JSON 结果(credential_expires_at)中
  • 新增:自存储的 claude.ai 登录结束前 10 天起,向 claude -p 的文本输出添加一行 stderr 警告
  • 修复:--continue 在格式错误的工具调用的重试次数耗尽后,有时会丢失之前的对话(2.1.314 中的回归)
  • 修复:macOS 上运行着大量 Bash 命令的会话在内存不断增长时停滞
  • 修复:权限提示会被发送消息后立即输入的按键、或在缓慢的提示出现之前输入的按键回答
  • 修复:当配置文件在共享网络 home 目录上无法更新时,/logout、claude auth logout 和 claude mcp remove 报告成功,而 trust、consent 或 MCP 设置的更改被丢弃且没有任何提示
  • 修复:当另一个终端或主机在同一 home 上重新登录到同一账户和组织时,任务以 Not logged in 退出
  • 修复:claude mcp add 和 claude mcp remove 在未持有配置锁的情况下写入配置:它们现在会等待该锁或以退出码 1 退出,不过另一个任务的保存仍可能替换已保存的服务器
  • 修复:claude plugin 命令在缓慢的 token 刷新被保存之前就退出,这可能导致下次运行时被登出
  • 修复:claude plugin validate 通过了自定义命名的 marketplace 文件,而 claude plugin marketplace add 会拒绝该文件
  • 修复:在版本探测时退出的 stdio MCP 服务器在每次启动时都被重新探测;因自身原因在 3 秒内终止的服务器也会被固定使用旧版握手 7 天
  • 修复:会话在启动时被同一机器上另一个登录所存储的 allowedProviders 列表拒绝
  • 修复:空闲压缩将对话替换为一条并非摘要的回复
  • 修复:后台 subagent 运行期间,Now using usage credits 通知大约每 30 秒重新出现一次
  • 修复:失败的自定义斜杠命令、或只有 Claude 才能调用的自定义斜杠命令,在 claude -p 和 SDK 会话中不打印任何内容
  • 修复:当 mod 挂钩了 turn.step 时,claude -p 和 Agent SDK 会话在 API 错误截断回复的情况下仍报告成功
  • 修复:headless 会话中,模型切换后立即发送的消息在 Stop 之后仍在运行:现在 Stop 会像对待排队消息一样取消或停止它
  • 修复:空闲的非交互式会话退出时,已删除的会话记录被其最后一条提示词重新创建
  • 修复:更新或版本清理移除了仍在运行的进程的二进制文件后,claude 的 remote-control 主机、后台守护进程和自托管 runner 无法启动新会话(spawn ENOENT)
  • 修复:版本清理将另一个用户拥有的正在运行的 Claude Code 进程(例如由 sudo claude 留下的进程)视为已死,从而可能删除其二进制文件
  • 修复:/remote-control 在连接失败后仍将会话显示为可用
  • 修复:/design revoke 在请求以 404 失败时仍报告成功
  • 修复:在自托管 runner 或云会话重启后批准的 shell 命令会在会话的启动文件夹中运行,而不是在其被请求的文件夹中运行;如果无法进入该文件夹,则不运行该命令
  • 修复:云会话重启后,已批准的 connector 工具不可用时 Claude 未被告知
  • 修复:当服务拒绝上传达数分钟时,云会话在一个回合中途被停止
  • 修复:Setup 钩子写入 CLAUDE_ENV_FILE 的变量在某些云会话中未传递到 Bash 工具
  • 修复:在回复于工具调用处被截断、或被拒绝的图片或文档被移除之后,iPhone 应用在云会话的回合仍在继续运行时将其显示为已完成
  • 修复:重启后的会话重新发送先前因 API 错误而失败的消息,并使其排在后面等待的较新消息之前
  • 修复:当重启恰好发生在 Claude 读取大图片或重试工具调用之后时,重启后的会话丢弃其中断的回合
  • 修复:当 NODE_EXTRA_CA_CERTS 文件为空、不是 PEM 格式或以损坏的证书开头时,所有连接都失败:现在会使用可读的证书,并在 stderr 上发出警告
  • 修复:工作流在用量限制过后恢复时重新运行已完成的 agent
  • 修复:云会话中的 /mcp 统计了模型无法使用的工具;服务器的行现在显示其工具中有多少可用
  • 修复:当 Claude 在 PushNotification 调用中省略 status 字段时出现重复通知
  • 修复:当请求中包含超过 20 张图片时,针对过大图片的错误总是说限制是 2000px;现在会显示 API 的限制
  • 修复:对话框打开期间,后台 shell 详情中的运行时间不更新
  • 修复:headless 运行中,mod 的 turn.step 钩子使被停止的回复以成功结束
  • 修复:保留期清理导致仅运行 claude -p 的 home 没有任何 ~/.claude.json 备份:现在会在删除最后一个完好的备份之前先创建一份新备份
  • 修复:当网络 home 目录没有剩余空间存放数据但仍接受新文件时,存储的登录被空文件替换
  • 修复:在设置了 forceLoginOrgUUID 的机器上,当令牌属于被允许的组织时,来自 setup-token 的令牌在启动时被拒绝
  • 修复:非交互式启动会用默认值替换不是有效 JSON 的 ~/.claude.json;现在启动会失败,说明如何恢复该文件,并保持该文件原样(#87551)
  • 修复:没有备份的空 ~/.claude.json 被报告为已损坏;现在 Claude Code 会像文件缺失时那样启动
  • 修复了在 ~/.claude.json 损坏或缺失时打印出的 restore 命令会指向空的或被截断的备份、或在只读文件上失败的问题
  • 修复了已存储的 claude.ai 登录到达时限时的登录失败:现在会明确说明这一情况,并在 claude -p 中指出 claude auth login 和 claude setup-token
  • 改进了 ~/.claude.json、设置文件和已存储登录在共享网络主目录中保存时的存留情况:它们更少被删除、短暂清空,或被近乎为空的或较旧的副本替换
  • 改进了网络文件系统上的会话:当配置文件被错误地报告为缺失时会再次查找,从而更少出现不带 MCP 服务器和受信任文件夹启动的情况
  • 改进了 MCP 工具错误:在工具加载之前发出的调用现在会返回其输入 schema
  • 提升了 Bash 工具运行 macOS 内置 /bin/bash 时 git 提交和创建 pull request 的可靠性
  • 改进了用量限制菜单中的 “Ask your admin for more usage”,现在可一步发送请求
  • 提升了远程会话在暂停或休眠后重新连接的速度
  • 改进了 “You should know” 提示(toast),改说 “try again” 而不是 “press 2”,后者只在终端中有效
  • 提升了自动更新的可靠性:在验证某个发布版本时出现短暂网络故障,现在会立即重试,而不是等待下次检查
  • 改进了无人值守运行(claude -p、SDK 应用):当 ~/.claude.json 内容没有变化时,不再在每次运行时重写它
  • 变更了 Claude Code:在 IDE 终端中启动时不再安装或更新 IDE 扩展;请从外部终端使用 /ide,或使用编辑器的扩展视图
  • 变更了子代理(subagent)的行为:当 “Switch models when a message is flagged” 设为 “Ask each time” 时,子代理会停止而不是切换模型
  • 变更了后台子代理:在所有提供商上,会在 3 分钟后将 shell 命令移到后台,以免 prompt cache 在其运行期间过期
  • 变更了在 Bedrock、Vertex、Foundry 上或关闭遥测时的子代理进度摘要:在 prompt cache 冷缓存时,现在最多可等待 5 分钟以获取子代理的待处理响应
  • 变更了 mod 在 prompt.submit 附加的内容:保留在用户轮次中,而不是作为系统消息发出
  • 变更了 deniedMcpServers 的 URL 条目:现在也会拦截上游 URL 匹配的 Anthropic 提供的服务器,以及云端会话和自托管 runner 上的连接器(此时会话会获得连接器自身的 URL);否则按名称拒绝连接器
  • 变更了 /permissions 的规则详情、内置规则和删除确认视图,改用标准对话框;在那里按两次 Ctrl+C 现在会返回或取消,而不是退出
  • 变更了 /claude-api managed-agents-onboard:默认为新代理的内置工具以及快速入门模板的 MCP 工具应用自动权限策略(“Judge risky actions”),与 Claude Console 保持一致;说 “run without asking” 即可选择退出
  • 移除了 2.1.288 中的修复(该修复会在恢复 2.1.286 或更早版本开始的会话时保留模型先前的思考);这些思考现在可以被丢弃
  • Gateway:新增日志警告:当来自 federation(external_account)凭证文件的 Google 访问令牌即将过期时发出
  • Gateway:改进了关于 listen.trusted_proxies 的日志提示:现在会说明只列出那些自身将连接地址加入 X-Forwarded-For 的代理
  • Gateway:改进了 AWS CountTokens 在 Amazon Bedrock 上失败时的警告:会说明 501 之后由 Claude Code 而非网关进行计数,并且只在 AWS 拒绝访问时才指向 IAM
  • Self-hosted runner:在编排器的 spawn-runner 钩子环境中新增 CLAUDE_RUNNER_SPAWN_REASON:表示 Anthropic 为何发送该请求(如 runner_lost、resumed);未发送原因时该变量不设置
  • Self-hosted runner:新增启动警告:当 --release-idle-session-min 是最后一个参数且没有值(仍会被忽略),或其值仅包含空格(仍按 0 读取)时
  • Self-hosted runner:变更了编排器的日志行:ok session=… 现在以所有日志级别输出到 stdout(此前仅在 debug 级别输出到 stderr),并在 jti=… 之后带 reason=…;nack session=… 的字段以 retryable=… 之后的 reason=… 结尾;请更新匹配 retryable=true: 或 retryable=false: 的脚本
  • Remote Control:修复了会话工作文件夹缺失时误导性的 “spawn error: ENOENT” 错误;该错误现在会指出文件夹名称
  • Remote Control:改进了当应用未设置标题时,终端 fork 的 fork 在创建时所使用的标题:“Name (fork 2)”
  • [VSCode] 修复了某个窗口在其登录被组织设置拒绝时,每分钟在后台启动一个新的 Claude Code 进程的问题
  • [VSCode] 修复了聊天面板错误横幅中过长的单词将关闭按钮挤出可见范围的问题
  • [VSCode] 改进了登录界面:当 Claude Code 的登录状态检查失败时,会显示其打印的内容
  • [Cloud sessions] 新增 “No repository” 选项:Anthropic 托管环境上的云端会话现在可以在不选择仓库的情况下启动
  • [Cloud sessions] 为云端会话添加了常用的 Chrome 名称,使 Playwright 之外的工具也能通过 google-chrome 和 CHROME_PATH 找到内置的 Chromium
  • [Cloud sessions] 为云端会话的环境被删除时显示的卡片(该处消息框被隐藏)新增了 “New session” 按钮
  • [Cloud sessions] 修复了在云端会话中读取 GitHub Actions 日志的问题:gh run view --log 和 gh api 日志请求现在在大多数环境中能获取到日志,而不是得到一个无法访问的重定向
  • [Cloud sessions] 改进了云端和 Remote Control 会话中大多数创建 PR 失败的消息:现在会给出原因或指向 GitHub 的链接,而不是只显示 “Try again”
  • [Cloud sessions] 变更了连接器搜索结果:会告知 Claude 该搜索仅覆盖连接器目录的一部分
  • [Remote Control] 修复了同一仓库的多个并排检出在环境菜单的 Remote Control 行中显示相同的问题;现在各自显示自己的文件夹名称
  • [Claude Tag] 修复了 Claude Tag 管理端设置中的键盘焦点和屏幕阅读器播报;在连接表单中按 Escape 不再同时关闭 Add 对话框

[Code Review] 改进了 Code Review 分析页面,使其在服务器或网络故障后自动重试一次;随后显示 Try again 横幅,而非空白卡片。

展开原文提取正文(采集端自动提取,可能有缺失)

·

1 commit

to main since this release

Immutable release. Only release title and notes can be modified.

646b741

What's changed

Added a record of your answer when Claude Code asks to turn on the mods it writes in a session Added assume_role on mantle upstreams of the Claude apps gateway, for a role in another AWS account and for per-developer AWS cost attribution Added an effort option to a mod's $.model.fork, so a quick side job can run at low whatever effort the session uses; the result reports the effort sent Added the date a stored claude.ai sign-in ends to claude auth status (loginExpiresAt) and to claude -p JSON results (credential_expires_at) Added a one-line stderr warning to claude -p text output, starting 10 days before a stored claude.ai sign-in ends Fixed --continue sometimes losing the earlier conversation after a malformed tool call's retries ran out (regression in 2.1.314) Fixed macOS sessions with many running Bash commands stalling while memory grew Fixed permission prompts being answered by keys typed just after sending a message, or before a slow prompt appeared Fixed /logout, claude auth logout and claude mcp remove reporting success, and changes to trust, consent or MCP settings being dropped with no word, when the config file could not be updated on a shared network home directory Fixed jobs exiting with Not logged in when another terminal or host signs in again to the same account and organization on the same home Fixed claude mcp add and remove writing the config without its lock: they now wait for it or exit 1, though another job's save can still replace a saved server Fixed claude plugin commands exiting before a slow token refresh was saved, which could sign you out on the next run Fixed claude plugin validate passing a custom-named marketplace file that claude plugin marketplace add rejects Fixed stdio MCP servers that exit on the version probe being re-probed on every start; a server that dies in under 3s for its own reason is also pinned to the legacy handshake for 7 days Fixed sessions being refused at startup by an allowedProviders list that another login on the same machine had stored Fixed idle compaction replacing a conversation with a reply that was not a summary Fixed the "Now using usage credits" notice reappearing about every 30 seconds while a background subagent is running Fixed custom slash commands that fail, or that only Claude can invoke, printing nothing in claude -p and SDK sessions Fixed claude -p and Agent SDK sessions reporting success when an API error cut off a reply while a mod hooked turn.step Fixed a message sent right after a model change still running after Stop in headless sessions: Stop now cancels or stops it as it would a queued message Fixed a deleted session transcript being re-created with its last prompt when an idle non-interactive session exited Fixed claude remote-control hosts, the background daemon and self-hosted runners failing to start new sessions (spawn ENOENT) after an update or version cleanup removed the binary of a still-running process Fixed a running Claude Code process owned by another user (for example one left by sudo claude) being treated as dead by version cleanup, which could delete its binary Fixed /remote-control showing a session as available after a failed connection Fixed /design revoke reporting success when the request failed with a 404 Fixed a shell command approved after a self-hosted runner or cloud session restart running in the session's start folder, not the folder it was asked in; if that folder can't be entered, it is not run Fixed Claude not being told when an approved connector tool was unavailable after a cloud session restart Fixed cloud sessions being stopped in the middle of a turn when the service refuses uploads for several minutes Fixed variables a Setup hook writes to CLAUDE_ENV_FILE not reaching the Bash tool in some cloud sessions Fixed the iPhone app showing a cloud session's turn as finished while it kept running, after a response was cut off at a tool call or a refused image or document was removed Fixed a restarted session re-sending a message that failed with an API error, ahead of the newer message waiting behind it Fixed a restarted session dropping its interrupted turn when the restart came right after Claude read a large image or retried a tool call Fixed every connection failing when the NODE_EXTRA_CA_CERTS file is empty, not PEM, or starts with a damaged certificate: readable certificates are now used, with a warning on stderr Fixed workflows re-running finished agents when resumed after a usage limit Fixed /mcp in cloud sessions counting tools the model can't use; a server's row now shows how many of its tools are available Fixed a duplicate notification when Claude left the status field out of a PushNotification call Fixed the error for a too-large image in a request with more than 20 images always saying the limit was 2000px; it now shows the API's limit Fixed the runtime in background shell details not updating while the dialog is open Fixed a mod's turn.step hook making a stopped reply finish as a success in headless runs Fixed retention cleanup leaving a home that only runs claude -p with no ~/.claude.json backup: it now takes a fresh backup before deleting the last good one Fixed the stored login being replaced by an empty file when a network home directory has no room left for data but still takes new files Fixed tokens from setup-token being refused at start on machines with forceLoginOrgUUID, when the token belongs to a permitted organization Fixed non-interactive launches replacing a ~/.claude.json that isn't valid JSON with defaults; the start now fails, says how to restore the file, and leaves it as is (#87551) Fixed an empty ~/.claude.json with no backup being reported as corrupted; Claude Code now starts as it does when the file is missing Fixed the restore command printed for a damaged or missing ~/.claude.json naming an empty or cut-off backup, or failing on a read-only file Fixed the sign-in failure when a stored claude.ai login reaches its time limit: it now says so, and in claude -p names claude auth login and claude setup-token Improved how ~/.claude.json, settings files and the stored login survive saves on shared network home directories: they are less often deleted, briefly emptied or replaced by a near-empty or older copy Improved sessions on network file systems to look again when the configuration file is wrongly reported as missing, so fewer start without your MCP servers and trusted folders Improved MCP tool errors: a call made before the tool is loaded now returns its input schema Improved the reliability of git commits and pull request creation when the Bash tool runs macOS's built-in /bin/bash Improved "Ask your admin for more usage" in the usage limit menu to send the request in one step Improved how fast remote sessions reconnect after a pause or sleep Improved You should know toasts to say "try again" instead of "press 2", which only works in the terminal Improved auto-update reliability: a brief network failure while verifying a release is now retried right away instead of waiting for the next check Improved unattended runs (claude -p, SDK apps) to stop rewriting ~/.claude.json on every run when nothing in it changed Changed Claude Code to no longer install or update the IDE extension when started in an IDE terminal; use /ide from an outside terminal or your editor's extensions view Changed subagents to stop instead of switching models when "Switch models when a message is flagged" is set to "Ask each time" Changed background subagents to move a shell command to the background after 3 minutes on all providers, so the prompt cache doesn't expire while it runs Changed subagent progress summaries on Bedrock, Vertex, Foundry, or with telemetry off: on a cold prompt cache, one can now wait up to 5 minutes for the subagent's pending response Changed what a mod attaches at prompt.submit to stay in the user's turn rather than go out as a system message Changed deniedMcpServers URL entries to also block Anthropic-provided servers whose upstream URL matches, and connectors in cloud sessions and on self-hosted runners, where the session is given the connector's own URL; otherwise deny a connector by name Changed the /permissions rule details, built-in rules and delete confirmation views to use the standard dialog; pressing Ctrl+C twice there now goes back or cancels instead of quitting Changed /claude-api managed-agents-onboard to give a new agent's built-in tools, and a quickstart template's MCP tools, the auto permission policy ("Judge risky actions") by default, matching the Claude Console; say "run without asking" to opt out Removed the 2.1.288 fix that kept the model's earlier thinking when resuming a conversation started on 2.1.286 or earlier; that thinking can now be dropped Gateway: Added a log warning when the Google access token from a federation (external_account) credentials file is about to expire Gateway: Improved the log hints about listen.trusted_proxies: they now say to list only a proxy that adds the connecting address to X-Forwarded-For itself Gateway: Improved the warning when AWS CountTokens fails on Amazon Bedrock: it says Claude Code, not the gateway, counts after the 501, and points at IAM only when AWS denies access Self-hosted runner: Added CLAUDE_RUNNER_SPAWN_REASON to the orchestrator's spawn-runner hook environment: why Anthropic sent the request (e.g. runner_lost, resumed); unset when none was sent Self-hosted runner: Added a startup warning when --release-idle-session-min is the last argument with no value (still ignored) or has a value of only spaces (still read as 0) Self-hosted runner: Changed the orchestrator's log lines: ok session=… now prints at every log level on stdout (was debug only, stderr) with reason=… after jti=…, and nack session=… ends its fields with reason=… after retryable=…; update scripts that match retryable=true: or retryable=false: Remote Control: Fixed a misleading "spawn error: ENOENT" when a session's working folder is missing; the error now names the folder Remote Control: Improved the title a fork of a terminal fork is created with when the app doesn't set one: "Name (fork 2)" [VSCode] Fixed a window whose sign-in the organization's settings refuse starting a new Claude Code process in the background every minute [VSCode] Fixed a long word in the chat panel's error banner pushing its close button out of view [VSCode] Improved the sign-in screen to show what Claude Code printed when its sign-in status check fails [Cloud sessions] Added a No repository option: a cloud session on an Anthropic-hosted environment can now start without picking a repository [Cloud sessions] Added the usual Chrome names to cloud sessions, so tools other than Playwright can find the built-in Chromium through google-chrome and CHROME_PATH [Cloud sessions] Added a New session button to the card shown when a cloud session's environment was deleted, where the message box is hidden [Cloud sessions] Fixed reading GitHub Actions logs in cloud sessions: gh run view --log and gh api log requests now get the log in most environments, not an unreachable redirect [Cloud sessions] Improved most Create PR failure messages in cloud and Remote Control sessions: they now give the reason or a link to GitHub instead of saying Try again [Cloud sessions] Changed connector search results to tell Claude that the search covers only part of the connector directory [Remote Control] Fixed side-by-side checkouts of one repository looking identical in the environment menu's Remote Control rows; each now shows its own folder name [Claude Tag] Fixed keyboard focus and screen reader announcements in Claude Tag admin setup; pressing Escape in the connect form no longer also closes the Add dialog [Code Review] Improved the Code Review analytics page to retry once after a server or network failure, then show a Try again banner instead of empty cards

原文入口

阅读原文(github.com)

原文将在新窗口打开。收录时间不是内容更新时间;正文、译文与解读的版权归原作者/来源所有,本站仅作个人阅读辅助并保留原文入口;页面时间均为北京时间。

作者/署名来自原文结构化字段(Atom/RSS/HTML meta/JSON-LD;GitHub release 显示的是发布者账号),未经模型补充。

了解来源批准与收录规则