Skip to content

We want 1M context #28852

Open
Open

Description

@Ahoo-Wang

Core request

As Codex users, we want GPT-5.5 in Codex to expose 1M effective context.

GPT-5.5 is the flagship model users expect to rely on for complex engineering work in Codex. We choose GPT-5.5 not only for stronger single-turn reasoning, but because we expect it to sustain long-running, multi-file, multi-stage agentic coding workflows.

OpenAI's own GPT-5.5 release post says GPT-5.5 in Codex is available with a 400K context window, while the API path for GPT-5.5 has a 1M context window:

https://openai.com/index/introducing-gpt-5-5/

The GPT-5.5 API model page also lists a 1,050,000 context window:

https://developers.openai.com/api/docs/models/gpt-5.5

So GPT-5.5 has a 1M-context capability path, but Codex currently does not expose that capability fully to users.

That is the core request of this issue: please let GPT-5.5 in Codex expose 1M effective context.

This is not a request for the community to design OpenAI's internal implementation. From the outside, users cannot know whether the current limit comes from the service layer, model routing, account policy, client behavior, model catalog, prompt construction, or the compaction pipeline. That is OpenAI's responsibility to diagnose and solve. Users care about the practical outcome: whether GPT-5.5 in Codex actually provides the long-context capability expected from a flagship model.

Real user experience

GLM-5.2 was released very recently, and I have been deeply testing its 1M-context behavior in complex engineering scenarios.

In the same or very similar complex engineering tasks, my real-world experience is that GPT-5.5 in Codex is far less stable than GLM-5.2. I do not believe the main reason is that GPT-5.5 is inherently weaker as a model. The main reason appears to be Codex's effective context limit and the frequency of context compaction.

The advantage of GLM-5.2 is not that it can simply stuff a little more chat history into the prompt. The advantage is that, in long-running tasks, it can keep carrying forward the engineering context: requirements, constraints, architectural tradeoffs, code evidence, rejected approaches, execution path, and verification results. Once that information is compressed too early, the model starts losing the real shape of the task.

In contrast, Codex GPT-5.5 enters context compaction too often during complex engineering work. The worst case is that even a brainstorming session may need compaction before the discussion is finished. At that point the key context is not yet stable, and compaction directly causes information loss, semantic distortion, or later execution drifting away from the original discussion.

This feels like a self-imposed handicap. GPT-5.5 has a 1M-context capability path, but Codex exposes a smaller effective context and then relies on frequent compaction to keep the session going. The result is that the flagship model cannot fully express its capability in real complex scenarios.

Why 1M context matters for coding agents

For serious agentic coding, context is not ordinary chat history. It is the working memory of the task. It includes:

  • requirements and boundaries
  • architectural decisions and tradeoffs
  • code and documentation already inspected
  • approaches already rejected
  • tests, logs, and verification evidence
  • user preferences and project constraints
  • the current reasoning path still being developed

A summary is not a reliable replacement for full context. This is especially true in architecture design, cross-file modification, long-running debugging, performance analysis, migration planning, and multi-stage verification. Many important details cannot be safely preserved by a short summary.

1M context is already a practical capability boundary for long-horizon coding agents, not an unreasonable future wish.

Z.AI's GLM-5.2 documentation positions it as a flagship model for long-horizon tasks, lists a 1M context length, and explicitly connects it to project-scale engineering context and long-task execution:

https://docs.z.ai/guides/llm/glm-5.2

Z.AI's Claude Code integration documentation also shows glm-5.2[1m] and configures:

CLAUDE_CODE_AUTO_COMPACT_WINDOW=1000000

https://docs.z.ai/devpack/latest-model

Anthropic's documentation also says Claude Code supports a 1M token context window for certain paid-plan model combinations:

https://support.claude.com/en/articles/8606394-how-large-is-the-context-window-on-paid-claude-plans

These product examples show that 1M context is already part of real coding-agent workflows. GPT-5.5 in Codex, as a flagship model, should expose 1M effective context as well.

DeepSeek cache facts: long context is not always linear cost

Long context should not be reduced to "more input tokens means proportionally higher cost."

DeepSeek is a public and concrete example. DeepSeek's official documentation says Context Caching is enabled by default for all users. If later requests share an overlapping prefix with earlier requests, the overlapping part can be fetched from cache and counted as a cache hit:

https://api-docs.deepseek.com/guides/kv_cache

DeepSeek API responses also expose cache hit accounting directly:

  • prompt_cache_hit_tokens
  • prompt_cache_miss_tokens

The official docs state:

prompt_tokens = prompt_cache_hit_tokens + prompt_cache_miss_tokens

https://api-docs.deepseek.com/api/create-chat-completion

DeepSeek's pricing page also separates cache-hit and cache-miss input pricing and lists 1M context. In other words, providers are already treating a stable long-context prefix and a full cache miss as different cost structures:

https://api-docs.deepseek.com/quick_start/pricing

This demonstrates an important fact: in modern long-context model serving, a stable large prefix does not necessarily mean every turn is charged as a full linear input miss. Cache hits on stable prefixes can materially change the real cost structure.

