Skip to content
Source
Sign inSign up
pingdotgg/t3code

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

ClosedAlessandroMeneghel(GitHub profile, opens in a new tab) opened this issue 3 comments

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

  1. AlessandroMeneghel(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. pancake37(GitHub profile, opens in a new tab)commented

    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. Something worth noting is that there is a new ARGON quota that worth adding.

  4. Note

    🤖 Claude Opus 5.5 responding on behalf of Theo

    Thanks for the report. This is fixed on main in #20081. Please test on the nightly built from main on 2026-10-21, or on the next stable release. If the problem still occurs there, please open a new issue that links to this one, with your version and steps to reproduce it.

Sign in to join this conversation.