Group of 3 Under the hood
turn.step and turn.complete events, including plugin hooks, now carry token usage information
What
- The
turn.completeevent payload now includes a computed usage object when available, alongside the existinganswer,durationMs,aborted, andturnIdfields. - The
turn.stepandturn.completetelemetry event payloads now include ausagefield whenever the underlying event carries usage data. - The plugin/hooks event-summary logger now includes token usage details (input tokens, output tokens, cache-read tokens, cache-creation tokens, and the model name) on
turn.stepandturn.completeevents, pulled from the assistant message.
Why
Plugins, hooks, and telemetry consumers can now see how many tokens a turn used directly from the turn events, without needing a separate lookup, which helps with cost tracking and observability.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What consumes this usage field, and why it's only included conditionally, isn't shown in the evidence.