EN

Claude Code:api_request 事件新增缓存写入拆分字段

OpenTelemetry api_request 事件新增 cache_creation_5m_tokens、cache_creation_1h_tokens

Claude Code
事件类型
功能更新
版本
v2.1.300
官方发布
本站整理

本次变化

共 5 条要点

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

变化明细

下表字段直接取自官方原文,保持原文语言,不做翻译。

编号主体动作对象范围数值
c1mod prompt decorationsaddedvirtualTexttext drawn in the prompt box that never enters the draft or the submitted prompt
c2OpenTelemetry api_request eventaddedcache_creation_5m_tokens and cache_creation_1h_tokenssplitting cache writes by lifetime
c3modsadded$.ui.view({ agentId })shows an agent's transcript in the main view when you ask; $.ui.view({}) goes back
c4Claude Platform on AWSadded/advisorno advisor runs until one is picked; CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 turns it off
c5exitchanged to force-killbackground commands still running 1.5 seconds after being asked to stopin fullscreen mode they could previously be left running精确 1.5 seconds

版本时间线

同一工具在本站已发布的快讯,按官方发布日期由新到旧。

  1. 新增设置:Linux沙箱命令可创建用户命名空间
  2. 当前api_request 事件新增缓存写入拆分字段

关于这个工具

Claude Code

Claude Code 是 Anthropic 的编程 Agent,可围绕代码库读取上下文、修改文件、运行命令并协助开发任务。

分类AI编程工具

查看 Claude Code 详情

相关教程

来源与说明

官方原文 · github.com/anthropics/claude-code/releases/tag/v2.1.300

AI 整理说明

本条由 AI 依据官方来源整理并经自动核对;发现错误请 反馈。