Skip to content

[BUG] GPT 5.5 has a window context of only 400K. #237

Description

@JoaoNetoDev

Problem (one or two sentences)

GPT 5.5 has a window context of only 400K, however, it supports 1.1M via Codex OAuth connection.

Context (who is affected and when)

Image

Reproduction steps

  1. Configure provider with OpenAI Plus OAuth
  2. Configure GPT 5.5 template
  3. Log in
  4. You will see that it is truncating the window to 400k tokens

Expected result

GPT 5.5 via Codex in GPT Plan using the standard 1M or 1.1M token window.

Actual result

GPT 5.5 via Codex on the GPT plan using 400K tokens

Variations tried (optional)

No response

App Version

3.54.1

API Provider (optional)

OpenAI

Model Used (optional)

GPT 5.5

Zoo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Activity

ztbh commented on May 23, 2026

@ztbh

It looks like the current behavior is expected for Codex subscriptions using a ChatGPT session.

When base_url is configured to use the ChatGPT Codex backend:

https://chatgpt.com/backend-api/codex

the actual context window is limited to 400K tokens, even for GPT-5.5 models.

Only requests authenticated with an API key via the official APIs currently get the 1M token context window:

Surface Context Window Authentication
Codex CLI / App 400K tokens ChatGPT session or API key
Responses API 1M tokens API key
Chat Completions API 1M tokens API key

Source:
https://codex.danielvaughan.com/2026/04/25/gpt-5-5-million-token-context-window-codex-cli-long-context-workflows/

So in practice:

  • ChatGPT session + https://chatgpt.com/backend-api/codex → 400K
  • API key + Responses API / Chat Completions API → 1M

Looks like this was already adjusted in this commit:
b5ad6d9

proyectoauraorg commented on May 24, 2026

@proyectoauraorg
Contributor

Looking into the context-window cap for GPT-5.5 (showing 400K vs the ~1M available via Codex OAuth). Note this builds on the gpt-5.5 model addition in #265 — the PR may depend on that landing first; I'll scope it to the context-window metadata.

proyectoauraorg commented on May 24, 2026

@proyectoauraorg
Contributor

GPT-5.5 is 1M only via the API; in Codex (Plus/Pro/Business/Enterprise/Edu/Go plans) it's 400K. Zoo Code's openai-codex provider is the Codex/OAuth path, so the current 400K is correct — raising it to 1M actually triggers "exceeds the context window of this model" errors (cf. openai/codex#19319, opencode#24171). So this is expected for the Codex provider rather than a bug — the 1M window is available via the API provider. 🦘

JoaoNetoDev commented on May 24, 2026

@JoaoNetoDev
Author

Thank you for the explanation.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions