Repository navigation
Conversation
Every other provider stores the five-hour window as `five_hour` and the monthly one as `monthly`, so Kimi's rows were the only ones named after the label they happened to carry. Two released ids move: `limit.5h` -> `five_hour`, `limit.monthly_total` -> `monthly`; `weekly` stays. A row id is stored in users' settings, so a `hidden`, `rowOrder` or `names` entry for the two old ids no longer matches. Nothing else reads them, and the ids stop moving when a label changes. Drop this commit to keep the old ids and only the labels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What users see change
A row that measures a window is named by that window, the same way for every provider; counts and units stay in the numbers; the account names the account.
Windows list short to long. A shorter window is the tighter limit, so it belongs first. A row labelled
30dalso counts as a month now, which gives it a pace and an even-use mark it did not have.One name per window. The same window was called
5h,5h limitorGemini 5hdepending on the provider, so a name written for one row did not match another's. A row's name is the window it measures:5 Hourinstead of5hor5h limit,Monthlyinstead ofCredits,Premium interactionsorPremium requests. The account stays in the account's title and the counts stay in the numbers.Copilot bills in AI credits. The reply reports
credits_usedandentitlementitself. The plugin computed entitlement minus remaining instead, which is86.9where the vendor says86, and it labelled the rowPremium interactionsafter a bucket the vendor no longer bills that way.An Alibaba seat is its own account. A Token Plan with several seats is several accounts, not several rows of one account, so each seat is titled
(team <name>)and its row says what it measures:Monthly.Kimi reads the ratios. The reply carries the same quota twice: counts in
usageandlimits[], ratios inusages. The first-party CLI (@moonshot-ai/kimi-code) reads the ratios, so the plugin reads them too — one row per window, and no arithmetic to turn a count into a percentage.limit_month_codeis the Code share inside the monthly pool, not an allowance of its own, so it is a/quota_statusdetail and the month stays one row.The Settings page names an account where it is needed. The tree lists a provider's rows without their account headings, so two seats of one plan would read the same. The account is named only where two rows of one provider would read the same.
Settings page, Alibaba with two seats:
Credits,Credits→team rmpub · Monthly,team etfpub · Monthly; a provider whose rows are distinct keeps the bare label.The sidebar keeps its short names (
5h,7d,30d): this PR is about the spelled name, the CLI, the export, the Settings page and reset notices (5 Hour quota reset: …).Nothing visible in the last commit: it renames two Kimi row ids to the shared keys (
limit.5h→five_hour,limit.monthly_total→monthly;weeklystays). A storedhidden,rowOrderornamesentry for the two old ids then stops matching — a hidden Kimi row shows again, a renamed one loses its name. CONTRIBUTING asks that a released row key not change, so it is a separate commit; drop it to keep the old ids.Linked issue
Fixes #512
Before and after screenshots
Same config, theme and window size; account names and paths hidden. Before is the published 6.3.0.
/quota→ LimitsA window-reset toast is not in these shots: it needs a window to reset while the plugin runs. The words are the same rows as above, prefixed
5 Hour quota reset: …./quota_status --provider kimi-code-plan-cn, before (6.3.0) and after — same four rows, now named and sorted short window first:No
monthly_code_ratioline here: this plan reports no monthly pool.CLI
showand/quota_exporttext for Kimi Code (CN), Copilot and Alibaba Token Plan is in "What users see change" above.Checklist
pnpm verifyChecklist