From 932e9f52fb5ec7eabbddbb3ddefb15674c19ed6e Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Fri, 9 Oct 2026 10:03:15 -0400 Subject: [PATCH 1/7] fix(server): show Antigravity's real sign-in failure reason Surface the bounded, sanitized reason from an authenticate rejection (e.g. ineligible account) in the Google account status row, and publish a rejected redirect URL's detail there too, instead of the generic "Google sign-in failed" text. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Tiger Kaovilai --- .../src/provider/AntigravityAuth.test.ts | 44 ++++++++++++++++++- apps/server/src/provider/AntigravityAuth.ts | 25 +++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/apps/server/src/provider/AntigravityAuth.test.ts b/apps/server/src/provider/AntigravityAuth.test.ts index 02e8b691a1334..d40d006119311 100644 --- a/apps/server/src/provider/AntigravityAuth.test.ts +++ b/apps/server/src/provider/AntigravityAuth.test.ts @@ -251,6 +251,46 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { }), ); + it.effect("shows Antigravity's onboarding rejection instead of the generic failure", () => + Effect.gen(function* () { + const harness = yield* makeHarness(); + yield* harness.auth.controller.start(owner); + yield* phase(harness.auth, "waiting"); + const reason = + "Onboarding failed: User is ineligible for free-tier. Reason: Your current account is not eligible for Antigravity. Try signing in with another personal Google account."; + yield* Deferred.fail( + harness.authenticated, + new AcpErrors.AcpRequestError({ + code: -32603, + errorMessage: reason, + method: "authenticate", + }), + ); + const failed = yield* phase(harness.auth, "failed"); + assert.equal(failed.message, reason); + yield* Deferred.await(harness.closed); + }), + ); + + it.effect("keeps the generic failure when an authenticate error could leak a URL", () => + Effect.gen(function* () { + const harness = yield* makeHarness(); + yield* harness.auth.controller.start(owner); + yield* phase(harness.auth, "waiting"); + yield* Deferred.fail( + harness.authenticated, + new AcpErrors.AcpRequestError({ + code: -32603, + errorMessage: `Onboarding failed ${callbackUrl}`, + method: "authenticate", + }), + ); + const failed = yield* phase(harness.auth, "failed"); + assert.equal(failed.message, "Google sign-in failed. Start sign-in again."); + yield* Deferred.await(harness.closed); + }), + ); + it.effect("does not call callback HTTP success a successful Google sign-in", () => Effect.gen(function* () { const harness = yield* makeHarness(); @@ -299,7 +339,9 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { assert.isTrue(Exit.isFailure(result)); } assert.equal(harness.forwarded(), 0); - assert.equal((yield* phase(harness.auth, "waiting")).authorizationUrl, authorizationUrl); + const waiting = yield* phase(harness.auth, "waiting"); + assert.equal(waiting.authorizationUrl, authorizationUrl); + assert.include(waiting.message ?? "", "redirect URL"); yield* harness.auth.controller.cancel(owner, state.flowId!); }), ); diff --git a/apps/server/src/provider/AntigravityAuth.ts b/apps/server/src/provider/AntigravityAuth.ts index ea1c8f7448cc2..d554df670f815 100644 --- a/apps/server/src/provider/AntigravityAuth.ts +++ b/apps/server/src/provider/AntigravityAuth.ts @@ -100,6 +100,23 @@ function visibleSnapshot(snapshot: AuthSnapshot, ownerSessionId: string): Provid }; } +const MAX_PROVIDER_REASON_LENGTH = 300; + +/** + * Antigravity rejections such as "account not eligible" carry an actionable, + * human-readable reason. Show it, but only when it is short and cannot leak a + * URL, token, or path into the UI. + */ +function providerReason(message: string): string | undefined { + const text = message + .replace(/\p{Cc}+/gu, " ") + .replace(/\s+/g, " ") + .trim(); + if (text.length === 0 || text.length > MAX_PROVIDER_REASON_LENGTH) return undefined; + if (/[a-z][a-z0-9+.-]*:\/\/|[\\/]\S|[A-Za-z0-9_-]{32,}/i.test(text)) return undefined; + return text; +} + function safeAuthFailure(cause: Cause.Cause, usesBrowser: boolean): string { const error = Cause.findErrorOption(cause); if (Option.isSome(error)) { @@ -119,6 +136,10 @@ function safeAuthFailure(cause: Cause.Cause, usesBrowser: boolean): str if (!usesBrowser && error.value.code === -32602) { return "Antigravity rejected the configured credentials. Check the provider settings."; } + if (error.value.method === "authenticate") { + const reason = providerReason(error.value.errorMessage); + if (reason) return reason; + } } } return usesBrowser @@ -398,6 +419,10 @@ export const makeAntigravityAuth = Effect.fn("makeAntigravityAuth")(function* < options.instanceId, flow.pending, input.callbackUrl, + ).pipe( + // Keep the status row in step with the RPC error so a rejected + // redirect URL is not hidden behind stale text. + Effect.tapError((error) => publishFlow(flow, { ...flow.state, message: error.detail })), ); flow.callbackSent = true; yield* publishFlow(flow, { From ad8d901b4ccab1023cb5ec504da20a26831959ad Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Fri, 9 Oct 2026 10:31:44 -0400 Subject: [PATCH 2/7] fix(server): allowlist Antigravity sign-in failure text Replace the URL/path/token denylist with a plain-prose allowlist so percent-encoded callbacks, email addresses and key=value fragments fall back to the generic message. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Tiger Kaovilai --- .../src/provider/AntigravityAuth.test.ts | 18 ++++++++++++++++++ apps/server/src/provider/AntigravityAuth.ts | 7 +++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/apps/server/src/provider/AntigravityAuth.test.ts b/apps/server/src/provider/AntigravityAuth.test.ts index d40d006119311..4f303c0ee5513 100644 --- a/apps/server/src/provider/AntigravityAuth.test.ts +++ b/apps/server/src/provider/AntigravityAuth.test.ts @@ -291,6 +291,24 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { }), ); + it.effect.each([ + ["a percent-encoded callback", "callback=http%3A%2F%2F127.0.0.1%3A51234%2F%3Fcode%3Dtest-code"], + ["an email address", "Account alice@example.com is not eligible"], + ])("keeps the generic failure when an authenticate error contains %s", ([, errorMessage]) => + Effect.gen(function* () { + const harness = yield* makeHarness(); + yield* harness.auth.controller.start(owner); + yield* phase(harness.auth, "waiting"); + yield* Deferred.fail( + harness.authenticated, + new AcpErrors.AcpRequestError({ code: -32603, errorMessage, method: "authenticate" }), + ); + const failed = yield* phase(harness.auth, "failed"); + assert.equal(failed.message, "Google sign-in failed. Start sign-in again."); + yield* Deferred.await(harness.closed); + }), + ); + it.effect("does not call callback HTTP success a successful Google sign-in", () => Effect.gen(function* () { const harness = yield* makeHarness(); diff --git a/apps/server/src/provider/AntigravityAuth.ts b/apps/server/src/provider/AntigravityAuth.ts index d554df670f815..c70babec88893 100644 --- a/apps/server/src/provider/AntigravityAuth.ts +++ b/apps/server/src/provider/AntigravityAuth.ts @@ -105,7 +105,7 @@ const MAX_PROVIDER_REASON_LENGTH = 300; /** * Antigravity rejections such as "account not eligible" carry an actionable, * human-readable reason. Show it, but only when it is short and cannot leak a - * URL, token, or path into the UI. + * URL, email, token, or path into the UI. */ function providerReason(message: string): string | undefined { const text = message @@ -113,7 +113,10 @@ function providerReason(message: string): string | undefined { .replace(/\s+/g, " ") .trim(); if (text.length === 0 || text.length > MAX_PROVIDER_REASON_LENGTH) return undefined; - if (/[a-z][a-z0-9+.-]*:\/\/|[\\/]\S|[A-Za-z0-9_-]{32,}/i.test(text)) return undefined; + // Allowlist plain prose. This excludes URLs (encoded or not), paths, emails, + // and key=value fragments without enumerating each leak shape. + if (!/^[\p{L}\p{N} .,:;'"()!?-]+$/u.test(text)) return undefined; + if (/[\p{L}\p{N}]{32,}/u.test(text)) return undefined; return text; } From 9dd7772a5c5bd802c23a712f81e0b2c68950c93d Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Fri, 9 Oct 2026 10:43:16 -0400 Subject: [PATCH 3/7] fix(server): require a letter in Antigravity failure reasons Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Tiger Kaovilai --- apps/server/src/provider/AntigravityAuth.test.ts | 2 ++ apps/server/src/provider/AntigravityAuth.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/server/src/provider/AntigravityAuth.test.ts b/apps/server/src/provider/AntigravityAuth.test.ts index 4f303c0ee5513..93f226a485aad 100644 --- a/apps/server/src/provider/AntigravityAuth.test.ts +++ b/apps/server/src/provider/AntigravityAuth.test.ts @@ -294,6 +294,8 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { it.effect.each([ ["a percent-encoded callback", "callback=http%3A%2F%2F127.0.0.1%3A51234%2F%3Fcode%3Dtest-code"], ["an email address", "Account alice@example.com is not eligible"], + ["a key=value fragment", "reason=invalid"], + ["only digits and punctuation", "555-123-4567"], ])("keeps the generic failure when an authenticate error contains %s", ([, errorMessage]) => Effect.gen(function* () { const harness = yield* makeHarness(); diff --git a/apps/server/src/provider/AntigravityAuth.ts b/apps/server/src/provider/AntigravityAuth.ts index c70babec88893..f862da514fdab 100644 --- a/apps/server/src/provider/AntigravityAuth.ts +++ b/apps/server/src/provider/AntigravityAuth.ts @@ -113,6 +113,7 @@ function providerReason(message: string): string | undefined { .replace(/\s+/g, " ") .trim(); if (text.length === 0 || text.length > MAX_PROVIDER_REASON_LENGTH) return undefined; + if (!/\p{L}/u.test(text)) return undefined; // Allowlist plain prose. This excludes URLs (encoded or not), paths, emails, // and key=value fragments without enumerating each leak shape. if (!/^[\p{L}\p{N} .,:;'"()!?-]+$/u.test(text)) return undefined; From f7a2548cc6bc2d689a05cd287c8150b2942effff Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Sun, 11 Oct 2026 07:23:18 -0400 Subject: [PATCH 4/7] fix(server): tighten Antigravity failure reason filter and drop status-row claim Reject scheme-like (https:example.com) and hostname-like text, credential- shaped tokens split by hyphens, and mask a failed flow's reason from other sessions. Stop publishing a rejected redirect URL's detail to the waiting status: the web row only renders messages in the failed phase, so that change did not do what it claimed. The RPC error still reports it. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Tiger Kaovilai --- .../src/provider/AntigravityAuth.test.ts | 9 ++++++--- apps/server/src/provider/AntigravityAuth.ts | 18 ++++++++++++------ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/apps/server/src/provider/AntigravityAuth.test.ts b/apps/server/src/provider/AntigravityAuth.test.ts index 93f226a485aad..f9c50a5098665 100644 --- a/apps/server/src/provider/AntigravityAuth.test.ts +++ b/apps/server/src/provider/AntigravityAuth.test.ts @@ -268,6 +268,8 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { ); const failed = yield* phase(harness.auth, "failed"); assert.equal(failed.message, reason); + const other = yield* phase(harness.auth, "failed", otherOwner); + assert.equal(other.message, "Sign-in failed in another client."); yield* Deferred.await(harness.closed); }), ); @@ -296,6 +298,9 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { ["an email address", "Account alice@example.com is not eligible"], ["a key=value fragment", "reason=invalid"], ["only digits and punctuation", "555-123-4567"], + ["a scheme without slashes", "Onboarding failed: See https:example.com for help."], + ["a bare hostname", "Onboarding failed. Visit support.google.com for help."], + ["a hyphenated credential", "Invalid token sk-123456789012345678901234567890"], ])("keeps the generic failure when an authenticate error contains %s", ([, errorMessage]) => Effect.gen(function* () { const harness = yield* makeHarness(); @@ -359,9 +364,7 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { assert.isTrue(Exit.isFailure(result)); } assert.equal(harness.forwarded(), 0); - const waiting = yield* phase(harness.auth, "waiting"); - assert.equal(waiting.authorizationUrl, authorizationUrl); - assert.include(waiting.message ?? "", "redirect URL"); + assert.equal((yield* phase(harness.auth, "waiting")).authorizationUrl, authorizationUrl); yield* harness.auth.controller.cancel(owner, state.flowId!); }), ); diff --git a/apps/server/src/provider/AntigravityAuth.ts b/apps/server/src/provider/AntigravityAuth.ts index f862da514fdab..1c246f417839a 100644 --- a/apps/server/src/provider/AntigravityAuth.ts +++ b/apps/server/src/provider/AntigravityAuth.ts @@ -96,7 +96,11 @@ function visibleSnapshot(snapshot: AuthSnapshot, ownerSessionId: string): Provid authorizationUrl: null, interaction: null, expiresAt: null, - ...(busy ? { message: "Sign-in is in progress in another client." } : {}), + ...(busy + ? { message: "Sign-in is in progress in another client." } + : snapshot.state.phase === "failed" + ? { message: "Sign-in failed in another client." } + : {}), }; } @@ -117,7 +121,13 @@ function providerReason(message: string): string | undefined { // Allowlist plain prose. This excludes URLs (encoded or not), paths, emails, // and key=value fragments without enumerating each leak shape. if (!/^[\p{L}\p{N} .,:;'"()!?-]+$/u.test(text)) return undefined; - if (/[\p{L}\p{N}]{32,}/u.test(text)) return undefined; + // Scheme-like ("https:example.com") and hostname-like ("support.google.com") + // runs pass the character allowlist but still name a location. Prose puts + // a space after "." and ":". + if (/[\p{L}\p{N}][.:][\p{L}\p{N}]/u.test(text)) return undefined; + // Credential-shaped runs: a long unbroken token, or a long digit run, even + // when hyphens split it ("sk-1234..."). + if (/\S{20,}/u.test(text) || /\p{N}{8,}/u.test(text)) return undefined; return text; } @@ -423,10 +433,6 @@ export const makeAntigravityAuth = Effect.fn("makeAntigravityAuth")(function* < options.instanceId, flow.pending, input.callbackUrl, - ).pipe( - // Keep the status row in step with the RPC error so a rejected - // redirect URL is not hidden behind stale text. - Effect.tapError((error) => publishFlow(flow, { ...flow.state, message: error.detail })), ); flow.callbackSent = true; yield* publishFlow(flow, { From 8109d9099e3823d2d45afd608dc4a09957f090c0 Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Tue, 13 Oct 2026 00:46:57 -0400 Subject: [PATCH 5/7] fix(server): show why a pasted Antigravity redirect URL was refused A rejected paste left the sign-in row unchanged; the reason only appeared in an alert that clears on the next command. Publish it as inputError on the waiting flow and render it in the status row, without ending the flow. Other sessions never see it. Signed-off-by: Tiger Kaovilai Co-Authored-By: Claude Code (model: Claude Sonnet 5.5) --- .../src/provider/AntigravityAuth.test.ts | 35 ++++++++++++------- apps/server/src/provider/AntigravityAuth.ts | 8 +++++ .../ProviderAuthenticationSection.tsx | 3 +- .../ProviderSetupSection.browser.test.tsx | 12 +++++++ packages/contracts/src/providerSetup.ts | 3 ++ 5 files changed, 47 insertions(+), 14 deletions(-) diff --git a/apps/server/src/provider/AntigravityAuth.test.ts b/apps/server/src/provider/AntigravityAuth.test.ts index f9c50a5098665..ac98682e68d0e 100644 --- a/apps/server/src/provider/AntigravityAuth.test.ts +++ b/apps/server/src/provider/AntigravityAuth.test.ts @@ -301,19 +301,21 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { ["a scheme without slashes", "Onboarding failed: See https:example.com for help."], ["a bare hostname", "Onboarding failed. Visit support.google.com for help."], ["a hyphenated credential", "Invalid token sk-123456789012345678901234567890"], - ])("keeps the generic failure when an authenticate error contains %s", ([, errorMessage]) => - Effect.gen(function* () { - const harness = yield* makeHarness(); - yield* harness.auth.controller.start(owner); - yield* phase(harness.auth, "waiting"); - yield* Deferred.fail( - harness.authenticated, - new AcpErrors.AcpRequestError({ code: -32603, errorMessage, method: "authenticate" }), - ); - const failed = yield* phase(harness.auth, "failed"); - assert.equal(failed.message, "Google sign-in failed. Start sign-in again."); - yield* Deferred.await(harness.closed); - }), + ] as const)( + "keeps the generic failure when an authenticate error contains %s", + ([, errorMessage]) => + Effect.gen(function* () { + const harness = yield* makeHarness(); + yield* harness.auth.controller.start(owner); + yield* phase(harness.auth, "waiting"); + yield* Deferred.fail( + harness.authenticated, + new AcpErrors.AcpRequestError({ code: -32603, errorMessage, method: "authenticate" }), + ); + const failed = yield* phase(harness.auth, "failed"); + assert.equal(failed.message, "Google sign-in failed. Start sign-in again."); + yield* Deferred.await(harness.closed); + }), ); it.effect("does not call callback HTTP success a successful Google sign-in", () => @@ -362,9 +364,16 @@ it.layer(NodeServices.layer)("AntigravityAuth", (it) => { .complete(owner, { flowId: state.flowId!, callbackUrl: invalidUrl }) .pipe(Effect.exit); assert.isTrue(Exit.isFailure(result)); + assert.equal( + (yield* phase(harness.auth, "waiting")).inputError, + "This redirect URL does not belong to the current sign-in.", + ); + assert.isNull((yield* phase(harness.auth, "waiting", otherOwner)).inputError); } assert.equal(harness.forwarded(), 0); assert.equal((yield* phase(harness.auth, "waiting")).authorizationUrl, authorizationUrl); + yield* harness.auth.controller.complete(owner, { flowId: state.flowId!, callbackUrl }); + assert.isNull((yield* phase(harness.auth, "verifying")).inputError); yield* harness.auth.controller.cancel(owner, state.flowId!); }), ); diff --git a/apps/server/src/provider/AntigravityAuth.ts b/apps/server/src/provider/AntigravityAuth.ts index 1c246f417839a..82aa51a0a4812 100644 --- a/apps/server/src/provider/AntigravityAuth.ts +++ b/apps/server/src/provider/AntigravityAuth.ts @@ -96,6 +96,7 @@ function visibleSnapshot(snapshot: AuthSnapshot, ownerSessionId: string): Provid authorizationUrl: null, interaction: null, expiresAt: null, + inputError: null, ...(busy ? { message: "Sign-in is in progress in another client." } : snapshot.state.phase === "failed" @@ -433,12 +434,19 @@ export const makeAntigravityAuth = Effect.fn("makeAntigravityAuth")(function* < options.instanceId, flow.pending, input.callbackUrl, + ).pipe( + // The flow keeps waiting for a correct paste, so show why this one + // was refused without ending it. The detail is a fixed message. + Effect.tapError((error) => + publishFlow(flow, { ...flow.state, inputError: error.detail }), + ), ); flow.callbackSent = true; yield* publishFlow(flow, { ...flow.state, phase: "verifying", authorizationUrl: null, + inputError: null, message: "Waiting for Google to finish sign-in.", }); const forwarding = yield* ( diff --git a/apps/web/src/components/settings/ProviderAuthenticationSection.tsx b/apps/web/src/components/settings/ProviderAuthenticationSection.tsx index 9e3037c79a48c..078cce689382b 100644 --- a/apps/web/src/components/settings/ProviderAuthenticationSection.tsx +++ b/apps/web/src/components/settings/ProviderAuthenticationSection.tsx @@ -90,7 +90,8 @@ export function ProviderAuthenticationSection({ : needsExternalSetup ? "No in-app sign-in advertised. Follow the provider's docs to finish setup." : `Sign in on ${environmentLabel}.`; - const statusMessage = auth?.phase === "failed" ? auth.message : null; + const statusMessage = + auth?.phase === "failed" ? auth.message : auth?.phase === "waiting" ? auth.inputError : null; const disabled = readOnly || pending || query.error !== null || isDiscovering; const draftId = `${auth?.flowId ?? ""}:${interaction?.id ?? ""}`; const values = draft.id === draftId ? draft.values : {}; diff --git a/apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx b/apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx index d65046fd2b9c8..ca13a36d6adcb 100644 --- a/apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx +++ b/apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx @@ -227,6 +227,18 @@ describe("Antigravity setup", () => { expect(occurrences("Signed in.")).toBe(1); }); + it("shows why a pasted redirect URL was refused while the flow keeps waiting", async () => { + const refused = "This redirect URL does not belong to the current sign-in."; + setup.auth = authState({ message: "Open the Google sign-in link.", inputError: refused }); + await renderSetup(); + expect(occurrences(refused)).toBe(1); + expect(occurrences("Open the Google sign-in link.")).toBe(0); + + setup.auth = authState({ message: "Open the Google sign-in link.", inputError: null }); + await renderSetup(); + expect(occurrences(refused)).toBe(0); + }); + it("offers sign-in again when credentials expire after a completed auth flow", async () => { setup.auth = authState({ phase: "succeeded", diff --git a/packages/contracts/src/providerSetup.ts b/packages/contracts/src/providerSetup.ts index 69394bed3c146..d97d24460b36f 100644 --- a/packages/contracts/src/providerSetup.ts +++ b/packages/contracts/src/providerSetup.ts @@ -130,6 +130,9 @@ export const ProviderAuthState = Schema.Struct({ authorizationUrl: Schema.NullOr(Schema.String), expiresAt: Schema.NullOr(IsoDateTime), message: Schema.NullOr(Schema.String), + // Why the last pasted redirect URL was rejected. The flow is still waiting, + // so this is not a failure and clears once a paste is accepted. + inputError: Schema.optionalKey(Schema.NullOr(Schema.String)), // Newer servers may add method types, interactions, or owners; older // clients drop what they cannot decode instead of rejecting the state. methods: Schema.optionalKey( From 89cb211f5e8187179f467a91997144f64967ee80 Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Tue, 13 Oct 2026 00:48:41 -0400 Subject: [PATCH 6/7] fix(server): clear a refused-paste message when the flow leaves waiting Signed-off-by: Tiger Kaovilai Co-Authored-By: Claude Code (model: Claude Sonnet 5.5) --- apps/server/src/provider/AntigravityAuth.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/server/src/provider/AntigravityAuth.ts b/apps/server/src/provider/AntigravityAuth.ts index 82aa51a0a4812..86dcd279f450a 100644 --- a/apps/server/src/provider/AntigravityAuth.ts +++ b/apps/server/src/provider/AntigravityAuth.ts @@ -262,6 +262,7 @@ export const makeAntigravityAuth = Effect.fn("makeAntigravityAuth")(function* < phase: Exit.isSuccess(result) ? "succeeded" : "failed", authorizationUrl: null, expiresAt: null, + inputError: null, message: Exit.isSuccess(result) ? usesBrowser ? "Signed in with Google." @@ -312,6 +313,7 @@ export const makeAntigravityAuth = Effect.fn("makeAntigravityAuth")(function* < ...flow.state, phase: "verifying", authorizationUrl: null, + inputError: null, message: "Checking Antigravity access and models.", }); }), @@ -342,6 +344,7 @@ export const makeAntigravityAuth = Effect.fn("makeAntigravityAuth")(function* < phase, authorizationUrl: null, expiresAt: null, + inputError: null, message, }); return true; @@ -495,6 +498,7 @@ export const makeAntigravityAuth = Effect.fn("makeAntigravityAuth")(function* < phase: "cancelled", authorizationUrl: null, expiresAt: null, + inputError: null, message: "Google sign-in was cancelled by sign-out.", }); } From 8b8e3ee5edc3cff22cf3e41114ecf2da6825028c Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Sat, 17 Oct 2026 05:57:02 -0400 Subject: [PATCH 7/7] test(web): re-render the setup row through publish() in the refused-paste test Signed-off-by: Tiger Kaovilai Co-Authored-By: Claude Code (model: Claude Sonnet 5.5) --- .../components/settings/ProviderSetupSection.browser.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx b/apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx index ca13a36d6adcb..be266d60ebdc1 100644 --- a/apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx +++ b/apps/web/src/components/settings/ProviderSetupSection.browser.test.tsx @@ -235,7 +235,7 @@ describe("Antigravity setup", () => { expect(occurrences("Open the Google sign-in link.")).toBe(0); setup.auth = authState({ message: "Open the Google sign-in link.", inputError: null }); - await renderSetup(); + await publish(); expect(occurrences(refused)).toBe(0); });