Skip to content

Commit bd9bb61

Browse files
fix(server): say Antigravity exited when its process dies during sign-in
When the Antigravity ACP process exits before it answers (for example the Linux binary dying with SIGILL), sign-in reported "Google sign-in failed" or a credentials error. safeAuthFailure now recognises AcpProcessExitedError and says Antigravity exited, naming the signal or exit code, without stderr. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 4978c9b commit bd9bb61

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎apps/server/src/provider/AntigravityAuth.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const UNREACHABLE_MESSAGE =
4141
const FORWARDING_FAILED_MESSAGE = "Could not deliver the sign-in response. Start sign-in again.";
4242
const isSetupError = Schema.is(ProviderSetupError);
4343
const isAcpRequestError = Schema.is(AcpErrors.AcpRequestError);
44+
const isAcpProcessExitedError = Schema.is(AcpErrors.AcpProcessExitedError);
4445

4546
interface AuthSnapshot {
4647
readonly ownerSessionId: string | null;
@@ -113,6 +114,12 @@ function safeAuthFailure(cause: Cause.Cause<unknown>, usesBrowser: boolean): str
113114
if (isSetupError(error.value)) {
114115
return error.value.detail;
115116
}
117+
if (isAcpProcessExitedError(error.value)) {
118+
const { code, signal } = error.value;
119+
const reason =
120+
signal !== undefined ? ` (${signal})` : code !== undefined ? ` with code ${code}` : "";
121+
return `Antigravity exited unexpectedly${reason}. Try again.`;
122+
}
116123
if (isAcpRequestError(error.value)) {
117124
if (error.value.errorMessage.includes("SUBSCRIPTION_REQUIRED")) {
118125
return "Google requires an eligible Antigravity subscription for this account.";

0 commit comments

Comments
 (0)