Repository navigation
fix(antigravity): stop reading Antigravity usage, which runs agy outside ACP - #50137
Conversation
…ide ACP Orca read Antigravity quota by running the user's agy as `agy -p /usage --output-format json` every 15 minutes and on every refresh. agy supports outside clients only through ACP, and headless agy runs have been reported to get Google accounts flagged. Remove the fetcher, the per-account reading cache, the status-bar meter and toggle, and the usage readout in Settings > Accounts > Antigravity. Saved profiles and older clients that still list the Antigravity status-bar item, or older vaults that hold cached readings, load with those values dropped; older hosts' Antigravity usage is ignored on mobile.
…op grouped-pool display Older web clients pass rateLimits.antigravityAccounts straight to their Antigravity menu, so the host keeps publishing an empty list. Grouped usage pools were fed only by agy's readings; remove that display path.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…e was removed Upstream stablyai#50137 dropped usageMetadata.account; history still splits accounts by readingAccount, then authFailureAccount, then Grok's provenance email. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ved its reads Upstream stablyai#50137 removed Antigravity usage; saved Antigravity entries are ignored on load. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merges stablyai/orca 7030f25 (320 commits) into fork main 3e499a0. Conflict resolutions: - Antigravity usage (stablyai#50137): upstream stops reading agy usage for account safety. Carried into the fork's per-account status bar: dropped the Antigravity usage menu, accounts prop and checked-item setup flag from AccountUsageDetailsMenu, StatusBarUsageArea, the controller and provider visibility (and its fork-retained test); the omp slot stays, including in the rate-limit full cycle and the usage-tracking doc. - Lazy Zod schemas (stablyai#49897): took upstream's lazyZodSchema wrapping and kept the fork's ProjectGroupUpdate.claudeAccountId, the omp status-bar item and _ompStatusBarDefaultAdded, and the federated release receipt's currentOwnerDispatchId/terminalReleaseState. Fork-only omp usage and AccountHome schemas are now lazy too; baseline pruned. Feature-interaction schemas stay in the fork's feature-interaction-params.ts, now lazy too. - Git graph: openGitGraph keeps the fork's options object (afterOpen) and takes upstream's placementWorkspaceId (stablyai#49629, stablyai#50017) as an option; callers and upstream's test use it. The fork's branches/tags dock passes the folder placement too (same bug as stablyai#49597), and it and the graph tab share a new useGitGraphRefsEpoch hook (keeps git-graph-tab under 400). Source control keeps the fork's branches/tags dock beside upstream's file-list header; fork git-graph rendering tests pass the new tabId. - Claude background tasks: upstream skips ambient artifact monitors; the fork's monitored-work rows and untyped-row handling stay. - Claude managed hook: local POSIX keeps the fork's runtime-home wrapped command; getPosixManagedEventHook takes the command, so upstream's PreToolUse timeout applies to both local and remote entries. - local-worker-start: keep the fork's reminted pane handle (#29) and add upstream's retained-chat assertStarting and launch warnings. - Mobile web bundle fence: keep the fork's 11.25 MiB (above upstream's 11 MiB + 16 KiB). - en.json: union of the fork's ProjectGroupSettingsDialog and upstream's AutoNameFailed keys. - Skills: regenerate bundled guides (upstream's shared CLI paragraph), union the add-only digest ledger, regenerate manifest and sources. - tracked-upstream-cache test: fixed far-future expiry instead of Date.now() for upstream's new wall-clock ratchet. Claude-Session: https://claude.ai/code/session_01BPjp5wba1X5fDbTK4YStHM
|
Follow-up on this change: in #51106 I suggested that Orca ask Google for approval the way pi did (earendil-works/pi#12614 uses an OAuth client Google approved for pi only), or the way T3 Code became a recognized client of |
|
Would be great to get approval and get this feature back |
|
很可惜,如果能以Google认可的方式重新恢复此功能就太好了,我们真的需要一个可视化的额度 |
…ity switch Hosts refused accounts.selectData, accounts.antigravityList and accounts.antigravitySelect from phones, so every tap in the new sections failed. Allow them (Antigravity on the chat's host) and advertise accounts.phone-provider-switch.v1; phones show the sections only on hosts that advertise it. Drop the per-account Antigravity usage, which hosts stopped sending in stablyai#50137, and word the saved rows as desktop Settings does: no "changed" note while agy's login is unread, and "New agy launches use this account" where launches restore the selection.
…e Accounts screen (#49584) * feat(mobile): switch OpenCode, Devin and Antigravity accounts from the Accounts screen Adds sections for managed OpenCode and Devin profiles (accounts.selectData) and for saved Antigravity accounts (accounts.antigravityList/Select, behind the host's antigravity accounts capability), each saved account with its own usage windows. Other agents rows draw OpenCode Go and MiniMax marks instead of their initials. The new RPCs go through typed operations, so the raw-request fence does not grow. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(mobile): don't apply a stale Antigravity list or meter A list that started before a select no longer overwrites that select. The live meter is shown on a row only when its reading names that account, or when an older host omitted the account. The MiniMax mark uses userSpaceOnUse so its gradient stays inside the icon. * fix(mobile): adopt themed styles after the upstream merge * fix(mobile): let the host take a phone's OpenCode, Devin and Antigravity switch Hosts refused accounts.selectData, accounts.antigravityList and accounts.antigravitySelect from phones, so every tap in the new sections failed. Allow them (Antigravity on the chat's host) and advertise accounts.phone-provider-switch.v1; phones show the sections only on hosts that advertise it. Drop the per-account Antigravity usage, which hosts stopped sending in #50137, and word the saved rows as desktop Settings does: no "changed" note while agy's login is unread, and "New agy launches use this account" where launches restore the selection. * fix(mobile): wait out a keychain prompt on an Antigravity switch, and warn as desktop does * fix(mobile): keep OpenCode and Devin after a Codex reset, and let agy's moved login be picked --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Kelvin Amoaba <[email protected]>
… its quota isn't shown (#52953) * feat(status-bar): keep an Antigravity row in the usage menu that says its quota isn't shown Orca stopped reading Antigravity quota in #50137, so the agent vanished from the usage menu and users reported it as a bug. When agy is detected on this device, the menu lists Antigravity after every meter with one muted line and an info tooltip explaining why. The row is not a provider reading: it never joins sorting, the status-bar chips or any percent logic, and it reads no Antigravity state. * fix(status-bar): keep the Antigravity tooltip inside the usage menu and fitted to its text * test(status-bar): drop the rendered Antigravity row test * fix(status-bar): use a normal-wrap tooltip variant and the stock menu-item shape for the Antigravity info icon
… its quota isn't shown (stablyai#52953) * feat(status-bar): keep an Antigravity row in the usage menu that says its quota isn't shown Orca stopped reading Antigravity quota in stablyai#50137, so the agent vanished from the usage menu and users reported it as a bug. When agy is detected on this device, the menu lists Antigravity after every meter with one muted line and an info tooltip explaining why. The row is not a provider reading: it never joins sorting, the status-bar chips or any percent logic, and it reads no Antigravity state. * fix(status-bar): keep the Antigravity tooltip inside the usage menu and fitted to its text * test(status-bar): drop the rendered Antigravity row test * fix(status-bar): use a normal-wrap tooltip variant and the stock menu-item shape for the Antigravity info icon (cherry picked from commit f313d12)
ELI5
Orca used to check how much Antigravity quota you had left by quietly running
agyin the background. Google only supports outside apps talking to agy through ACP, and there are reports that running agy this way can get a Google account flagged. Orca no longer does it, and the Antigravity usage meter is gone.What Changed
Before: every 15 minutes, and on every usage refresh, Orca ran the user's agy as
agy -p /usage --output-format json(on the host or in the selected WSL distro). It showed the result as an Antigravity chip in the status bar and saved each account's last reading in the Antigravity account vault for Settings → Accounts → Antigravity.After: nothing runs agy for usage. Gone:
agy --versionhost probe, the per-account usage recorder and vault cache, the credential-change listener that only existed to reset that reading, and Antigravity's slot in the rate-limit service (polling, refresh, retry-after hold, failure streaks).antigravityslot.Account switching, chats over ACP, hooks and status detection are unchanged.
Why
Google's Antigravity team has said outside clients are supported only through ACP, and there are reports that running
agy -pheadlessly or reading quota outside ACP can get accounts flagged. Orca never called Google's quota API directly, so the agy run was the only way to get the number. I also considered keeping the meter off by default behind a toggle, but it would still give users a switch that risks their account. Removing it, the same way Gemini CLI usage was removed, is the safe option.Linked Issue
N/A (maintainer change)
Visual Proof
N/A. This only removes things: the Antigravity status-bar chip and its menu, the "Antigravity Usage" toggles in the status-bar menu and in Settings → Appearance, and the usage button and reading lines on Antigravity rows in Settings → Accounts. Nothing new shows up.
Testing
pnpm check:changedpasses (format, lint, typecheck, affected tests, ratchets, localization catalogs). Ranservice-activation-refresh.test.ts,native-account-store.test.tsandantigravity-accounts.test.ts. I deleted the agy usage fetcher test along with the code it covered and added no new tests. I didn't run the app or agy, because agy would touch a real Google login.For mixed versions I checked the code paths by hand:
antigravity(orgemini) instatusBarItems: the zod schema accepts it and drops it, and so doesmigrateStatusBarItems._antigravityStatusBarDefaultAddedis still accepted.usagereadings: it still passes validation, the field is dropped on read, and the next write removes it.antigravityandantigravityAccountsfields, so the chip just disappears. An older web client passesantigravityAccountsstraight to its menu, so the host still sends an empty list.Performance
Less work than before. A full usage refresh no longer starts an agy process or reads/writes the encrypted Antigravity vault, and focusing the window no longer starts one either. Nothing new runs.
Risk
The riskiest part is mixed versions. An older desktop or web client that still has the Antigravity item checked, paired to an updated host, may show an Antigravity chip with no numbers. It doesn't crash, because the host still sends an empty
antigravityAccounts. Older hosts keep running agy for usage until they update. A plain revert brings the meter back. It won't bring back the cached per-account readings, since those are dropped from the vault on the next write.Level: Low
Review
One review round, by Codex and a Claude reviewer. Codex found one P1: an older web client reads
rateLimits.antigravityAccountswithout a guard. Fixed by having the host keep sending an empty list. The Claude reviewer found no P0 or P1. Its smaller points are fixed: the grouped-pool display that only agy fed is removed, the Antigravity accounts search no longer matches "usage", and a stale comment in the mobile schema is corrected.Agent skill upstream boundary
Notes
Security: this removes background agy runs that could get an account flagged. Cross-platform: the host and WSL usage paths are removed together. Remote and mobile: covered under Testing. Localization: unused English strings are removed, and the same keys are pruned from the other desktop locales. The usage-format placeholder now says "e.g. Cursor plan pools" under a new key, so it shows in English until it's translated.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)