mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Compaction using the previous model can inherit the current turn's access program, producing a model/program pair that the server rejects. ## What changed - Persist `cyber_access_program` in previous-turn settings and restore it during rollout reconstruction. - Use the previous turn's access program when compacting with its model, preserving an absent program instead of inheriting the current selection. - Pass the selected access program into local compaction prompts. ## Testing Add regression coverage for local and remote compaction after model switches, including resume, fork, rollback, and compaction checkpoints. Verify fallback and subsequent sampling use the current model/program pair, and API-key sessions do not inherit access-program authorization. GitOrigin-RevId: eaa7162e8711446dc9eb1bfff194e711abd54d7e