Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
40b79cc6-85da-46e9-a188-86e262a5b828
Files selected for processing: 17-
mobile/src/accounts/MobileAccountsScreen.tsxmobile/src/accounts/antigravity-account-section.tsxmobile/src/accounts/antigravity-account-state.tsmobile/src/accounts/claude-codex-account-section.tsxmobile/src/accounts/managed-data-account-section.tsxmobile/src/accounts/mobile-accounts-screen-grok-usage.test.tsxmobile/src/accounts/mobile-accounts-screen-provider-accounts.test.tsxmobile/src/accounts/mobile-accounts-screen-reset-credit.test.tsmobile/src/accounts/mobile-accounts-screen-styles.tsmobile/src/accounts/provider-usage-section.tsxmobile/src/components/AccountUsage.tsxmobile/src/components/AgentIcons.tsxmobile/src/components/account-usage-state.test.tsmobile/src/components/account-usage-state.tsmobile/src/components/accounts-snapshot.test.tsmobile/src/components/accounts-snapshot.tsmobile/src/transport/unvalidated-rpc-request-port-inventory.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
-
7d1718e to
39ab3da
Compare
|
@gsxdsm mind attaching some iamges? Will be easier to review! |
|
Thanks for the review. I will follow up with images. |
9cbe973 to
e21b538
Compare
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Ignore Antigravity selection results from an inactive… · antigravity-account-section.tsx:108-131
mobile/src/accounts/antigravity-account-section.tsx:108-131
Minor · Functional Correctness · Quick win Ignore Antigravity selection results from an inactive client.
The host-change reset clears the section, but
selectAccounthas no client or host identity check. A late response from host A can restore A’s accounts after the section switches to host B. Those rows remain selectable and use host B’s current client. Track the active client or host and ignore the response before updatingaccountsor callingonChanged().Suggested fix
-import { useEffect, useState } from 'react' +import { useEffect, useRef, useState } from 'react' ... const [supported, setSupported] = useState(false) const [accounts, setAccounts] = useState<AntigravityAccountState | null>(null) const [selectingId, setSelectingId] = useState<string | null>(null) + const activeClientRef = useRef<RpcClient | null>(client) + activeClientRef.current = client ... const response = await client.sendRequest('accounts.antigravitySelect', { target: HOST_TARGET, accountId }) + if (activeClientRef.current !== client) { + return + } if (!response.ok) { onNotice({ title, message: response.error.message }) return

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1923c8dd-61ff-47a9-a424-fd9654e7b0b5
Files selected for processing: 2-
mobile/src/accounts/mobile-accounts-screen-grok-usage.test.tsxmobile/src/accounts/mobile-accounts-screen-provider-accounts.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
6d82437 to
3666d66
Compare
Claude and Codex stay switchable. OpenCode and Devin profiles can be selected when the host lists them. Gemini, Antigravity, OpenCode Go, MiniMax, Grok, Cursor, and GLM Coding Plan show the usage desktop already reports. Hosts that omit those fields keep the previous screen.
ConfirmModal imports bottom-drawer/BottomDrawer. The old mock path no longer intercepts it, so these suites loaded reanimated.
3666d66 to
ad03c02
Compare
|
Thanks for working on this! #38187 just merged and shows usage on mobile for every provider the desktop tracks, so I'm closing this in favour of it. Your work here helped shape that change. |

ELI5
The phone Accounts screen now lists the same account types as the desktop app. You can switch Claude, Codex, OpenCode, and Devin on the phone. The other providers show how much usage is left. Adding or signing in still happens on the desktop.
What Changed
Before, mobile Accounts showed Claude, Codex, and a Grok usage bar. It now also shows OpenCode, Devin, Gemini, Antigravity, OpenCode Go, MiniMax, Cursor, and GLM Coding Plan when the connected desktop reports them.
OpenCode and Devin rows switch the active profile. Antigravity lists saved Google accounts only when the host supports native Antigravity accounts, and selecting one switches that saved account. The other new sections are read-only usage, with the same windows and pool names as desktop. Providers with nothing to show stay hidden. OpenCode Go shows all available session, weekly, and monthly windows; late snapshots from a previously viewed host are ignored. A desktop that does not send these fields still shows the previous screen.
Why
The phone was missing account types desktop Settings already supports. The phone reads the snapshot and account-switch calls the desktop already has, instead of keeping a second account store. Sign-in, key entry, and removal stay on the desktop, where those credentials are created.
Linked Issue
Fixes #36908
Visual Proof
No device screenshot in this PR. Render tests cover OpenCode selection, Gemini and GLM usage, Grok weekly and monthly copy, and Antigravity staying hidden until the host advertises native accounts.
Testing
pnpm exec vitest runon the accounts snapshot, usage selectors, and Accounts screen tests: 5 files, 56 tests passed. Not exercised on a device. Desktop macOS, Linux, Windows, and SSH behavior is unchanged. The phone reads the existing accounts snapshot, and it callsaccounts.selectDataplus the capability-gated Antigravity list and select.Review
Cross-platform: this is the React Native Accounts screen, including the web accounts route that mounts it. No new platform paths or shortcuts.
Remote and SSH: the phone talks to the connected host. Older hosts omit the new snapshot fields. Antigravity listing runs only when the host advertises
accounts.antigravity-native.v1.Agents: each desktop Accounts provider is represented. Kimi stays off this screen because desktop shows it in the status bar only.
Performance: one extra capability probe, and one Antigravity list when the host supports it. Usage sections render from the snapshot the screen already receives.
Security: the phone cannot add, edit, or remove credentials. Switching uses the existing accounts-admin calls.
UI: the new sections reuse the Accounts cards, usage bars, and theme tokens. Long pool names sit above the bar.
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)