Skip to content

feat: Support the new Synthetic quota system#154

Merged
mcowger merged 2 commits intomcowger:mainfrom
fredizzimo:new-synthetic-quota
Apr 11, 2026
Merged

feat: Support the new Synthetic quota system#154
mcowger merged 2 commits intomcowger:mainfrom
fredizzimo:new-synthetic-quota

Conversation

@fredizzimo
Copy link
Copy Markdown
Contributor

Also improve the quota card display to show more information. The quota graphs support both the new and old system, so historical data can be viewed.

image image

fixes: #150

Also improve the quota card display to show more information. The quota
graphs support both the new and old system, so historical data can be
viewed.
@fredizzimo fredizzimo force-pushed the new-synthetic-quota branch from 3ff3a82 to 8544af9 Compare April 10, 2026 12:11
@fredizzimo
Copy link
Copy Markdown
Contributor Author

I made a couple of small changes. I renamed toolcalls to toolcalls (old). And I also removed the 5 hour and toolcall windows from new fetches, so that they don't show up in the graph, unless old data is present.

- Extract parsedMax/parsedRemaining locals in weeklyTokenLimit block to
  avoid calling parseCredits four times with the same arguments
- Restore quota status color behavior in SyntheticQuotaDisplay: ProgressBar
  now derives bar/text color from window.status (ok/warning/critical/exhausted)
  falling back to the caller-supplied default colors when status is absent
- Add test suite for SyntheticQuotaChecker covering both new API shapes,
  edge cases in credit string parsing, and error handling
@mcowger mcowger merged commit 92d7c19 into mcowger:main Apr 11, 2026
1 check passed
github-actions bot pushed a commit that referenced this pull request Apr 12, 2026
feat: Support the new Synthetic quota system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Display free tool calls time until reset for synthetic

2 participants