mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
## Why Migrating selected threads reads rollout headers even for unrelated threads. Use the state database to skip files whose indexed owner and canonical filename agree that they belong to an unselected thread. ## What changed - Read thread IDs and rollout paths without creating or migrating the state database, and fall back to header inspection if the index cannot be read immediately. - Keep inspecting selected, unindexed, misnamed, and conflicting paths so rollout headers still determine ownership. - Recognize stable thread IDs in reverted rollout filenames and match plain and compressed paths when filtering. ## Testing Add a regression test covering pruning of unrelated indexed rollouts, including archived and compressed files, while retaining header inspection for selected and ambiguously named files. GitOrigin-RevId: d76827174c00f5bc9e38ad9b69dadeee91f4415f