官方更新 Claude Code Releases 2026-08-08T01:09 正文 ok 348 words

Claude Code v2.1.225 发布:新增网关额度预警与工作区信任提示

英文标题:Claude Code v2.1.225

Claude Code v2.1.225 为使用量预警新增网关消费额度支持:达到额度上限时,提示将显示额度上限、重置时间及运营方消息,要求网关版本同为 2.1.225。该版本还为不受信任目录中的 `claude agents` 增加了与 `claude` 一致的工作区信任确认提示。更新修复了 OAuth、MCP、无头会话、Remote Control、会话历史和 self-hosted runner 等多项稳定性问题。对于开发者而言,这一版本提升了企业网关额度管理、远程 Agent 协作和长时间自动化任务的可靠性。
打开原文相关 14.4 · 机会 3
media1.3 KB media48.7 KB

中文

变更内容

  • 为 Claude Code 的用量警告新增网关消费额度支持;达到额度上限时,提示信息现在会显示额度上限、重置时间以及运营方消息(要求网关版本为 2.1.225)
  • 为不受信任目录中的 claude agents 新增工作区信任提示,使其行为与 claude 保持一致
  • 修复了使用已保存登录信息中的短期令牌替换长期有效的 CLAUDE_CODE_OAUTH_TOKEN 时出现的瞬时 401 错误;该问题会导致无头会话在重启前无法正常运行
  • 修复了 macOS 上 MCP OAuth 服务器在钥匙串读取超时时,间歇性出现一连串 401 错误、仿佛从未完成认证的问题
  • 修复了自动模式将自身权限检查遭安全过滤器拒绝计入连续阻止次数上限的问题;操作仍会被拒绝,但现在模型会被告知继续处理,而非重复重试
  • 修复了无头会话及启动期间跨会话消息一直滞留、没有提示或过期机制的问题
  • 修复了超大型对话被压缩后,恢复 Remote Control 会话时对话历史失效的问题
  • 修复了在 agents 列表中悬停其他项目的会话时,会改变下一个 Agent 启动目录的问题
  • 修复了当无法创建或写入 --base-dir 时,claude self-hosted-runner 虽完成注册却在每个会话中失败的问题;现在它会在启动时以清晰的错误信息退出
  • 修复了 Claude Code 网页版会话被错误报告为卡住、并在每次重新连接时重复发送不断增长的事件积压的问题
  • 改进了 Remote Control:现在从 Claude 应用附加的照片会直接展示给 Claude,而不再通过单独的工具调用从磁盘读取
  • [VSCode] 修复了 Focus 视图折叠隐藏最新待办事项列表、待处理问题的上下文及已解决回答的问题;仅含思考过程的折叠项会显示“思考了 Ns”,并会在该轮完成后重新折叠
  • SendMessage 现在可通过名称与其他机器上的 Remote Control 会话发起对话(ListAgents 会将其显示为 name [ref]),而不再只能在对方先向你发送消息后进行回复
  • SendMessage:对于已经确认过的 Remote Control 接收方,当无法检查其自身列表时,不会再被本机中同名的会话替换

English / 原文

  1. Releases
  2. v2.1.225

Compare

Sorry, something went wrong.

No results found

What's changed

  • Added gateway spend-limit support to Claude Code's usage warning; the limit-reached message now names the cap, its reset time, and the operator's message (requires the gateway on 2.1.225)
  • Added a workspace trust prompt to claude agents for untrusted directories, matching the behavior of claude
  • Fixed a transient 401 replacing a long-lived CLAUDE_CODE_OAUTH_TOKEN with a stored login's short-lived token, breaking headless sessions until restart
  • Fixed MCP OAuth servers on macOS intermittently failing with a burst of 401 errors, as if never authenticated, after a keychain read timed out
  • Fixed auto mode counting a safety-filter refusal of its own permission check toward the consecutive-block limit; the action is still denied, but the model is now told to move on rather than retry
  • Fixed cross-session messages staying parked without a notice or expiry in headless sessions and during startup
  • Fixed conversation history breaking on Remote Control session resume after very large conversations were compacted
  • Fixed hovering over a session in another project in the agents list changing the directory the next agent starts in
  • Fixed claude self-hosted-runner registering and then failing every session when --base-dir cannot be created or written; it now exits at startup with a clear error
  • Fixed Claude Code on the web sessions being misreported as stuck, re-sending a growing event backlog on every reconnect
  • Improved Remote Control: photos attached from the Claude app are now shown to Claude directly instead of being read from disk with a separate tool call
  • [VSCode] Fixed Focus view folding away the latest to-do list, a pending question's context, and settled answers; thinking-only folds show "Thought for Ns" and re-collapse when their turn completes
  • SendMessage can now start a conversation with your Remote Control sessions on other machines by name (ListAgents shows them as name [ref]), instead of only replying after they message you first
  • SendMessage: a Remote Control recipient you already confirmed is never swapped for a same-named session on this machine when its own list couldn't be checked

You can’t perform that action at this time.