Skip to content

fix(usage): Antigravity limits refresh on session start and show their age - #64

Open
tebiggs wants to merge 3 commits into
mainfrom
t3/antigravity-mobile-reporting
Open

tebiggs wants to merge 3 commits into
mainfrom
t3/antigravity-mobile-reporting

Conversation

@tebiggs

@tebiggs tebiggs commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Problem

Antigravity quota in Usage > Limits goes stale silently. The provider only re-read quota when no reading existed, so after the 1.5.x CLI sign-in expired and a later session renewed it, Limits kept showing the old reading with nothing saying how old it was. On mobile there was no indication a reading was not current.

Fix

  • Re-read Antigravity quota on every accepted session start, restarting a read that started before the sign-in renewal, and never publish quota onto a cleared (unauthenticated) account.
  • Label each pooled Limits section on web and mobile with the age of its stalest readable reading (checked just now, checked 1h 0m ago), using the checkedAt already in the contracts. The web label ticks on a minute clock; mobile already had one. Malformed timestamps are ignored instead of hiding the label.
  • Tests: the session-start re-read and the auth-required ordering are covered in AntigravityProvider.test.ts, and the age label (stalest, fresh, mixed malformed, all malformed) in usageLimits.test.ts.

Note: this does not change why Antigravity can be absent entirely on older servers. The CLI sign-in reading landed upstream in pingdotgg#38957 (19 Nov); servers older than that still need t3 update.

Work by muse-wonder-full-1.0 in Muse Code (T3 Code harness), with GPT-6.2-Sol review rounds.

tebiggs and others added 3 commits November 21, 2026 20:36
…r age

Starting an Antigravity session renews the 1.5.x CLI sign-in that the quota probe reads, but the provider only re-read quota when no reading existed, so Limits kept showing a stale reading without saying so. Re-read on every session start, and label each pooled Limits section on web and mobile with the age of its stalest reading.

Co-Authored-By: Claude <noreply@anthropic.com>
Restart an in-flight quota read on session start so the renewed sign-in is always re-read, ignore malformed checkedAt values when computing a pool's age, and tick the web age label on a minute clock since the page freezes its now between refreshes.

Co-Authored-By: Claude <noreply@anthropic.com>
A session start held at its capability check could finish after an auth-required clear and republish quota for the cleared account. Only refresh when the accepted state is authenticated, and drop quota writes that land on an unauthenticated draft.

Co-Authored-By: Claude <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant