Claude Code:api_request 事件新增缓存写入拆分字段
OpenTelemetry api_request 事件新增 cache_creation_5m_tokens、cache_creation_1h_tokens
- 事件类型
- 功能更新
- 版本
- v2.1.300
- 官方发布
- 本站整理
本次变化
共 5 条要点
mod 的提示装饰新增 virtualText,即绘制在提示框中、不会进入草稿或已提交提示的文本。
官方原文 · c1
Added virtualText to a mod's prompt decorations: text drawn in the prompt box that never enters the draft or the submitted prompt
官方原文 · c1 OpenTelemetry api_request 事件新增 cache_creation_5m_tokens 和 cache_creation_1h_tokens,按生命周期拆分缓存写入。
官方原文 · c2
Added cache_creation_5m_tokens and cache_creation_1h_tokens to the OpenTelemetry api_request event, splitting cache writes by lifetime
官方原文 · c2 mod 新增 $.ui.view({ agentId }),在你要求时于主视图显示某个代理的对话记录;$.ui.view({}) 可返回。
官方原文 · c3
Added $.ui.view({ agentId }) for mods: shows an agent's transcript in the main view when you ask, and $.ui.view({}) goes back
官方原文 · c3 Claude Platform on AWS 新增 /advisor;在用 /advisor、advisorModel 或 --advisor 选择前不会运行 advisor,CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 可将其关闭。
官方原文 · c4
Added /advisor on Claude Platform on AWS; no advisor runs until you pick one with /advisor , advisorModel or --advisor , and CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 turns it off
官方原文 · c4 exit 现在会强制终止被要求停止 1.5 秒后仍在运行的后台命令;全屏模式下它们此前可能继续运行。
官方原文 · c5
Changed exit to force-kill background commands still running 1.5 seconds after being asked to stop; in fullscreen mode they could previously be left running
官方原文 · c5
变化明细
下表字段直接取自官方原文,保持原文语言,不做翻译。
| 编号 | 主体 | 动作 | 对象 | 范围 | 数值 |
|---|---|---|---|---|---|
| c1 | mod prompt decorations | added | virtualText | text drawn in the prompt box that never enters the draft or the submitted prompt | |
| c2 | OpenTelemetry api_request event | added | cache_creation_5m_tokens and cache_creation_1h_tokens | splitting cache writes by lifetime | |
| c3 | mods | added | $.ui.view({ agentId }) | shows an agent's transcript in the main view when you ask; $.ui.view({}) goes back | |
| c4 | Claude Platform on AWS | added | /advisor | no advisor runs until one is picked; CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 turns it off | |
| c5 | exit | changed to force-kill | background commands still running 1.5 seconds after being asked to stop | in fullscreen mode they could previously be left running | 精确 1.5 seconds |
版本时间线
同一工具在本站已发布的快讯,按官方发布日期由新到旧。
- 新增设置:Linux沙箱命令可创建用户命名空间
- 当前api_request 事件新增缓存写入拆分字段
关于这个工具
相关教程
- AI 编程工具怎么选:IDE、终端与费用条件按 IDE、终端等工作场景,核对 Cursor、GitHub Copilot、Cline、Codex、Claude Code 和 OpenCode 的登录与费用条件;未确认项明确标注。
- AGENTS.md 和 CLAUDE.md:Claude Code 读哪个、怎样共用一份默认只有 AGENTS.md 才读它,有 CLAUDE.md 则只读后者;@AGENTS.md 可共用。未实测,以官方为准
- Claude Code code-review 插件(插件命令,不是 Skill)Anthropic 官方 code-review 插件:用 /code-review 对 PR 做多代理审查,依赖 gh CLI,未实测
- frontend-design:让界面设计避开模板默认Anthropic 官方 frontend-design 技能:做界面前先出设计方案并对照需求自查,避开模板化默认。未实测,以官方原文为准。
- 大仓库按目录分指令大仓库里按目录拆 AGENTS.md 与 CLAUDE.md:给示例目录树,逐工具对照加载范围、嵌套优先级和冲突规则。按官方文档核对,未实测。
- skill-creator:写、改、评估技能的官方技能Anthropic 官方 skill-creator 技能:带你起草技能、跑评估、改写并优化触发描述。未实测,请以官方原文和文档为准。
- webapp-testing Skill:用 Playwright 操作本地网页应用Anthropic 官方 webapp-testing Skill:用 Python Playwright 脚本验证本地网页,未实测
来源与说明
官方原文 · github.com/anthropics/claude-code/releases/tag/v2.1.300
AI 整理说明
本条由 AI 依据官方来源整理并经自动核对;发现错误请 反馈。