3 Commits
Author SHA1 Message Date
Jason 997e78b565 feat(agy): show the bound account's quota on official cards
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.
2026-10-21 17:04:27 +08:00
Jason 1b4cd547c4 feat(agy): show the signed-in quota on the official card
- 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.
2026-10-21 07:26:26 +08:00
Jasonandajia1206 b667b00a5c feat(agy): show the model on cards and attribute session usage to it
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>
2026-10-20 23:58:50 +08:00