Skip to content

Copilot CLI has higher context window than GitHub Copilot extension #16861

Closed

Description

@zhzy0077

Question

Problem

opencode appears to use static GitHub Copilot model limits that are lower than the live Copilot CLI /models response.

Examples from the same account:

Image
  • claude-opus-4.6: live CLI 200000, opencode/models.dev 128000
  • claude-sonnet-4.6: live CLI 200000, opencode/models.dev 128000
  • claude-haiku-4.5: live CLI 144000, opencode/models.dev 128000

This looks like opencode is using static catalog metadata instead of live Copilot model metadata.

Plugins

I forked https://github.com/zhzy0077/opencode-copilot-auth and simply add below and re login to use.

{
  "plugin": [
    "@zhzy0077/[email protected]"
  ]
}

Activity

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

    @github-actions
    Contributor

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

    If your issue is distinct from the above, please add clarifying details about how it differs.

  3. Zakariaaben commented on Mar 16, 2026

    @Zakariaaben

    why are you requesting access to so much things as repo and org read access, gists read write access etc ? @zhzy0077

  4. ayqazi commented on Mar 18, 2026

    @ayqazi

    This is a serious issue for copilot actually, as compaction occurs when it doesn't really need to, wasting valuable premium requests.

  5. SadE54 commented on Mar 23, 2026

    @SadE54

    Latest 1.3 seems to have changed the behavior a little . Now it seems Opencode can see ~142000 tokens , instead of 200000 😅

    Image
  6. krasen1234 commented on Mar 27, 2026

    @krasen1234

    Yup, why isnt this being fixed?

  7. jcubic commented on Mar 27, 2026

    @jcubic

    It seems this is a limitation of GitHub Copilot. To fix this, you need to contact GitHub.

  8. mdarocha commented on Mar 27, 2026

    @mdarocha

    I got copilot to quickly whip up a plug-in that I believe fixes this issue:

    https://github.com/mdarocha/dotfiles/blob/main/config/llm-agents/opencode/plugins/copilot-fix-models.js

    At first glance the values seem correct with this plugin. It also adds model multipliers to the model name in the picker.

    The only issue is that it breaks device code flow auth for copilot (since it overwrites the building copilot plugin) - I've fixed that by patching the opencode source.

  9. jensenojs commented on Apr 7, 2026

    @jensenojs
    Contributor

    Is this issue still present?

  10. SadE54 commented on Apr 7, 2026

    @SadE54

    Is this issue still present?

    It seems to be fixed in the last version (1.3.17)

    Image
  11. pnacovsky commented on Apr 8, 2026

    @pnacovsky

    Is this issue still present?

    144k context in 1.4.0

    Image
  12. zhzy0077 commented on Apr 8, 2026

    @zhzy0077
    ContributorAuthor

    yes it's officially fixed. so no plugin is needed.

  13. aysbg commented on Apr 23, 2026

    @aysbg

    No, this most definitely isn't fixed:

    Context
    106,508 tokens
    74% used
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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