Skip to content

fix(antigravity): route to daily-cloudcode host first to avoid 429 - #99

Open
mahdiwafy wants to merge 1 commit into
Vanszs:mainfrom
mahdiwafy:pr/antigravity-daily-host
Open

fix(antigravity): route to daily-cloudcode host first to avoid 429#99
mahdiwafy wants to merge 1 commit into
Vanszs:mainfrom
mahdiwafy:pr/antigravity-daily-host

Conversation

@mahdiwafy

@mahdiwafy mahdiwafy commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • Prepend https://daily-cloudcode-pa.googleapis.com to Antigravity baseUrls (production host stays as fallback).
  • Gemini 3.6 Flash is only served from the daily Cloud Code host today.

Why

The production host (cloudcode-pa.googleapis.com) returns HTTP 429 RESOURCE_EXHAUSTED for the same OAuth accounts that work fine on daily-cloudcode-pa.googleapis.com — Google keeps a separate quota bucket per host. Requests routed to the exhausted bucket fail for every model.

Repro (same OAuth token, same account):

  • https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent429
  • https://daily-cloudcode-pa.googleapis.com/v1internal:streamGenerateContent200

Test Plan

  • Verified 9Router (already on this ordering) returns 200 for ag/gemini-3.6-flash-high
  • Patching the same ordering into a 0.9.99 VansRouter bundle + clearing stale modelLock DB rows turned ag/gemini-3.6-flash-high / ag/gemini-3.6-flash-medium / ag/gemini-3.6-flash-low / ag/gemini-3.1-pro-low from 429 → 200 (live test)
  • CI passes

Gemini 3.6 Flash is only served from the daily Cloud Code host today.
The production host (cloudcode-pa.googleapis.com) returns HTTP 429
RESOURCE_EXHAUSTED for the same OAuth accounts that work fine on
daily-cloudcode-pa.googleapis.com, because Google maintains a separate
quota bucket per host.

Prepend the daily host to baseUrls (production stays as fallback for
older models), so requests avoid the exhausted quota bucket.
@Vanszs
Vanszs requested a lite review from Copilot August 12, 2026 16:01
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