Skip to content

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

Closed as duplicate
Closed as duplicate

Description

@dlukt

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

Activity

  1. added
    bugSomething isn't working
    on Feb 5, 2026
  2. github-actions commented on Feb 5, 2026

    @github-actions
    Contributor

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

    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.

  3. dlukt commented on Feb 5, 2026

    @dlukt
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions