mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## Why Fresh threads have no rollout until their first turn, so archiving them previously failed with a missing-rollout error. ## What changed Persist loaded, non-ephemeral threads before looking them up for archival. This lets a newly started thread be archived without creating a user turn. ## Testing Update the archive regression test to cover threads with no turns in both legacy and paginated history modes. Verify the archive notification, empty turn history, `NotLoaded` status, and archived rollout path. GitOrigin-RevId: 507351c6238ad96f5e3ffbd2ed7f432058e3d52c