mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
## Why After a model switch, compaction with the previous model could fail after exhausting stream retries without falling back to the selected model. ## What changed Allow compaction to fall back to the current model for all errors except `TurnAborted`, `Interrupted`, and `SessionBudgetExceeded`. ## Testing Add a regression test that exhausts the previous model's compaction stream retries, then verifies that fallback compaction and turn sampling use the selected model. GitOrigin-RevId: 9c9b7ccbb206d19f1ae750a32636fc9acaacfb2b