Files
Owlbay 77592e1423 feat(grokbuild): bind Grok Official cards to auth center xAI accounts (#9321)
* feat(grokbuild): bind Grok Official cards to auth center xAI accounts

Rebase PR #9321 onto main and register Grok managed accounts in AppSpec.
Preserve the account-switching fixes and verify account-user discovery.

* fix(grokbuild): keep transient xAI refresh failures retryable in the Grok fallback and switch

Follow #9526: the managed-account quota fallback now propagates a transient
refresh error instead of returning the Grok CLI's expired result, so the
frontend retries and keeps the last good value. Switching to a bound card
tells a temporary refresh failure apart from an account that needs to sign
in again. The classifier moves to XaiOAuthError::is_transient so both paths
share it.

* fix: drop login constants now owned by ManagedAccountSelect

* Merge origin/main into feat/grok-multi-account

Adapt to the DAO taking &AppType (#9640) and AppType parsing only
through FromStr (#9642). Also pass &AppType in the two billing
multiplier tests from #9656 that still used app id strings.

* fix(grokbuild): query the bound xAI account in the usage modal

* fix(grokbuild): refresh xAI account and Grok CLI quota caches after login writes

* fix(grokbuild): guard auth.json writes against changes made during the absorb refresh

* fix(grokbuild): take the xAI manager read lock for remove/logout and reword the quota fallback doc

* fix(grokbuild): show the bound xAI account in Grok Official tray subtitles
2026-11-23 13:43:35 +08:00
..