Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): exhausted Antigravity quotas show as used up instead of disappearing #29565

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

Showing 2 changed files with 21 additions and 6 deletions.

x
0 of 2 viewed, 2 left
16 additions and 3 deletionsapps/server/src/provider/antigravityUsageLimits.test.tsModified
View file
@@ -556,13 +556,17 @@
modelProvider: "MODEL_PROVIDER_GOOGLE",
quotaInfo: { remainingFraction: 0.6, resetTime: "2026-10-10T12:00:00Z" },
+ "gemini-c": {
+ modelProvider: "MODEL_PROVIDER_GOOGLE",
+ quotaInfo: { resetTime: "2026-10-10T12:00:00Z" },
+ },
"claude-a": { quotaInfo: { remainingFraction: 0.2 } },
});
const limits = yield* probe;
expect(limits.windows).toHaveLength(2);
- expect(limits.windows.find((window) => window.id === "gemini-quota")?.usedPercent).toBe(40);
+ expect(limits.windows.find((window) => window.id === "gemini-quota")?.usedPercent).toBe(100);
expect(
limits.windows.every(
(window) => window.kind === "other" && window.windowDurationMins === undefined,
@@ -571,13 +575,14 @@
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
​
- it.effect("skips disabled and missing fractions and clamps valid percentages", () =>
+ it.effect("skips disabled and unreadable buckets, reads exhausted ones, and clamps", () =>
Effect.gen(function* () {
const { probe } = yield* fixture({
summary: {
buckets: [