mirror of
https://github.com/openai/codex.git
synced 2026-10-29 19:08:43 +00:00
## Why `ShutdownComplete` can arrive before detached task cleanup records and exports `codex.turn_profile` events, causing the turn phase trace test to read incomplete profile counts. ## What changed Poll exported spans until the expected number of profiles is available, with a 10-second timeout, before asserting sampling request and retry counts for reply and interrupt cases. GitOrigin-RevId: 43cdcdde71bbcd16ed2e6c8b2accaa2a5de03001