Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): bump Antigravity quota probe UA to hub/2.24.0 so Gemini limits appear #28090

MergedLVC-Chakresh(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/28090/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 2 changed files with 32 additions and 6 deletions.

x
0 of 2 viewed, 2 left
23 additions and 0 deletionsapps/server/src/provider/antigravityUsageLimits.test.tsModified
View file
@@ -110,6 +110,7 @@
expect(JSON.parse(body)).toEqual({ project: "project-id" });
+ expect(request.headers["user-agent"]).toMatch(/^antigravity\/hub\/2\.24\.0 /);
return HttpClientResponse.fromWeb(
request,
request.url.endsWith(":retrieveUserQuotaSummary")
@@ -475,6 +476,28 @@
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
​
+ it.effect("labels Argon's weekly quota apart from the default Gemini weekly quota", () =>
+ Effect.gen(function* () {
+ const { probe } = yield* fixture({
+ summary: {
+ groups: [
+ ...summary.groups,
+ {
+ displayName: "Gemini 4 Argon",
+ buckets: [
+ { bucketId: "gemini-argon-wtu-weekly", window: "weekly", remainingFraction: 0.6 },
+ ],
+ },
+ ],
+ },
+ });
+ const limits = yield* probe;
+ const byId = new Map(limits.windows.map((window) => [window.id, window]));