Problem
CODEX_OAUTH_CONTEXT_WINDOW_OVERRIDES in src/common/constants/codexOAuth.ts caps the GPT-5.6 family (gpt-5.6, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna) at 372K on the Codex OAuth route (set in #3730). The pinned first-party Codex catalog lists context_window: 272000 (max_context_window: 872000) for gpt-5.6-sol, gpt-5.6-terra and gpt-5.6-luna. openai/codex main (checked 2026-09-26) lists the same values.
Found while fixing #4347, which covered only GPT-6 Astra's cap. Left out of that PR to keep it in scope.
Follow-up trigger and acceptance
Pick up with the next OpenAI/Codex catalog refresh. First check whether #3730's 372K came from observed Codex behavior rather than the catalog.
- Reconcile the four GPT-5.6 entries with the catalog, or record why 372K is intentional.
- Update
codexOAuth.test.ts and contextLimit.test.ts routing expectations.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
Problem
CODEX_OAUTH_CONTEXT_WINDOW_OVERRIDESinsrc/common/constants/codexOAuth.tscaps the GPT-5.6 family (gpt-5.6,gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna) at 372K on the Codex OAuth route (set in #3730). The pinned first-party Codex catalog listscontext_window: 272000(max_context_window: 872000) forgpt-5.6-sol,gpt-5.6-terraandgpt-5.6-luna. openai/codexmain(checked 2026-09-26) lists the same values.Found while fixing #4347, which covered only GPT-6 Astra's cap. Left out of that PR to keep it in scope.
Follow-up trigger and acceptance
Pick up with the next OpenAI/Codex catalog refresh. First check whether #3730's 372K came from observed Codex behavior rather than the catalog.
codexOAuth.test.tsandcontextLimit.test.tsrouting expectations.Generated with
xum• Model:anthropic:claude-opus-5-5• Thinking:high