mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
## What changed Add `thread.usage.total` to the provider-facing statusline snapshot with total input, cache-read input, cache-write input, other input, and output token counts. Preserve cache-write counts when converting app-server token reports for the TUI. Omit totals when usage is unavailable, the breakdown is invalid, or the report represents a synthetic context fill. Keep measured zero totals. ## Testing Add coverage for the reported token breakdown, cache counts exceeding total input, synthetic context fills, and measured zero usage. GitOrigin-RevId: 6c506af30d6e51a49a780a0316304ef9c067fe43