I’m using Codex Desktop / CLI 0.152.0 with ChatGPT authentication on macOS.
My config selects gpt-5.6-sol and does not override model_context_window or model_auto_compact_token_limit.
Observations:
- Codex token-usage events consistently report
model_context_window: 258400. - The bundled model catalog contains
context_window: 272000andmax_context_window: 872000. - 258,400 is exactly 95% of 272,000.
- Automatic compaction occurred at roughly 215K–243K input tokens in multiple sessions.
- The API model page advertises a 1.05M context window and notes different pricing above 272K input tokens:
GPT-5.6 Sol Model | OpenAI API - The Codex config reference documents
model_context_window,model_auto_compact_token_limit, andmodel_auto_compact_token_limit_scope:
Configuration Reference | ChatGPT Learn
Questions:
- Is 272K the intentional default context limit for ChatGPT-authenticated Codex?
- Is
model_context_window = 872000a supported way to enable the larger window, or would that merely make the client exceed a backend limit? - Does using the larger window consume more Codex credits, corresponding to the API’s long-context pricing?
- Does
model_auto_compact_token_limit_scope = "body_after_prefix"exclude the initial system/tool/instruction prefix, or only the retained prefix after the first compaction? - Why is the Codex product limit substantially smaller than the model’s documented API context window?
I’d appreciate clarification from anyone familiar with the Codex client/backend behavior, especially whether the 272K default and 872K maximum are supported product limits or only internal catalog metadata.