feat(usage): Antigravity quota grouping and auto-ping scheduler - #82
Open
mahdiwafy wants to merge 4 commits into
Open
feat(usage): Antigravity quota grouping and auto-ping scheduler#82mahdiwafy wants to merge 4 commits into
mahdiwafy wants to merge 4 commits into
Conversation
Adds tracking-based weekly usage buckets alongside the existing 5H windows: - New antigravityWeeklyTracker module: counts request rows in usageHistory for the last 7 days, grouped into Gemini / Claude+GPT buckets - getAntigravityUsage accepts connectionId and attaches gemini_weekly + claude_gpt_weekly buckets with estimated totals (4000 req/week) - parseQuotaData forwards isWeekly flag; QuotaTable shows a 'Weekly' badge and tilde-prefixed reset countdown for weekly rows
…tdown - parseQuotaData skips raw_gemini/raw_claude internal payloads that were rendering as misleading 0/∞ rows (Gemini 3.5 Flash (High) / GPT-OSS) - Weekly reset now starts from each bucket's first use + 7 days, matching Antigravity's behavior where the weekly window countdown begins on first request (same principle as the 5H window)
mahdiwafy
force-pushed
the
pr/antigravity-quota-tracker
branch
from
July 31, 2026 03:09
b3b473a to
621afd5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactor Antigravity usage parsing to group models into quotas buckets (Gemini vs Claude/GPT) as enforced by the upstream API, and add an Auto-Ping scheduler to keep windows warm.
Changes
Quota Grouping:
open-sse/services/usage/google.jsno longer loops through 10 repeated models. It now parses the response and outputs two specific buckets:gemini_bucket: Represents the shared limits for all Gemini models.claude_gpt_bucket: Represents the shared limits for Claude and GPT-OSS models./dashboard/usageto show 2 progress bars instead of 10 repeated/misleading rows.Auto Ping Scheduler: Added
antigravityto the Auto Ping scheduler (src/shared/services/quotaAutoPing.js&config.js).gemini-3.5-flash-lowto immediately restart the quota window.Verification
npm run lint:undef— clean