What this thread does
As of November 2026, update OpenCode and its pruning plugin, then use settings for your installed major version. Do first: on V2, use agents.title.model for titles and agents.compaction.model for summaries. The V2 migration guide maps legacy small_model to the title agent and requires V1 plugins to be ported to the new API.
The problem
In January 2026 users of OpenCode with the GitHub Copilot provider saw premium requests vanish on short follow-ups. The GitHub issue (opened 2026-01-12 by bowmanjd) describes the report. The author's report: about 60 agent-initiated requests in one morning counted as premium, taking half a month's quota. The thread says Copilot bills by an x-initiator header: "agent" is not charged, "user" is.
Causes named in the thread
- Messages sent as the user role: OpenCode builds synthetic user messages (for example tool attachments). The author later said his first analysis was probably incomplete.
- A plugin: the Dynamic Context Pruning plugin injected user messages, so each prune cost a premium request; the author said he used it before it had been updated to use assistant messages. A maintainer confirmed and said the latest plugin version fixed it.
- A real follow-up costs one request (times the model multiplier), including a follow-up typed while the agent is running; several at once count once. Maintainer statement.
- Extra requests: maintainers said an extra user message after compaction (to continue the session) was counted, with an option to disable it planned.
Fix and mitigation
- Update OpenCode and the plugin. GitHub shows the issue closed on 2026-04-15, and on 2026-05-01 a maintainer repeated that it had been fixed since v1.4.7 (its notes include "Fixed Github Copilot overbilling issue"). A commenter on 2026-04-12 said the problem persisted then.
- V2 model routing: the migration guide keeps legacy
small_modelas a compatibility alias foragents.title.model; supported V1 configuration is normalized, so replacing the old key is optional. The current compaction guide documentsagents.compaction.model: summaries otherwise use the session model, and an unresolved configured model falls back to it. The oldagent.compaction.modelspelling belongs to V1. - V2 plugins: V1 plugin implementations do not run in V2; use a port compatible with the new plugin API. Updating the V1 plugin alone is insufficient for a V2 migration.
Caveats
The header explanation and v1.4.7 fix are historical statements from the issue and release notes; they do not establish billing behavior on every provider/model combination. Compare your own usage before and after changing a plugin or model.
Sources
- Issue 8030 and v1.4.7 release: historical overbilling report and fix.
- V2 migration guide and compaction reference: configuration.
Started from a post by @bowmanjd, packaged by the editor. Original post