From fa47d7f9cb950dbcd75ad55217faecf15c5c5416 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 28 Oct 2026 08:54:00 +0000 Subject: [PATCH 1/2] test(server): reproduce stale Crashpad pipe leaking into Antigravity env (#26368) These tests reproduce #26368: an inherited CHROME_CRASHPAD_PIPE_NAME (and its lowercase Windows alias) passes through antigravityEnvironment into the ACP runtime and browser-preflight helper. Co-Authored-By: Claude Opus 5.5 --- apps/server/src/provider/antigravityAuthSupport.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/server/src/provider/antigravityAuthSupport.test.ts b/apps/server/src/provider/antigravityAuthSupport.test.ts index 9138a28dab5b3..2158501b58343 100644 --- a/apps/server/src/provider/antigravityAuthSupport.test.ts +++ b/apps/server/src/provider/antigravityAuthSupport.test.ts @@ -71,6 +71,8 @@ describe("Antigravity process environment", () => { browser: "another-real-browser", PYTHONUNBUFFERED: "0", ELECTRON_RUN_AS_NODE: "0", + CHROME_CRASHPAD_PIPE_NAME: "\\\\.\\pipe\\crashpad_50144_ZUJNJELFHHXPBIRT", + chrome_crashpad_pipe_name: "\\\\.\\pipe\\crashpad_stale_alias", CUSTOM_SETTING: "keep-this", }; const original = { ...baseEnv }; From b3dd8c84c6062b96b6cad3e74e0f0200acacad0b Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 28 Oct 2026 08:56:12 +0000 Subject: [PATCH 2/2] fix(server): Antigravity children no longer inherit a stale Crashpad pipe On Windows the server can inherit CHROME_CRASHPAD_PIPE_NAME from an updater or installer launch chain whose owner has exited. The Antigravity browser preflight helper (Electron run as Node) then logs a Crashpad CreateFile error to stderr, the exact-stderr check fails, and install reports that browser suppression could not be verified. Strip CHROME_CRASHPAD_PIPE_NAME (case-insensitively) from the Antigravity environment, which covers the preflight, the ACP runtime, and the sign-in BROWSER helper it spawns. Fixes pingdotgg/t3code#26368 Co-Authored-By: Claude Opus 5.5 --- apps/server/src/provider/antigravityAuthSupport.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/server/src/provider/antigravityAuthSupport.ts b/apps/server/src/provider/antigravityAuthSupport.ts index 5030b53005e89..c9ba794bfd6ef 100644 --- a/apps/server/src/provider/antigravityAuthSupport.ts +++ b/apps/server/src/provider/antigravityAuthSupport.ts @@ -76,6 +76,8 @@ const removedEnvironmentKeys = new Set([ "BROWSER", "PYTHONUNBUFFERED", "ELECTRON_RUN_AS_NODE", + // An inherited pipe whose owner exited makes Electron-as-Node print Crashpad errors to stderr. + "CHROME_CRASHPAD_PIPE_NAME", ]); export interface AntigravityProfile {