mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## Why Successful `codex exec resume --last` lookups should not need to audit every rollout file. ## What changed - Query the state database first when it is available and treat the first usable matching entry as authoritative. - Verify that an indexed rollout's session ID matches the indexed thread ID before resuming it. - Fall back to scanning rollouts after a complete database miss, allowing the existing backfill path to repair missing entries. ## Testing Added integration coverage for missing database entries, usable indexed candidates, and mismatched indexed rollout paths. GitOrigin-RevId: 9959dacbc908e97f1073118142f276b470aa8e06