@devries-cameron20 / t3code-1 / commits / 71e1bb2dcc
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(server): Antigravity sign-in names a runtime crash instead of blaming Google (#28355)

Julius Marminge committed Nov 19, 2026 at 15:18 UTC 71e1bb2dcc07cbea4f73ada217b536c193d42405
2 files changed +31
apps/server/src/provider/AntigravityAuth.test.ts
+20
@@ -264,6 +264,26 @@ it.layer(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer))("AntigravityAuth"
264 }),
265 );
266
267 + it.effect("says Antigravity exited when its process dies during sign-in", () =>
268 + Effect.gen(function* () {
269 + const harness = yield* makeHarness({ interactive: false });
270 + yield* harness.auth.controller.start(owner);
271 + yield* Deferred.await(harness.authenticateCalled);
272 + yield* Deferred.fail(
273 + harness.authenticated,
274 + new AcpErrors.AcpProcessExitedError({
275 + signal: "SIGILL",
276 + stderr: `runtime crashed ${callbackUrl}`,
277 + }),
278 + );
279 + const failed = yield* phase(harness.auth, "failed");
280 + assert.include(failed.message ?? "", "exited");
281 + assert.include(failed.message ?? "", "SIGILL");
282 + assert.notInclude(failed.message ?? "", "Google sign-in failed");
283 + assert.notInclude(failed.message ?? "", "runtime crashed");
284 + }),
285 + );
286 +
287 it.effect("tells the user when the agent cannot reach Google", () =>
288 Effect.gen(function* () {
289 const harness = yield* makeHarness({ interactive: false });
apps/server/src/provider/AntigravityAuth.ts
+11
@@ -47,6 +47,7 @@ const UNREACHABLE_MESSAGE =
47 const FORWARDING_FAILED_MESSAGE = "Could not deliver the sign-in response. Start sign-in again.";
48 const isSetupError = Schema.is(ProviderSetupError);
49 const isAcpRequestError = Schema.is(AcpErrors.AcpRequestError);
50 +const isAcpProcessExitedError = Schema.is(AcpErrors.AcpProcessExitedError);
51
52 interface AuthSnapshot {
53 readonly ownerSessionId: string | null;
@@ -120,6 +121,16 @@ function safeAuthFailure(cause: Cause.Cause<unknown>, usesBrowser: boolean): str
121 if (isSetupError(error.value)) {
122 return error.value.detail;
123 }
124 + if (isAcpProcessExitedError(error.value)) {
125 + const { code, signal } = error.value;
126 + const reason =
127 + signal !== undefined
128 + ? ` after signal ${signal}`
129 + : code !== undefined
130 + ? ` with code ${code}`
131 + : "";
132 + return `Antigravity exited unexpectedly${reason}. Start sign-in again.`;
133 + }
134 if (isAcpRequestError(error.value)) {
135 if (error.value.errorMessage.includes("SUBSCRIPTION_REQUIRED")) {
136 return "Google requires an eligible Antigravity subscription for this account.";