[PR #595] [MERGED] fix: Copilot Premium Requests #9655

Closed
opened 2026-02-16 18:13:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/595
Author: @mhuggins7278
Created: 7/1/2025
Status: Merged
Merged: 7/2/2025
Merged by: @thdxr

Base: devHead: copilot-initiator-header


📝 Commits (2)

  • 0e99a07 fix: Copilot Premium Requests
  • a8e78aa chore: remove log statements

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 packages/opencode/src/provider/provider.ts (+14 -0)

📄 Description

All calls including those initiated by a tool or the assistant are currently being counted against the copilot premium request limit.

This header should prevent calls initiated by either the "tool" or "assistant" from counting against those request limits.

For example codecompanion.nvim recently implemented a similar fix

fix #430


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/595 **Author:** [@mhuggins7278](https://github.com/mhuggins7278) **Created:** 7/1/2025 **Status:** ✅ Merged **Merged:** 7/2/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `copilot-initiator-header` --- ### 📝 Commits (2) - [`0e99a07`](https://github.com/anomalyco/opencode/commit/0e99a0738534842b2e0d694aaa7016c5ed5ff69c) fix: Copilot Premium Requests - [`a8e78aa`](https://github.com/anomalyco/opencode/commit/a8e78aa1a9dfcf2eee2b06f9636609cba61d720b) chore: remove log statements ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/provider/provider.ts` (+14 -0) </details> ### 📄 Description All calls including those initiated by a tool or the assistant are currently being counted against the copilot premium request limit. This header should prevent calls initiated by either the "tool" or "assistant" from counting against those request limits. For example codecompanion.nvim recently implemented a similar [fix](https://github.com/olimorris/codecompanion.nvim/commit/ed96fe33c17b41957f2334b1cae29c24d35f8ef2) fix #430 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:56 -05:00
yindo closed this issue 2026-02-16 18:13:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9655