中文

Claude Code: Cache write token fields added to OpenTelemetry api_request event

Added cache_creation_5m_tokens and cache_creation_1h_tokens to the OpenTelemetry api_request event, splitting cache writes by lifetime.

Claude Code
Event type
Feature
Version
v2.1.300
Published by vendor
Compiled here

What changed

5 points

  1. Added virtualText to a mod's prompt decorations: text drawn in the prompt box that never enters the draft or the submitted prompt.

    Official wording · c1

    Added virtualText to a mod's prompt decorations: text drawn in the prompt box that never enters the draft or the submitted prompt

    Official wording · c1
  2. Added cache_creation_5m_tokens and cache_creation_1h_tokens to the OpenTelemetry api_request event, splitting cache writes by lifetime.

    Official wording · c2

    Added cache_creation_5m_tokens and cache_creation_1h_tokens to the OpenTelemetry api_request event, splitting cache writes by lifetime

    Official wording · c2
  3. Added $.ui.view({ agentId }) for mods: it shows an agent's transcript in the main view when you ask, and $.ui.view({}) goes back.

    Official wording · c3

    Added $.ui.view({ agentId }) for mods: shows an agent's transcript in the main view when you ask, and $.ui.view({}) goes back

    Official wording · c3
  4. 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.

    Official wording · 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

    Official wording · c4
  5. 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.

    Official wording · 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

    Official wording · c5

Change details

Fields in this table are taken verbatim from the official text.

IDSubjectActionObjectScopeValues
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 runningexactly 1.5 seconds

Version timeline

Published updates for this tool on this site, newest official date first.

  1. Added sandbox.allowNestedUserNamespaces for sandboxed Linux commands
  2. CurrentCache write token fields added to OpenTelemetry api_request event

About this tool

Claude Code

Claude Code is Anthropic's coding agent for reading codebase context, editing files, running commands and assisting development work.

CategoriesAI Coding

View Claude Code details

Related guides

Source and notes

Official source · github.com/anthropics/claude-code/releases/tag/v2.1.300

About this AI summary

This entry was compiled by AI from official sources and automatically checked. Found a mistake? Please send feedback.