GPT-5.2 context limit for Github Copilot is too low #8580

Closed
opened 2026-02-16 18:10:19 -05:00 by yindo · 2 comments
Owner

Originally created by @dlukt on GitHub (Feb 5, 2026).

Originally assigned to: @fwang on GitHub.

Description

The GPT-5.2 context limit for Github Copilot seems to be too low.

https://platform.openai.com/docs/models/gpt-5.2
400,000 context window
128,000 max output tokens

However in opencode, at roughly 90k tokens in the context, in opencode, GPT-5.2 is already 70% full, suggesting the context window is limited to 128k, using default build mode.
In contrast, the OpenAI GPT-5.2 definition is correct

      "models": {
        "gpt-5.2": {
          "name": "GPT 5.2 (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          },
          "variants": {
            "none": {
              "reasoningEffort": "none",
              "reasoningSummary": "auto",
              "textVerbosity": "medium"
            },
            "low": {
              "reasoningEffort": "low",
              "reasoningSummary": "auto",
              "textVerbosity": "medium"
            },
            "medium": {
              "reasoningEffort": "medium",
              "reasoningSummary": "auto",
              "textVerbosity": "medium"
            },
            "high": {
              "reasoningEffort": "high",
              "reasoningSummary": "detailed",
              "textVerbosity": "medium"
            },
            "xhigh": {
              "reasoningEffort": "xhigh",
              "reasoningSummary": "detailed",
              "textVerbosity": "medium"
            }
          }
        },

Plugins

No response

OpenCode version

v1.1.51

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Originally created by @dlukt on GitHub (Feb 5, 2026). Originally assigned to: @fwang on GitHub. ### Description The GPT-5.2 context limit for Github Copilot seems to be too low. https://platform.openai.com/docs/models/gpt-5.2 400,000 context window 128,000 max output tokens However in opencode, at roughly 90k tokens in the context, in opencode, GPT-5.2 is already 70% full, suggesting the context window is limited to 128k, using default build mode. In contrast, the OpenAI GPT-5.2 definition is correct ``` "models": { "gpt-5.2": { "name": "GPT 5.2 (OAuth)", "limit": { "context": 272000, "output": 128000 }, "modalities": { "input": [ "text", "image" ], "output": [ "text" ] }, "variants": { "none": { "reasoningEffort": "none", "reasoningSummary": "auto", "textVerbosity": "medium" }, "low": { "reasoningEffort": "low", "reasoningSummary": "auto", "textVerbosity": "medium" }, "medium": { "reasoningEffort": "medium", "reasoningSummary": "auto", "textVerbosity": "medium" }, "high": { "reasoningEffort": "high", "reasoningSummary": "detailed", "textVerbosity": "medium" }, "xhigh": { "reasoningEffort": "xhigh", "reasoningSummary": "detailed", "textVerbosity": "medium" } } }, ``` ### Plugins _No response_ ### OpenCode version v1.1.51 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="2392" height="1637" alt="Image" src="https://github.com/user-attachments/assets/ca68979a-363a-4006-aa44-f5c1000e765e" /> ### Operating System _No response_ ### Terminal _No response_
yindo added the bugzen labels 2026-02-16 18:10:19 -05:00
yindo closed this issue 2026-02-16 18:10:19 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 5, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11086: GPT 5.2 Codex - Compaction happens way too early and context limit is wrong

Both issues report the same problem: GPT-5.2 context limit is incorrectly configured in OpenCode (showing ~100-128k tokens when the actual limit is 272k tokens).

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Feb 5, 2026): This issue might be a duplicate of existing issues. Please check: - #11086: GPT 5.2 Codex - Compaction happens way too early and context limit is wrong Both issues report the same problem: GPT-5.2 context limit is incorrectly configured in OpenCode (showing ~100-128k tokens when the actual limit is 272k tokens). Feel free to ignore if this doesn't address your specific case.
Author
Owner

@dlukt commented on GitHub (Feb 5, 2026):

https://github.com/anomalyco/opencode/issues/11086

@dlukt commented on GitHub (Feb 5, 2026): https://github.com/anomalyco/opencode/issues/11086
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8580