GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: GitHub Copilot Claude models have wrong context limits and missing thinking variants · Issue #20317 · anomalyco/opencode

fix: GitHub Copilot Claude models have wrong context limits and missing thinking variants #20317

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
fix: GitHub Copilot Claude models have wrong context limits and missing thinking variants#20317
Copy link
Assignees
rekram1-node
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)

Description

@MoonFuji
MoonFuji
opened on Mar 31, 2026
Issue body actions

Bug

GitHub Copilot Claude models report incorrect context window sizes and only expose a single thinking variant instead of adaptive effort levels.

Context window sizes are wrong

models.dev (the upstream data source opencode uses) has incorrect context and output values for several Claude models when accessed via the GitHub Copilot provider. For example:

Model models.dev says Correct (Anthropic docs)
claude-opus-4.6 context=144k, output=64k context=1M, output=128k
claude-sonnet-4.6 context=200k, output=32k context=1M, output=64k
claude-haiku-4.5 context=144k, output=32k context=200k, output=64k
claude-opus-4.5 context=160k, output=32k context=200k, output=32k
claude-sonnet-4.5 context=144k, output=32k context=200k, output=64k
claude-sonnet-4 context=216k, output=32k context=200k, output=16k
claude-opus-41 context=80k, output=32k context=200k, output=32k

Thinking variants are missing

The variants() function in transform.ts has a @ai-sdk/github-copilot case that returns only a single hardcoded thinking variant for Claude models. Direct Anthropic Claude models correctly expose low/medium/high/max adaptive effort levels — GitHub Copilot Claude models should too.

How to reproduce

  1. Configure opencode with a GitHub Copilot subscription
  2. Select any Claude model (e.g. claude-opus-4.6)
  3. Observe the reported context window is wrong (144k vs 1M)
  4. Observe only one thinking toggle is shown instead of low/medium/high/max

Expected behavior

  • Correct context/output limits per Anthropic's official documentation
  • Adaptive thinking variants (low/medium/high/max) for claude-opus-4.6 and claude-sonnet-4.6; high/max for other Claude models via Copilot

References

  • Anthropic model overview: https://platform.claude.com/docs/en/about-claude/models/overview
Reacted by Murray Wood, keith-pw, ZhengFangFunz, tehort, Nenormalniy, Hieu Minh Nguyen, Sjeng Pho, Phùng Xuân Anh and Bogdan

Activity

  1. github-actions
    assigned
    rekram1-node
    on Mar 31, 2026
  2. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 31, 2026
  3. github-actions commented on Mar 31, 2026

    @github-actions
    github-actionsBot
    on Mar 31, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Claude Opus in GitHub Copilot and Anthropic have different context window #18832: Claude Opus in GitHub Copilot and Anthropic have different context window — reports the same wrong context window size for Opus 4.6 via Copilot
    • Discrepancies on context sizes using Opencode/Copilot CLI #17582: Discrepancies on context sizes using Opencode/Copilot CLI — reports incorrect context sizes across multiple Claude models via the Copilot provider
  4. MoonFuji
    added a commit that references this issue on Mar 31, 2026

    fix(opencode): correct GitHub Copilot Claude context limits and think…

    This issue will close once commit 65eedde is merged into the 'dev' branch.
    65eedde
  5. mugnimaestra commented on Apr 1, 2026

    @mugnimaestra
    mugnimaestra
    on Apr 1, 2026
    Contributor
    More actions

    I believe that github copilot claude models have some custom adjustment for the context window (they don't have the 1M token window yet I guess?)

    but it's true that I saw that in copilot cli the reasoning effort are put in low/med/high now

    and turns out different account type of github copilot has different context window

    it needs to run opencode models --refresh to get the latest info from copilot API

    Image

    see anomalyco/models.dev#1136 (comment) for reference

  6. keith-pw commented on Apr 1, 2026

    @keith-pw
    keith-pw
    on Apr 1, 2026
    More actions

    Observing this same issue. I suppose we wont get 1M context but it should be whats shown in VS Code Copilot:

    Image
  7. IlyaMaksheev commented on Apr 3, 2026

    @IlyaMaksheev
    IlyaMaksheev
    on Apr 3, 2026
    More actions

    Any solution to that? I also experience that.

  8. keith-pw commented on Apr 4, 2026

    @keith-pw
    keith-pw
    on Apr 4, 2026
    More actions

    Looks like this now works as expected. Shows 200k context for Opus 4.6 for me.

    Note that the limits vary depending on your GHCP subscription - trial accounts for instance have a 144k context window for Opus 4.6.

    Opencode Desktop + GHCP Enterprise Pro plan:

    Image
  9. Mapleshade20 commented on Apr 8, 2026

    @Mapleshade20
    Mapleshade20
    on Apr 8, 2026
    More actions

    Copilot's context window size is smaller than Anthropic official. You can check it out in VSCode.

  10. rekram1-node
    closed this as not plannedon Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.