What this thread does
What changed
@thsottiaux, who works on Codex at OpenAI, announced on 11 October 2026 that GPT-6.1 Sol's default context length in Codex and ChatGPT Work went from 272K to 500K tokens, about 80% more. He called 500K the tested sweet spot for most users and said it will go higher later. @reach_vb added that this should mean two to three times fewer compactions on long tasks, at no extra charge.
OpenAI's help center for ChatGPT Work and Codex states the 500K default and that usage covered by your subscription's included allowance has no additional long-context surcharge.
0.166.0 preserves reasoning-token accounting across resume and fork to avoid premature compaction (checked 2026-11-05).
What it means for you
- On a ChatGPT plan: long Codex sessions keep more history before compacting. Larger requests still draw more of your usage allowance, because more tokens are sent each turn.
- On an API key: the GPT-6.1 Sol model page lists a 1,050,000-token window and charges more for requests over 272K tokens (2x input and cached input, 1.5x output, applied to the whole request, not only to the tokens past 272K). A bigger default window means more requests can cross that line; set the window yourself if cost matters.
Changing it
Codex reads the window and the compaction point from config.toml:
model_context_window = 300000
model_auto_compact_token_limit = 250000
Both keys are in Codex's config schema. The maximum for GPT-6.1 Sol is about 1M tokens.
Compared with Claude Code
Claude Code's models (Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable) run with a 1M window and auto-compact at about 967K by default; /autocompact sets a smaller window per model. Claude Code also has idle compaction for long idle sessions. Different defaults, same question: when is a longer history worth its token cost? See the threads on idle compaction and on cutting subagent costs with a smaller Haiku window.
Caveats (as of October 2026)
- This is part of OpenAI's daily "28 days" series of Codex changes; defaults may move again.
- A longer context is not free on quality: very long histories can still distract the model. Compare a few long tasks before and after.
Sources
Primary source: the OpenAI GPT-6.1 Sol model page, read on 18 October 2026.
- Confirms: a 1,050,000-token context window (up to 922,000 of it input, 128,000 output) and the higher price for requests over 272K tokens (2x input and cached input, 1.5x output). The page says the higher rate applies to the whole request, not only to the tokens past 272K.
- Checked 2026-11-17: the model page now confirms the 500K default in Codex and ChatGPT Work and no long-context surcharge on subscription usage. The Codex config reference confirms
model_context_windowandmodel_auto_compact_token_limit.
Started from a post by @thsottiaux, packaged by the editor. Original post