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
{{ message }}
Repository navigation
OpenCode Go monthly quota bar is missing the even-use marker #534
WINDOWS.month has no fixed lengthMs, so paceOf() needs windowStartedAt to build the interval. normalizeConsoleMeter() reads only meter.resetsAt and falls back to access.endsAt; it ignores access.startsAt and meter.startsAt. goRows() then passes only percentRemaining and resetsAt to quotaRow(), so the monthly row has no windowStartedAt and no pace.
With the example period and 41.47% remaining, the marker should sit around 37% left.
How can we make it happen?
Configure OpenCode Go with a Console sign-in.
Open the quota sidebar or limits view.
Compare the 5h and 7d bars (marker visible) with the monthly bar (no marker).
Suggested change
Read meter.startsAt when present.
For the monthly meter, fall back to access.startsAt.
Pass it through as windowStartedAt in goRows().
Add a fixture test with access.startsAt for the month and meters.week.startsAt.
No nominal 30-day length is needed; the exact period is available.
Related observation
The Console fiveHour meter currently has both startsAt: null and resetsAt: null. Because the code falls back to access.endsAt for every meter, the 5h row shows a reset on the plan end date (2026-12-13), which is not a 5h reset. Limiting the endsAt fallback to the monthly meter may be worth a separate fix.
Activity
github-actions commentedon Dec 2, 2026
Thanks for opening this! This issue was not made with one of our forms, so we added the
needs infolabel.Please open a new issue with a form: https://github.com/slkiser/opencode-quota/issues/new/choose. The forms ask for the details we need to help.