mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## What changed Record `codex.turn.pre_sampling.duration_ms` when a sampling phase starts. Use the `is_first_sampling_request` label to distinguish overhead before the first request from overhead accumulated since the preceding request. The timing excludes tool blocking and compaction. ## Testing Extend turn timing tests to verify the first-request duration, per-request overhead across subsequent requests, and the exclusion of tool blocking and compaction. GitOrigin-RevId: 068be5cb4d1345dc064fa8f1df2469dfa0f3071f