Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): show Gemini and Gemini Argon Antigravity usage windows #24801

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

Showing 2 changed files with 39 additions and 8 deletions.

x
0 of 2 viewed, 2 left
31 additions and 2 deletionsapps/server/src/provider/antigravityUsageLimits.test.tsModified
View file
@@ -79,14 +79,14 @@
}),
);
if (!options.missingToken) yield* writeToken(options.refreshToken ?? "refresh-a");
- const requests: Array<{ url: string; body: string }> = [];
+ const requests: Array<{ url: string; body: string; userAgent?: string }> = [];
const http = HttpClient.make((request, url, _signal, fiber) =>
Effect.sync(() => {
const init = Context.getOrUndefined(fiber.context, FetchHttpClient.RequestInit);
expect(init?.redirect).toBe("manual");
const body =
request.body._tag === "Uint8Array" ? new TextDecoder().decode(request.body.body) : "";
- requests.push({ url: request.url, body });
+ requests.push({ url: request.url, body, userAgent: request.headers["user-agent"] });
if (request.url.endsWith("/token")) {
expect(new URLSearchParams(body).get("grant_type")).toBe("refresh_token");
return HttpClientResponse.fromWeb(
@@ -125,6 +125,35 @@
});
​
describe("Antigravity subscription limits", () => {
+ it.effect("labels the Gemini Argon bucket separately and probes as the ACP client", () =>
+ Effect.gen(function* () {
+ const { probe, requests } = yield* fixture({
+ summary: {
+ groups: [
+ ...summary.groups,
+ {
+ displayName: "Gemini 4 Argon",