Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): each Antigravity Google sign-in stays in its own instance #39485

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/39485/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 31 additions and 2 deletions (loading 2).

x
0 of 5 viewed, 5 left
8 additions and 0 deletionsapps/server/src/provider/antigravityAuthSupport.test.tsModified
View file
@@ -99,6 +99,7 @@
HOME: "/home/developer",
PATH: "/usr/bin",
CUSTOM_SETTING: "keep-this",
+ SSH_CONNECTION: "127.0.0.1 0 127.0.0.1 0",
GEMINI_HOME: profile.geminiHome,
AGY_ACP_FORCE_FILE_STORAGE: "1",
AGY_CLI_DISABLE_AUTO_UPDATE: "1",
@@ -148,6 +149,13 @@
});
expect(business.GEMINI_API_KEY).toBeUndefined();
expect(business.GOOGLE_API_KEY).toBeUndefined();
+​
+ // Only the Google account method has the `--login` sign-in that works without the keyring.
+ for (const env of [geminiKey, vertexKey, business]) expect(env.SSH_CONNECTION).toBeUndefined();
+ expect(
+ spawnFor({ authMethod: "oauth-personal", apiKey: "", gcpProject: "", gcpLocation: "" })
+ .SSH_CONNECTION,
+ ).toBe("127.0.0.1 0 127.0.0.1 0");
});
​
it("isolates TEMP and TMP to the profile directory on Windows", () => {
5 additions and 0 deletionsapps/server/src/provider/antigravityAuthSupport.tsModified
View file
@@ -227,6 +227,11 @@
baseEnv.SSL_CERT_DIR === undefined
? { SSL_CERT_FILE: profile.caBundlePath }