mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
## Why Parent context-window and auto-compaction overrides may describe a different model than the one selected for Guardian review. ## What changed - Clear `model_context_window` and `model_auto_compact_token_limit` when the effective Guardian model differs from the parent model, allowing the review model's own limits to apply. - Preserve those overrides when Guardian uses the same effective model. ## Testing Add unit coverage for both model-selection paths and verify that a Guardian rollout records the selected review model's context window. GitOrigin-RevId: ebc399f4eba37c7f279fd0d258154c00d45e2d00