Skip to content

openai_subscribed: Restore Codex context limits - #62515

Merged
eholk merged 1 commit into
mainfrom
revert-openai-subscription-context-window
Aug 12, 2026
Merged

openai_subscribed: Restore Codex context limits#62515
eholk merged 1 commit into
mainfrom
revert-openai-subscription-context-window

Conversation

@eholk

@eholk eholk commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

PR #62502 changed the ChatGPT subscription models to report the corresponding public API context windows. That was based on a mistaken assumption: subscription requests go through the separate Codex backend, which still rejects requests around the previous context limit.

Because the advertised context window also determines when Zed compacts a conversation, reporting 1.05M tokens delays compaction until after the Codex backend rejects the request. This reverts #62502 and restores the previous conservative limits. Longer term, we should load the account-specific model metadata from the Codex /models endpoint rather than maintaining this list by hand.

Release Notes:

  • Fixed automatic context compaction for GPT models accessed through a ChatGPT subscription.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Aug 12, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Aug 12, 2026
@eholk
eholk enabled auto-merge August 12, 2026 05:05
@cole-miller

Copy link
Copy Markdown
Member

@zed-industries/approved

@eholk
eholk added this pull request to the merge queue Aug 12, 2026
Merged via the queue into main with commit 315ea37 Aug 12, 2026
50 checks passed
@eholk
eholk deleted the revert-openai-subscription-context-window branch August 12, 2026 05:12
playdohface pushed a commit to playdohface/zed that referenced this pull request Aug 29, 2026
PR zed-industries#62502 changed the ChatGPT subscription models to report the
corresponding public API context windows. That was based on a mistaken
assumption: subscription requests go through the separate Codex backend,
which still rejects requests around the previous context limit.

Because the advertised context window also determines when Zed compacts
a conversation, reporting 1.05M tokens delays compaction until after the
Codex backend rejects the request. This reverts zed-industries#62502 and restores the
previous conservative limits. Longer term, we should load the
account-specific model metadata from the Codex `/models` endpoint rather
than maintaining this list by hand.

Release Notes:

- Fixed automatic context compaction for GPT models accessed through a
ChatGPT subscription.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants