Skip to content

OpenCode Go monthly quota bar is missing the even-use marker #534

Backlog

Description

@vmvarela

In one sentence, what do you see?

The OpenCode Go monthly (30d) quota bar has no even-use marker (┃), while the 5h and 7d bars do.

Which OpenCode do you use?

OpenCode 2

Your OpenCode version

2.4.3

Your plugin version

6.3.0

What went wrong?

The monthly row shows its percentage and reset, but not the line that marks where usage should be for the elapsed time.

The Console endpoint (/api/go/status) already returns the real billing period:

"access": {
  "startsAt": "2026-11-13T11:43:35.000Z",
  "endsAt": "2026-12-13T11:43:35.000Z"
}

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?

  1. Configure OpenCode Go with a Console sign-in.
  2. Open the quota sidebar or limits view.
  3. 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.

Paste what /quota_status shows (optional)

Not included; it contains account identifiers.

Activity

  1. added
    needs info
    on Dec 2, 2026
  2. github-actions commented on Dec 2, 2026

    @github-actions
    Contributor

    Thanks for opening this! This issue was not made with one of our forms, so we added the needs info label.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions