Skip to content

🤖 fix: reconcile GPT-5.6 family Codex OAuth context caps with the Codex catalog #4683

Description

@ThomasK33

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions