Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity 1.5 quota errors resume at the reset #39196

ClosedOmarAlex24(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/39196/headopened View on GitHub

Showing 2 changed files with 50 additions and 5 deletions.

x
0 of 2 viewed, 2 left
41 additions and 0 deletionsapps/server/src/provider/acp/AntigravityTurnOutcome.test.tsModified
View file
@@ -30,6 +30,34 @@
const RATE_LIMIT_ERROR = errorPayload(
"Error 429, Message: Resource has been exhausted (e.g. check quota)., Status: RESOURCE_EXHAUSTED, Details: [map[@type:type.googleapis.com/google.rpc.ErrorInfo domain:cloudcode-pa.googleapis.com reason:RATE_LIMIT_EXCEEDED] map[@type:type.googleapis.com/google.rpc.RetryInfo retryDelay:42s]]",
);
+// Antigravity 1.5 writes "STATUS (code NNN): message", protobuf bytes, then Google's JSON body.
+const JSON_QUOTA_ERROR = Buffer.concat([
+ Buffer.from([0x12, 0x86, 0x01]),
+ Buffer.from(
+ "RESOURCE_EXHAUSTED (code 429): Individual quota reached. Resets in 2h24m51s.\u001a«\tHTTP 429 Too Many Requests\n\n" +
+ JSON.stringify(
+ {
+ error: {
+ code: 429,
+ details: [
+ {
+ "@type": "type.googleapis.com/google.rpc.ErrorInfo",
+ metadata: {
+ quotaResetDelay: "2h24m51.361888584s",
+ quotaResetTimeStamp: "2026-11-19T18:33:55Z",
+ },
+ reason: "QUOTA_EXHAUSTED",
+ },
+ { "@type": "type.googleapis.com/google.rpc.RetryInfo", retryDelay: "8691.36s" },
+ ],
+ status: "RESOURCE_EXHAUSTED",
+ },
+ },
+ null,
+ 2,
+ ),