Skip to content

fix(core): correct Codex OAuth context limit - #343

Merged
shuv1337 merged 1 commit into
integration-v2from
codex-context-limit
Jul 22, 2026
Merged

fix(core): correct Codex OAuth context limit#343
shuv1337 merged 1 commit into
integration-v2from
codex-context-limit

Conversation

@shuv1337

Copy link
Copy Markdown
Collaborator

Summary

  • cap ChatGPT/Codex OAuth catalog limits at the 272k subscription context window
  • apply the same cap while constructing the runtime Codex route
  • preserve public API-key limits and models whose existing context windows are smaller

Root cause

The OpenAI catalog describes the public Responses API limits. The ChatGPT OAuth route reused those values unchanged even though the Codex backend advertises a 272k context window, causing compaction to occur too late.

Validation

  • bun test test/plugin/provider-openai.test.ts test/session-runner-model.test.ts
  • bun typecheck from packages/core
  • isolated full Core suite: 1,426 passed, 6 skipped, 0 failed
  • repository pre-push typecheck: 33/33 packages passed

@shuv1337
shuv1337 merged commit 332f56e into integration-v2 Jul 22, 2026
5 checks passed
@shuv1337
shuv1337 deleted the codex-context-limit branch July 22, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant