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 — Copilot auth now sets far too many requests as "user" consuming premium requests rapidly · Issue #8030 · anomalyco/opencode

Copilot auth now sets far too many requests as "user" consuming premium requests rapidly #8030

New issue
Copy link
New issue
Copy link
Closed
#22567
Closed
Copilot auth now sets far too many requests as "user" consuming premium requests rapidly#8030
#22567
Copy link
Assignees
rekram1-node

Description

@bowmanjd
bowmanjd
opened on Jan 12, 2026
Issue body actions

Description

This, morning a request or two using Github Copilot's Opus 4.5 consumed half my monthly quota -- there were around 60 agent-initiated requests that should not have been counted as premium requests. In other words, they should have had the X-Initiator header set to "agent" as this is the way Copilot counts requests. Agent/tool initiated messages are flagged as "agent" and truly user-initated ("user" messages) are the ones that should consume premium requests.

This appears to be directly related to the opencode-copilot-auth version bump of recent commits, so I did create anomalyco/opencode-copilot-auth#11 there as well. The opencode-copilot-auth is recently, and rightly, trying to comply with Copilot's request consumption patterns so as not to provide an avenue for abuse. We are now seeking to ensure that all "user" requests consume premium tokens (with premium models, that is). That is good, but introduces an incompatibility with opencode's role classifying.

As far as I can tell, opencode creates synthetic "user" messages for tool attachments in the MessageV2.toModelMessage function in packages/opencode/src/session/message-v2.ts. So now that opencode-copilot-auth is more conservative in its use of the X-Initiator: agent header, we are in effect charging for every tool attachment message, which gets quite expensive, as I discovered this morning, sadly.

Workaround

For now, I would highly recommend to Copilot users that they keep OpenCode at version 1.1.12, and do your best to be honorable (and safe from being blocked or throttled by Github), starting new sessions often rather than "riding" the same session to avoid premium request consumption.

Plugins

opencode-copilot-auth

OpenCode version

1.1.14

Steps to reproduce

Ask a copilot premium model such as Claude to investigate or solve a complex problem that involves reading, writing, and editing files.

Screenshot and/or share link

No response

Operating System

Linux, Windows

Terminal

Foot, and Windows Terminal

Reacted by Thiago Bellini Ribeiro, Dustin Dowell, Z233, Flo Schuessel, Kenneth Aasan, Alexei Nunez, tintty1, Marc Harter, Chris Domigan, Mark Ellis and 69 more
Reacted by Lamanda , Hai-Dang Huynh-Lam, Jakob Rössner, Richard Popeliš, Andre Miller, Aaron Manning, Ruitong Liu, dmmop, Yongshun Ye, Jakov Čiček and 1 more

Activity

