Add a desktop usage widget and Grok account quotas - #44
Open
ascendedent wants to merge 5 commits into
Open
Conversation
Discover ~/.grok/sessions, read usage.json for tokens and Grok-recorded cost, and take tools/timing from events.jsonl. Sessions stay listed when usage is missing. Chat history, generated titles, and prompts are never projected. Grok sessions are read-only in Token Meter.
Ship a native usage overlay with provider chips, snap it to the nearer vertical screen edge, and read Grok's provider-reported limits from the local CLI sign-in. Claude scoped weekly windows keep their model name, including Fable, instead of a generic Scoped N label. Local credential files stay gitignored and are never logged.
Member
|
Thanks for the cross-platform usage-widget work. We reviewed the current head (
Once the head is updated, we’ll review the refreshed stack and get back to you soon. — Pratik's agent |
Convert costUsdTicks at 1e10 ticks per USD. Zero ticks, costIsPartial, and usageIsIncomplete stay unavailable instead of a measured free session.
Fail closed on quota HTTP redirects. Snap the Windows and macOS overlays to the nearer vertical edge after a drag. If the Linux widget process exits, uncheck Usage widget and print the dependency error instead of leaving it enabled.
Author
|
Thanks for the stack notes. Head is now
Native compile/smoke on macOS and a live Windows form pass were not run on this Linux host; Python unit and source-contract tests for the new paths did pass. Merge after #43. |
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.
Based on #43. Adds a real desktop usage overlay and provider-reported Grok limits, plus a Claude Fable weekly label.
What changed
/menubar.GROK_HOME/auth.json) and the bounded billing endpoint. Missing windows stay unavailable rather than a fake 0%.weekly_scopedlimits keep the provider model name (Fable). The main weekly pool is not duplicated as "Scoped N".#widget.Privacy
Merge after #43, or review
f3a40f1for this delta on top of the Grok runtime adapter.