Repository navigation
fix(web): count antigravity accounts in account list - #870
Merged
Merged
Conversation
The dashboard renders the Antigravity accounts in a section of their own next to the Codex account list, but the list only ever looked at its own pool. A setup whose only connected account was an Antigravity account therefore still showed the "no accounts connected" empty state and a 0 / 0 header count while the Antigravity card was on screen. Feed the Antigravity pool into the account list so the header totals and the "all" filter count cover both pools, and withhold the empty state while an Antigravity account is connected. Status filters stay Codex-scoped because Antigravity accounts are never hidden by a Codex status.
This was referenced Oct 21, 2026
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.
Problem
The dashboard account section rendered 「暂无已连接的账户」 and a
0 / 0header count while an Antigravity account was connected and its card was on screen.App.tsxrenders<AntigravityAccounts>as a section of its own next to<AccountList>, butAccountListonly ever inspected its own Codex pool: the empty state was driven bydisplayAccounts.length === 0, and the header / filter counts byaccounts.length.Change
AccountListnow accepts the Antigravity pool (antigravityAccounts?) and folds it into the header totals and the "all" filter count.noAccountsempty state is withheld while an Antigravity account exists. A Codex status filter that matches nothing keeps its ownnoMatchingAccountshint.App.tsxpassesaccounts.antigravityAccountsinto the list.Verification
14 files / 62 testspassed.tests/unit/web:12 files / 58 testspassed.AccountList.tsxandApp.tsxstashed, all four new tests fail; with the fix, all pass.vite buildsucceeds.tsc --noEmit -p web/tsconfig.jsonreports only the two pre-existing"confirm"translation-key errors (web/src/components/AddAccount.tsx:356,web/src/components/AntigravityAccounts.tsx:90), both untouched by this PR.Notes
PR #868 (
feat-antigravity-oauth-accounts) relocates these same Antigravity cards intoAccountList. This fix targets currentdevand is deliberately small; whichever of the two lands second needs a small reconcile inAccountList.tsx.