mirror of
https://github.com/openai/codex.git
synced 2026-09-09 15:58:47 +00:00
## Why `TurnComplete` arrives before the active turn is cleared, so submitting a rollback immediately can race with turn cleanup. ## What changed Wait for the thread-idle callback with a 10-second timeout before rolling back in the first-turn model-change and generated-image tests. Fail immediately on an error event while waiting for `ThreadRolledBack`. GitOrigin-RevId: c17b35d709b2c74361dd7933506ae192464ea4e8