zai-org / zai-org/feedback

Quota limits rows (5h / weekly / tools) disappeared after subscription renewal — UI shows broken "Usage remaining ~150% Quota"

Open
#264 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Summary

After renewing my ZCode subscription, the quota/usage breakdown in the "Context windows" panel stopped showing the per-quota limit rows (5-hour, weekly, tools). Instead, only a single, clearly broken row is displayed: "Usage remaining ~150% Quota".

The quotas themselves are still being consumed (messages and MCP tool calls continue to work and count against quota), so this appears to be a display/rendering bug, not a backend accounting problem — but it makes it impossible to track usage of each quota type.

Steps to reproduce

  1. Renew the subscription (the issue appeared right at the renewal boundary).
  2. Open / restart the ZCode desktop client.
  3. Open the "Context windows" panel.
  4. Observe the quota area at the bottom of the panel.

Expected behavior

The panel shows the per-quota usage rows that were present before renewal, e.g.:

  • 5-hour limit: X / Y
  • Weekly limit: X / Y
  • Tools limit: X / Y

Actual behavior

Only one row is shown at the bottom of the "Context windows" panel:

  • Text label: "Usage remaining"
  • Badge: "~150% Quota" (a "remaining" value of 150% is clearly invalid)
  • An ⓘ info icon
  • "More →" link

The 5-hour / weekly / tools rows are entirely missing. Screenshot of the broken state will be attached.

Troubleshooting already tried (none of this helped)

  1. Full client restart (closed the tray process, reopened).
  2. Log out → log back in.
  3. Checked for client updates (on the latest version).

Environment

  • OS: Windows 10.0.26200 x64
  • ZCode client version: <please fill — Settings → About>
  • Subscription plan: <please fill, e.g. Coding Plan>
  • Renewal date: <please fill>

Impact

Medium — work is not blocked, but I can no longer see how much of each quota type has been consumed, making it hard to plan usage and increasing the risk of unexpectedly hitting a limit. Likely affects anyone whose subscription renews around the same time.

Notes / hypothesis

  • ~150% shown as "remaining" suggests the quota counters were reset on renewal, but the UI is computing/labeling the value incorrectly — possibly a negative-consumption or zero-denominator edge case at the subscription-renewal boundary.
  • Happy to share my Account ID privately if needed for server-side correlation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the renewal-boundary state in the ZCode desktop client's Context windows panel and compare it with the expected per-quota rows. Trace the quota data and rendering path used by that panel, focusing on the remaining-percentage calculation after renewal. Done means the 5-hour, weekly, and tools rows return with valid usage values and no invalid ~150% display.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.