mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
## Why Compacting a resumed conversation can fail when its previous model is no longer available. Some model-specific failures, such as a model-not-found response, are not represented as invalid requests and therefore did not trigger the existing fallback to the currently selected model. ## What changed - Share a retry predicate between both remote compaction implementations. - Fall back to the current model for invalid requests, unexpected statuses, context-window and usage-limit errors, server failures, and exhausted retries. ## Testing Add an integration test that resumes a conversation whose previous model returns model-not-found and verifies that compaction and the next turn use the renamed model. GitOrigin-RevId: c3857beae2ce79b50589deb13c2e59710ce14725