Repository navigation
Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces - #1462
Merged
Merged
Conversation
The app records no model id, only opaque sand-* aliases it never writes down, so grokbot-auto is a synthetic id aliased to xAI's current flagship rate. Every call that uses it is marked costIsEstimated.
Reads the transcript mirror the app keeps in its Electron userData directory as base32-named JSON slices, one session per bot, named from the roster slice. One call per requestId; a run the bot woke itself for carries no user message. The mirror has no tokens, no cost and no model id, so usage is estimated from message text.
It is its own product with its own store, now read by the grokbot provider.
…tput A `message` entry's direction is its `role`, not its kind. Role assistant is the bot's own text leaving for another bot (`toAgent`); counting it as input billed 48% of this corpus's input at the wrong rate and in the wrong bucket.
It reports cursor.com's monthly window, not the weekly Sand allowance, and the accounts cannot be shown to be the same.
The app's own "Weekly usage" reading is GetSandUsageStatus on Cursor's DashboardService. Authorise it with the Cursor IDE's unencrypted access token, which src/quota/cursor.ts already reads read-only, instead of decrypting Grok Bot's safeStorage copy of the same session. Only correct when the IDE is signed into the account Grok Bot uses; signed out reports the same not-signed-in state the Cursor reader does.
…allowance as terminal
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.
Adds xAI's Grok Bot desktop app (the Electron agent app built on Cursor's sand platform, mapped against 0.30.0) as a provider.
Sessions
Weekly allowance
codeburn quota), the desktop Plans screen, and the menubar provider catalog and Capacity Dock. All three decode the same live response to the same number.Verification
UI change: menubar Settings gains a Grok Bot row (installed only); Plans gains the weekly row. Screenshot of Plans: