Repository navigation
feat(grokbot): add the Grok Bot weekly quota provider - #109
Merged
Merged
Conversation
9 of 10 tasks
Add the grokbot (alias grok-bot) desktop provider reading weekly Grok Bot Plan usage and reset timestamps from the signed-in session via GetSandUsageStatus, with local persistence snapshot fallback when offline. Signed-off-by: dotredstone <[email protected]>
The adapter stripped three bytes and decrypted every token with the basic store's fixed key. A Grok Bot install on a desktop with a Secret Service keeps its key in the keyring (safeStorage v11), so decryption failed and the card asked the user to sign in again, while readiness reported Ready because a token was present. Read the safeStorage prefix first. A v10 token is decrypted as before; a v11 session is never sent anywhere: the card serves the app's own saved reading when there is one, otherwise it says to start Grok Bot with --password-store=basic, and readiness reports the same. A token that is not a safeStorage blob is neither decrypted nor ready. Document GROKBOT_CONFIG_DIR and GROKBOT_API_URL, add a provider section and a troubleshooting entry, and keep only the Grok Bot entry in the CHANGELOG: the other bullets of the original change belong to their own pull requests. Signed-off-by: Bernardo Pinto Gomes <[email protected]>
Signed-off-by: Bernardo Pinto Gomes <[email protected]>
Signed-off-by: Bernardo Pinto Gomes <[email protected]>
bernardopg
force-pushed
the
feat/grokbot-provider
branch
from
November 8, 2026 19:03
87373fd to
654ac42
Compare
5 of 10 tasks
gtheys
pushed a commit
to gtheys/AiOverviewControl
that referenced
this pull request
Nov 12, 2026
Generated with scripts/render-contributors. The contributors API lists alvorithm already but lags behind on DotRedstone, whose commits from bernardopg#108 and bernardopg#109 resolve to the account; that login was passed as a one-off pinned entry for this run. The grid is append-only, so later renders keep both entries without a change to PINNED. Signed-off-by: Bernardo Pinto Gomes <[email protected]>
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.
Summary
Split out of #101: keeps @DotRedstone's Grok Bot adapter commit, with one follow-up commit on top.
The new
grokbotprovider (aliasgrok-bot) reads the weekly Grok Bot Plan pool and its reset time from the signed-in Grok Bot desktop app (GetSandUsageStatus). When a request fails, it falls back to the app's own persisted reading. The original commit includes the logo, all five locales, readiness, the provider matrix, CI registration andtests/test-grokbot.sh.fix(grokbot): handle keyring-backed sessions and document the adapter fixes:
v11). Decryption failed and the card asked to sign in again, while readiness reported Ready because a token was present. The adapter now reads the prefix first:v10token is decrypted as before;v11session is never sent anywhere: the card serves the app's own saved reading (which needs no token) when there is one, otherwise it says to start Grok Bot with--password-store=basic, and readiness reports the same;GROKBOT_CONFIG_DIRandGROKBOT_API_URLare documented inconfiguration.md. The latter receives the session token, so the docs say so. Also new: aproviders.mdsection (credentials, endpoint, offline behaviour, stability) and a troubleshooting entry.I have no Grok Bot install here, so the live endpoint is covered only by the offline fixtures. Those fixtures now also cover
v11with and without a saved reading, readiness forv11, and an unknown token format.Related issues
Part of #101.
Type of change
Checklist
plugin.json.versionandCHANGELOG.mdare consistent (not release-bearing;## Unreleasedbullet)i18n/en.jsonkeys have translations in every localegit commit -s) under the DCOLocal gates:
check-metadata,check-changelog,check-dco,bash -n,shellcheck -S warning,qmllint,actionlint,gitleaks, everytests/test-*.sh(including the native widget runtime on Wayland), andAIOC_COVERAGE_MIN=95 scripts/coverage.