You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse and respect GitHub's explicit premium_interactions fields for Copilot user quota. Added helpers getFirstNestedBoolean and normalizeExplicitPercentRemaining, looked up percent_remaining and unlimited paths, and use explicit percent_remaining when present (including negative values). If the response marks quota as unlimited, return a user_quota result with unlimited:true and percentRemaining defaulting to 100, update formatCopilotQuota to display "Copilot Unlimited", and map the unlimited result to a provider value row showing "Unlimited". Also added the optional unlimited flag to CopilotQuotaResult, updated tests to cover explicit percent, negative percent, and unlimited cases, and documented the behavior in README.
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -340,6 +340,8 @@ Run `/quota_status` and check the Anthropic section.
340
340
341
341
Run `/quota_status` and check `copilot_quota_auth`, `billing_mode`, `billing_scope`, and `quota_api`.
342
342
343
+
For personal Copilot OAuth quota, the plugin uses GitHub's reported premium-interaction quota fields when available. If that specific quota payload marks premium interactions as unlimited, quota output renders `Unlimited` instead of a synthetic used/total ratio.
344
+
343
345
| Symptom | Fix |
344
346
| --- | --- |
345
347
| Personal quota missing | Confirm OpenCode Copilot auth works. The plugin can read OpenCode's Copilot OAuth token. |
0 commit comments