An official Antigravity card bound to an Auth Center account showed the
quota of whatever account agy was signed in with, which is a different
account until the card's terminal is opened. It now shows the bound
account's quota, shared with that account's row in the Auth Center, and
like Codex account cards it shows even when the card is not current.
Cards that follow agy's sign-in, and platforms that cannot switch
accounts, keep the signed-in quota.
- Ask agy's own /usage command (agy -p /usage --output-format json) instead of
reading credentials; it makes no model call and opens no conversation.
- Keep the Gemini group and the Claude/GPT group, each with its 5-hour and
weekly window, as four tiers; unknown buckets are skipped.
- On the card each group shows only its window with the least left, since
four tiers do not fit; the expanded view lists all four.
- A missing agy is treated as no login (nothing shown); a timeout propagates
so the last good value is kept; other failures do not echo agy's output.
Ported from #8608:
- Model discovery works before agy has written a settings.json; the
official login lives outside that file.
- Configurations imported from live are marked official: the key is never
on disk, so an import is always agy's own login.
- Antigravity provider cards show the configured model.
- Session usage rows take their model from the `Model Selection` step agy
injects at the start of a conversation, since responses carry no model.
Not ported: running `agy models` while importing on startup or when the form
opens. It takes several seconds on a signed-in machine and may prompt for
sign-in on one that never logged in; the Fetch Models button stays explicit.
Co-authored-by: ajia1206 <491387123@qq.com>