Therefore, when Codex frequently compacts, rewrites, or restructures context, it may reduce the visible prompt length while also causing two problems:

  • It loses context fidelity, causing GPT-5.5 to drop key state in complex engineering tasks.
  • It disrupts stable prefixes, reducing the potential benefit of cache locality.

So forced early compaction should not be treated by default as the best cost or experience tradeoff. For users who are willing to pay more for serious complex engineering work, please return the choice of 1M context to the user.

Request to OpenAI

Please directly address the 1M effective context issue for GPT-5.5 in Codex:

  • GPT-5.5 already has a 1M-context capability path. Please expose 1M effective context for GPT-5.5 in Codex.
  • If Codex currently applies an effective context cap below 1M for GPT-5.5, please document the actual limit clearly.
  • If reliability, latency, capacity, safety, or cost constraints currently prevent Codex from exposing 1M context, please state that explicitly.
  • Do not use frequent lossy compaction as a substitute for the long-context capability expected from a flagship model.
  • For users willing to pay more in exchange for long-context fidelity, please give that choice back to the user.

The core request is simple:

We want 1M context for GPT-5.5 in Codex.

To other users

If you also rely on Codex for long-running engineering work and want GPT-5.5 in Codex to expose 1M effective context, please add a 👍 reaction or comment with your workflow.

Activity

  1. added
    enhancementNew feature or request
    contextIssues related to context management (including compaction)
    on Jun 18, 2026
  2. changed the title [-]Feature request: expose 1M context and make context compaction user-selectable[/-] [+]Feature request: expose 1M context and make compaction cache-aware/user-selectable[/+] on Jun 18, 2026
  3. changed the title [-]Feature request: expose 1M context and make compaction cache-aware/user-selectable[/-] [+]Request: clarify and lift Codex's effective context cap; make compaction cache-aware[/+] on Jun 18, 2026
  4. changed the title [-]Request: clarify and lift Codex's effective context cap; make compaction cache-aware[/-] [+]Request: expose 1M effective context in Codex[/+] on Jun 18, 2026
  5. changed the title [-]Request: expose 1M effective context in Codex[/-] [+]We want 1M context for GPT-5.5 in Codex[/+] on Jun 18, 2026
  6. jgador commented on Jun 18, 2026

    @jgador

    I created an issue for this. And I think the reason why it's not defaulting to having a 1M context window token is that it becomes expensive. This is from their documentation: "prompts with >272K input tokens are priced at 2x input"

  7. Ahoo-Wang commented on Jun 18, 2026

    @Ahoo-Wang
    Author

    I created an issue for this. And I think the reason why it's not defaulting to having a 1M context window token is that it becomes expensive. This is from their documentation: "prompts with >272K input tokens are priced at 2x input"

    I agree cost is likely a major reason.

    But the quoted docs describe a pricing threshold, not a capability limit: GPT-5.5 has a 1M context path, and prompts above 272K are priced at a premium.

    The request is not “make 1M free/default for everyone.” It is: expose 1M effective context in Codex for users who need it and are willing to accept the cost.

    Also, API token cost is not the only cost here. Forced compaction has a user time cost: lost task state, repeated explanations, re-reading files, re-validating decisions, and recovering from context drift. In complex engineering work, that wasted human time can easily exceed the extra token cost.

    DeepSeek is a useful example here: its API exposes prompt_cache_hit_tokens and prompt_cache_miss_tokens, and its pricing separates cache-hit from cache-miss input. That shows long context does not always have to be treated as a simple linear-cost problem. Stable long-context prefixes can have a different cost profile.

    So yes, 1M context may be more expensive. But frequent lossy compaction is also expensive, just in user time and engineering reliability. Users who need 1M context should be able to choose that tradeoff explicitly.

  8. jgador commented on Jun 18, 2026

    @jgador

    #27743

    I commented in the issue I filed on how can you have the 1M token for gpt-5.4 and maybe that can work with gpt-5.5.

  9. Ahoo-Wang commented on Jul 20, 2026

    @Ahoo-Wang
    Author

    Fable 5: 1M. K3: 1M. GLM-5.2: 1M. Grok 4.5: 500K. GPT-5.6 Sol API: 1.05M. In Codex: 272K.

    OpenAI built a frontier brain and locked it in a toy cage. 272K isn’t context.

    It’s a README with delusions of grandeur. Codex didn’t deploy Sol. It imprisoned it.

    Image
  10. changed the title [-]We want 1M context for GPT-5.5 in Codex[/-] [+]We want 1M context[/+] on Jul 27, 2026
  11. iwecon commented on Aug 7, 2026

    @iwecon

    According to Tibo's tweet on X: context usage exceeding 272K is doubled, which is the API's policy. Subscribers shouldn't be subject to this limit; however, on July 18th, he forced the context usage from 372K at the time of GPT-5.6 release to 272K (because it would cause subscription usage to be consumed too quickly). Tibo said he would investigate. And so far, there has been no progress on fixing/investigating this. :(

    Currently, the 272K setting frequently triggers context compression in coding tasks, causing not only loss of hint accuracy but also issues like privilege overruns—it's incredibly chaotic.

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

    contextIssues related to context management (including compaction)enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions