Skip to content

Tool usages in Copilot sometimes consumes premium request #14539

Closed

Description

@aklajnert

Description

According to GitHub's changelog GitHub Copilot coding agent now uses one premium request per session, Copilot should consume only one premium request per session, regardless of length, complexity, or tool calls. This implies tool usages (like question) shouldn't trigger additional requests.

In OpenCode, this holds mostly true, except for the question tool. I encourage the model to clarify uncertainties by this tool. During sessions, I monitor the usage meter at github.com/settings/copilot/features.

Observation: Answering the model's question (via dedicated UI, without sending a new main prompt) sometimes increases the premium request counter. It's inconsistent – happens sporadically, not every time. I can't pinpoint exact triggers (model? session state?). It seems that it happens more often with Opus, which is annoying as this is the most expensive model.

I'm using OpenCode Desktop.

Plugins

No response

OpenCode version

v1.2.10

Steps to reproduce

  1. Start Copilot session in OpenCode in agent mode with some premium model like Claude Sonnet 4.6
  2. Check the usage meter value
  3. Send a following prompt:

Ask me 5 different questions, one by one. Only ask one question at a time, and once I answer it, ask another one.

  1. Observe the usage meter after sending the prompt and before answering any question - the meter should increase.
  2. Answer in UI → watch meter → sometimes +1 premium request.

Note: I just did the steps, and now the meter didn't increase, even when I waited 30 minutes before sending answer to question number 4. Perhaps this was too simple, and the additional usages are counted when the session gets too big?

Operating System

Windows 11

Terminal

OpenCode Desktop

Activity

  1. pushad commented on Feb 23, 2026

    @pushad

    I'm pretty sure it consumes a premium request when it compacts. You can setup OpenRouter (or any other provider) specifically for compacting so that it does not go via Copilot. By default it will use a lower premium costing model though, so it should not be +1 premium request for compacting.

  2. aklajnert commented on Feb 23, 2026

    @aklajnert
    Author

    Oh, that makes sense. I don't think I can use OpenRouter in my company, but I could use a free model from Copilot for that.

    Any hints on how to trigger automatic compaction so I can confirm that it was the cause of the problem?

  3. shekohex commented on Feb 23, 2026

    @shekohex
    Contributor

    to trigger a compact (manually) you run /compact

    btw, how do you find the copilot premium request value? and how much is the context window for say, opus?

  4. aklajnert commented on Feb 23, 2026

    @aklajnert
    Author

    I would need the autocompaction to trigger without my intervention to confirm that this is the case. Or a way to confirm that the autocompaction occurred in my session.

    The context window for each model is presented in the VS Code when you click "Manage models":

    Image
  5. buz-ch commented on Mar 1, 2026

    @buz-ch

    I see it consuming multiple requests when using GUI (codenomad, openchamber) but not in the TUI. Very strange.

  6. georgeharker commented on Mar 6, 2026

    @georgeharker
    Contributor

    It uses a premium request to compact (unless you set the compaction model) but also the resume after compaction is currently a premium request also

  7. riosengineer commented on Mar 6, 2026

    @riosengineer

    It uses a premium request to compact (unless you set the compaction model) but also the resume after compaction is currently a premium request also

    I didn't know this, how can I tell when it consumes a premium request? I noticed the last few updates auto compaction for me which looks like it's contributed to my consumption on requests.

  8. krasen1234 commented on Apr 5, 2026

    @krasen1234

    It uses a premium request to compact (unless you set the compaction model) but also the resume after compaction is currently a premium request also

    Hmm im using compaction model as free but the resume seem to be counted still?

  9. real-or-random commented on Apr 23, 2026

    @real-or-random

    This could be the same underlying issue as karthink/gptel#1224. Copilot requires special headers when doing tool calls to get the billing right.

  10. aklajnert commented on Apr 24, 2026

    @aklajnert
    Author

    Right, it is fixed since a couple of versions (definitely after 1.4). I'll close this issue.

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 workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions