mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why The requesting thread's rollout lacks per-response token usage for Guardian work, including requests that consume tokens without producing a usable result. ## What changed Persist reported token usage from Guardian reviews, background review compaction, and classifier requests in the requesting thread's rollout. Each record identifies the requesting turn, response, and model, and marks incomplete responses that report usage. These records stay separate from the thread's cumulative token totals and are excluded from forked history. ## Testing Cover review attribution and unchanged parent token totals, compaction that reports usage without a usable summary, and thread shutdown waiting for an interrupted classifier's usage write. GitOrigin-RevId: da5d3711cdb7c7aeab829d3537ef59b724c57171