mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## Why Prediction forks need to retain their parent's context even when it exceeds the automatic compaction threshold. Compaction or context resets can otherwise replace the history used for the prediction. ## What changed - Apply a thread-local `AutoCompactionDisabled` policy to experimental prediction forks without changing model or skill budgets. - Skip automatic compaction before, during, and after turns, including context-limit recovery, and suppress new token-budget reminders. - Reject `new_context` requests for these threads and report context-limit failures without compacting their history. ## Testing Add regression tests for legacy and paginated prediction forks across compaction thresholds, unchanged parent compaction and skill/tool inputs, context-limit failures, and rejected context resets. Add a request-history snapshot verifying inherited context and reminders survive without compaction or additional reminders after a tool call. GitOrigin-RevId: 7df374287f4142f776981bb6c22e5caa564d74a5