-
Notifications
You must be signed in to change notification settings - Fork 785
Copilot premium usage should use calendar-month pace under a single row #689
Copy link
Copy link
Open
Labels
acceptedConfirmed backlog item or verified open bugConfirmed backlog item or verified open bugarea:usage-accuracyUsage math, reset windows, plan parsing, cost/token accuracyUsage math, reset windows, plan parsing, cost/token accuracybugSomething isn't workingSomething isn't workingpriority:mediumMedium priority: real issue or meaningful backlog itemMedium priority: real issue or meaningful backlog itemprovider:copilotIssue specific to GitHub CopilotIssue specific to GitHub Copilot
Metadata
Metadata
Assignees
Labels
acceptedConfirmed backlog item or verified open bugConfirmed backlog item or verified open bugarea:usage-accuracyUsage math, reset windows, plan parsing, cost/token accuracyUsage math, reset windows, plan parsing, cost/token accuracybugSomething isn't workingSomething isn't workingpriority:mediumMedium priority: real issue or meaningful backlog itemMedium priority: real issue or meaningful backlog itemprovider:copilotIssue specific to GitHub CopilotIssue specific to GitHub Copilot
Summary
Copilot should keep its simple single-row presentation, but the monthly pace shown under that row needs to follow GitHub's premium-request calendar month, not the subscription assignment date.
Confirmed behavior
GitHub's premium request analytics are calendar-month based and reset on the 1st of each month at 00:00:00 UTC.
Live API investigation
Using the same authenticated endpoint CodexBar calls (
/copilot_internal/user), a live response returned:assigned_date:2026-03-22T16:03:34-07:00quota_reset_date:2026-05-01premium_interactions.entitlement:1500premium_interactions.remaining:1139premium_interactions.percent_remaining:75.9That payload mixes a subscription-assignment date with a calendar-month reset date.
Root cause
CodexBar was deriving the pace window as:
assigned_date -> quota_reset_dateFor the live payload above, that means pacing over roughly Mar 22 -> May 1, which inflates the reserve/deficit output.
Expected behavior
For Copilot premium requests, the pace window should be:
quota_reset_dateExample:
quota_reset_dateis2026-05-01, the pace window should be2026-04-01 00:00:00 UTC -> 2026-05-01 00:00:00 UTCUI behavior
Premiumrow.in deficit/in reservewording.Proposed fix
assigned_datewhen deriving the premium-request pacing window.quota_reset_date.Notes
If GitHub omits the reset fields, Copilot should keep the simple percent-only row.