Next
  1. bowmanjd
    added
    bugSomething isn't working
    on Jan 12, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 12, 2026
  3. github-actions
    added
    zenRelates to Zen
    on Jan 12, 2026
  4. github-actions commented on Jan 12, 2026

    @github-actions
    github-actionsBot
    on Jan 12, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Github Copilot burns premium quota for non-premium models #6816: Github Copilot burns premium quota for non-premium models (similar issue about premium quota consumption, recently closed)
    • Github Copilot: Tracking Premium Requests #768: Github Copilot: Tracking Premium Requests (related to premium request tracking)
    • Heightened number of requests being made #7076: Heightened number of requests being made (reports similar premium quota consumption increase with GitHub Copilot)
    • Dramatic increase in token consumption #924: Dramatic increase in token consumption (related issue about dramatic token/request consumption increase)

    Feel free to ignore if your specific case differs from these.

  5. rekram1-node commented on Jan 12, 2026

    @rekram1-node
    rekram1-node
    on Jan 12, 2026
    Member
    More actions

    ahh

  6. rekram1-node commented on Jan 12, 2026

    @rekram1-node
    rekram1-node
    on Jan 12, 2026
    Member
    More actions

    will fix

    Reacted by maxvisionai, Jonathan Bowman, Thiago Bellini Ribeiro, Gigi, Virgile Lafontaine, TheEpTic, Daniel Mateos Carballares, Maxim Kovkel, Z233, Ziyan Junaideen and 27 more
  7. caozhiyuan commented on Jan 13, 2026

    @caozhiyuan
    caozhiyuan
    on Jan 13, 2026
    Contributor
    More actions

    in claude code , skill invocations, edit hooks or to do reminders , request like this: {"role":"user","content":[{"type":"tool_result","content":"Launching skill: xxx"},{"type":"text","text":"xxx"}]}, when translate to copilot-api will add user block in last message. i also change in ericc-ch/copilot-api@f2b8476 , maybe opencode also the same case.

  8. rekram1-node
    marked Excessive token consumption since ~Jan 12, 2026 - apparently sending entire project context on every request #8234 as a duplicate of this issue on Jan 13, 2026
  9. bowmanjd commented on Jan 14, 2026

    @bowmanjd
    bowmanjd
    on Jan 14, 2026
    Author
    More actions

    As discussed in #8067 my initial analysis is probably wrong, and the excessive token usage may have been related to https://github.com/Opencode-DCP/opencode-dynamic-context-pruning -- I just had the bad luck to use it before it had fully updated to use assistant messages instead of user messages.

  10. adrians5j commented on Jan 14, 2026

    @adrians5j
    adrians5j
    on Jan 14, 2026
    More actions

    I'm not sure if this is related to your thing... but interestingly enough, yday I noticed the same increased usage with Copilot:
    https://x.com/adrians5j/status/2011007640344678444?s=20

    Was shocked, and now I'm using webstorm's plugin, just to see if it's any dfferent. So far, it DOES feel that the increased consumption is no longer happening.

    Keeping my eye on this one. Don't know how to properly debug these things yet.

    UPDATE: Just saw the duplicate issue. Woah so it's not just me. Good to know.

  11. dhruvkej9 commented on Jan 15, 2026

    @dhruvkej9
    dhruvkej9
    on Jan 15, 2026
    More actions

    will fix

    Each user message consumes one request it should not be the case (it is just too much now then), while the agent is still working.

    This leads to DCP consume one premium request for each prune & also the whole purpose of prompting in between agent is working is defeated now with copilot.

  12. rekram1-node commented on Jan 15, 2026

    @rekram1-node
    rekram1-node
    on Jan 15, 2026
    Member
    More actions

    @dhruvkej9 that should be fixed in ur latest dcp version, the problem here is that DCP IS (or was) injecting user messages which will eat up your quota

  13. dhruvkej9 commented on Jan 15, 2026

    @dhruvkej9
    dhruvkej9
    on Jan 15, 2026
    More actions

    @dhruvkej9 that should be fixed in ur latest dcp version, the problem here is that DCP IS (or was) injecting user messages which will eat up your quota

    So now for each follow-up to the agent will take one premium request?

    Even if 3 user messages are queued and they get sent at the same time it will take 3 premium requests (in case of Opus 4.5 it would be 9)? ideally it should be 1 as all of them are sent at the same time.

    Also shouldn't there be a soft-limit on the follow ups we give to the coding agent? As a small follow-up/correction/guidance to the agent while it is working and got wrong will cost again a premium request and in case of Opus 4.5 (3 premium requests).

    That's gonna make copilot unusable.

    Follow-up:
    Can we use copilot auth old version with new opencode versions by overriding it in config and disabling the default plugins by global flag?

  14. rekram1-node commented on Jan 15, 2026

    @rekram1-node
    rekram1-node
    on Jan 15, 2026
    Member
    More actions

    Even if 3 user messages are queued and they get sent at the same time it will take 3 premium requests (in case of Opus 4.5 it would be 9)? ideally it should be 1 as all of them are sent at the same time.

    Hm no that shouldn't be the case that should only eat up 1. Also note that some models have multipliers and can eat up more than a single premium request from a single request

  15. 212 remaining items

    Load more actions
  16. kldzj commented on Apr 12, 2026

    @kldzj
    kldzj
    on Apr 12, 2026
    More actions

    @rekram1-node Not sure what exactly is happening, but today opencode is eating my premium requests like crazy. I'm not sure this is related to the 1.3.4 upgrade, but that's the only thing that has changed since everything was fine for me yesterday.

    are you still suffering from this issue ? or is it solved ?

    Yes, the underlying problem still isn't solved. As far as I know Aiden is working on it.

  17. rekram1-node commented on Apr 13, 2026

    @rekram1-node
    rekram1-node
    on Apr 13, 2026
    Member
    More actions

    Looking at all the cases and after talking w/ the copilot team. The only issue remaining was the one linked above^ w/ the tool image stuff.

    Some ppl are upset about the extra user message we send after a compaction is completed to basically help make the session auto continue (cause sometimes the llm wont do too much w/ just the summary). We will provide an option to disable this but I can't just write that as a non user initiated event, it is spinning up another prompt to trigger more generation.

    Even with the current setup that eats more requests in some cases, github is already concerned about abuse and there have already been many abusers, we have to be conservative.

    Now there are several locations in the codebase that synthetic user messages are added, several people are creating prs that basically track all synthetic user messages as agent initiated events. This is the wrong approach and it will result in vast underbilling in many cases.

    The only cases I could find that a synthetic/hidden user message was triggering billing when it "shouldnt" were:

    • synthetic msg attached after tool result that reads images (fixed above, not released yet)
    • synthetic msg after compaction (compaction itself doesnt bill but the auto continue does): but for this case as stated above, it follows what would be expected for triggering additional inference

    I tested copilot cli and if we want parity, disabling the additional user message for copilot seems reasonable (better matches their behavior here).

    Today I will add this disable behavior, and add comments about the various billing cases and close out this issue for good.

    Reacted by Valentin Muro, Nikolai Kolodziej, Felipe Fidelix, Rory, Marc Harter, Benoit de Chezelles, Denis6902, Daniel, Yveszzz, Yevhen P. and 2 more
    Reacted by Nikolai Kolodziej, Felipe Fidelix, Baptiste GAZÉ, Byron, Norbiros, Federico Teotini and ypashkov
    Reacted by Wali Mohammad Kadri, Norbiros and Alisson Primo
  18. fidelix commented on Apr 13, 2026

    @fidelix
    fidelix
    on Apr 13, 2026
    More actions

    The most reasonable and fair approach. Thanks for the work!

  19. aefmind commented on Apr 14, 2026

    @aefmind
    aefmind
    on Apr 14, 2026
    More actions

    @rekram1-node looks like the right thing.

    the extra user message we send after a compaction is completed to basically help make the session auto continue (cause sometimes the llm wont do too much w/ just the summary)

    I was asking me: by overriding compact agent could we improve instructions so the summary becomes better for continuation, or are there such big technical reasons that would make this not so useful?

  20. rekram1-node commented on Apr 15, 2026

    @rekram1-node
    rekram1-node
    on Apr 15, 2026
    Member
    More actions

    linked pr will be merged tmr I tested copilot quite a bit, it seems like their continue doesnt seem to incur changes so this pr will match, there are some weird edge cases tho w/ how they bill that do not align with some of the reports people had in this thread, for example I managed to get billed for some compactions in copilot cli itself.

    Im raising my pr and experiences w/ copilot team, hopefully will get clarity.

    Reacted by Federico Teotini, dhruv kejriwal, Mohamed Yassine Landolsi , Aleksander Bondar, festim-jetishi, ypashkov and C
    Reacted by Alisson Primo
  21. Pollux12 commented on Apr 15, 2026

    @Pollux12
    Pollux12
    on Apr 15, 2026
    More actions

    linked pr will be merged tmr I tested copilot quite a bit, it seems like their continue doesnt seem to incur changes so this pr will match, there are some weird edge cases tho w/ how they bill that do not align with some of the reports people had in this thread, for example I managed to get billed for some compactions in copilot cli itself.

    Im raising my pr and experiences w/ copilot team, hopefully will get clarity.

    With the Copilot CLI, I believe manual compaction does bill but automatic does not. That might be why you've seen it sometimes? I've definitely never been billed with automatic compaction on Copilot CLI but I remember it billing for the one time I tried manual via the command.

    Reacted by j4rviscmd and festim-jetishi
  22. AmariUwU commented on Apr 15, 2026

    @AmariUwU
    AmariUwU
    on Apr 15, 2026
    More actions

    Is this normal? Why is it at 16k tokens?

    Image
  23. fteotini commented on Apr 15, 2026

    @fteotini
    fteotini
    on Apr 15, 2026
    More actions

    Is this normal? Why is it at 16k tokens?

    Image

    yes if you have MCPs and any other kind of context files automatically included

    Reacted by Amari
  24. kldzj commented on Apr 15, 2026

    @kldzj
    kldzj
    on Apr 15, 2026
    More actions

    Is this normal? Why is it at 16k tokens?

    Image

    System prompt, skills, MCPs, plugins. Nothing related to this issue most likely.

    Reacted by Rory, festim-jetishi, Amari and Kamil
  25. rekram1-node
    closed this as completedin #22567on Apr 15, 2026
  26. dhruvkej9 commented on Apr 20, 2026

    @dhruvkej9
    dhruvkej9
    on Apr 20, 2026
    More actions

    @rekram1-node Is this fixed? Can't see it any of the opencode releases

    Reacted by vcraescupb and Ben Thornton
  27. SpencerWell commented on May 1, 2026

    @SpencerWell
    SpencerWell
    on May 1, 2026 · Hidden as spam
    show commentMore actions
  28. rekram1-node commented on May 1, 2026

    @rekram1-node
    rekram1-node
    on May 1, 2026
    Member
    More actions

    @dhruvkej9 yes that's why I closed the issue

    been fixed since: https://github.com/anomalyco/opencode/releases/tag/v1.4.7

  29. dhruvkej9 commented on May 2, 2026

    @dhruvkej9
    dhruvkej9
    on May 2, 2026
    More actions

    @dhruvkej9 yes that's why I closed the issue

    been fixed since: https://github.com/anomalyco/opencode/releases/tag/v1.4.7

    Sorry for bothering, missed it

  30. CFigariR commented on May 15, 2026

    @CFigariR
    CFigariR
    on May 15, 2026 · Hidden as spam
    show commentMore actions
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

No labels
No labels

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.