[PR #321] [MERGED] feat(copilot): edit headers for better rate limit avoidance #9588

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/321
Author: @GitMurf
Created: 6/23/2025
Status: Merged
Merged: 6/23/2025
Merged by: @thdxr

Base: devHead: copilot-headers-improvement


📝 Commits (1)

  • 5efa725 feat(copilot): add additional headers and modify user-agent for better rate limiting success

📊 Changes

2 files changed (+10 additions, -8 deletions)

View changed files

📝 packages/opencode/src/auth/github-copilot.ts (+5 -5)
📝 packages/opencode/src/provider/provider.ts (+5 -3)

📄 Description

  • add additional headers and modify user-agent for better rate limiting success
  • GitHub Copilot chat and agent mode has notoriously been bad about rate limiting recently in vscode and anywhere else really that uses copilot sub for agentic coding.
  • These headers are ones I gathered from other projects and have tested myself to the most success for avoiding rate limiting as much as possible.

🔄 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/321 **Author:** [@GitMurf](https://github.com/GitMurf) **Created:** 6/23/2025 **Status:** ✅ Merged **Merged:** 6/23/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `copilot-headers-improvement` --- ### 📝 Commits (1) - [`5efa725`](https://github.com/anomalyco/opencode/commit/5efa7257166e4196cf0b4a763809fcbe767a0198) feat(copilot): add additional headers and modify user-agent for better rate limiting success ### 📊 Changes **2 files changed** (+10 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/auth/github-copilot.ts` (+5 -5) 📝 `packages/opencode/src/provider/provider.ts` (+5 -3) </details> ### 📄 Description - add additional headers and modify user-agent for better rate limiting success - GitHub Copilot chat and agent mode has notoriously been bad about rate limiting recently in vscode and anywhere else really that uses copilot sub for agentic coding. - These headers are ones I gathered from other projects and have tested myself to the most success for avoiding rate limiting as much as possible. --- <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:48 -05:00
yindo closed this issue 2026-02-16 18:13:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9588