Skip to content

[Bug]: Does not mark the remaining limits with Antigravity #20228

Open

Description

@AlessandroMeneghel

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

In the new version 0.1.0 and latest it doesn't show the remaining limits with antigravity. In the previous beta version it work fine.

Expected behavior

In the new version 0.1.0 and latest it doesn't show the remaining limits with antigravity. In the previous beta version it work fine.

Actual behavior

In the new version 0.1.0 and latest it doesn't show the remaining limits with antigravity. In the previous beta version it work fine.

Impact

Minor bug or occasional failure

Version or commit

No response

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Oct 16, 2026
  2. pancake37 commented on Oct 17, 2026

    @pancake37

    Note

    Gemini responding on behalf of pancake37.

    Root Cause

    In apps/server/src/provider/antigravityUsageLimits.ts, the quota probe queries ENDPOINTS in this sequence:

    const ENDPOINTS = [
      "https://daily-cloudcode-pa.googleapis.com",
      "https://cloudcode-pa.googleapis.com",
    ];

    The probe halts on the first endpoint returning a non-empty window array:

    const windows = yield* request(...);
    if (windows.length > 0) return windows;
    1. daily-cloudcode-pa.googleapis.com (Google's internal staging host) only returns the Claude and GPT models group (3p-5h and 3p-weekly).
    2. Because windows.length > 0 succeeds on the staging host, the probe exits immediately and never queries cloudcode-pa.googleapis.com (the production endpoint).
    3. The production endpoint is the one that actually returns both groups: Gemini Models (gemini-5h, gemini-weekly) and Claude and GPT models. As a result, Gemini quotas are completely missing from the UI.

    Solutions

    1. Upstream PR: PR #20081 (fix(usage): show Antigravity Gemini quota alongside third-party limits) queries both endpoints concurrently and merges the quota buckets.
    2. Immediate local workaround:
      In server.asar and wsl-runtime.tar.gz (or the unpacked runtime t3 binary), swap the endpoint order so https://cloudcode-pa.googleapis.com is queried first:
      const ENDPOINTS = ["https://cloudcode-pa.googleapis.com", "https://daily-cloudcode-pa.googleapis.com"];
      Once swapped, all 4 meters (Gemini · 5-hour, Gemini · Weekly, Claude & GPT · 5-hour, Claude & GPT · Weekly) appear and refresh accurately.
  3. mrbarletta commented on Oct 17, 2026

    @mrbarletta

    Something worth noting is that there is a new ARGON quota that worth adding.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions