fix(server): Antigravity usage limits no longer duplicate across linked environments #48198
OpenRadu028(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/48198/headopened View on GitHubtanstack-source added labelsbug
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -405,10 +406,20 @@405406 : `Antigravity did not respond to its local health check within ${timeoutMs / 1_000} seconds.`;406407 const supportsTextGeneration =407408 initialized !== undefined ? yield* options.supportsTextGeneration : false;409+ const accountEmail =410+ initialized !== undefined && options.readAccountEmail411+ ? yield* options.readAccountEmail412+ : undefined;408413 const updatedAt = DateTime.formatIso(yield* DateTime.now);409414 const applyCheck = (state: AntigravityProviderState) => {410415 if (state.authRevision !== before.authRevision) return state;411416 const { message: _previousMessage, ...draft } = state.draft;412417 const previousVersion =413418 initialized?.invalidatedVersion === draft.version ? null : draft.version;414419 const authenticated = draft.auth.status === "authenticated";420+ const { email: _previousEmail, ...authWithoutEmail } = draft.auth;421+ const auth =422+ initialized === undefined || draft.auth.status === "unauthenticated"423+ ? draft.auth424+ : accountEmail425+ ? { ...authWithoutEmail, email: accountEmail }
Raresgabriel(GitHub profile, opens in a new tab) approved these changes
Sign in to join this conversation.

macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes