t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Antigravity shows misleading "Needs attention" warning when binary is healthy but Google auth is unchecked

Open criticalstrike18 opened this issue 2 months ago • 6 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Configure Antigravity with a working binary (either managed or custom binaryPath).
  2. Navigate to Settings -> Providers -> Antigravity.
  3. Observe provider status after the health check completes.

Expected behavior

When the binary passes ACP initialize(), the status should show a neutral/informational state (e.g. "Installed · Sign-in required" or a blue/gray badge) with an explicit "Sign in with Google" button directly in the provider settings card.

Actual behavior

The UI displays an amber warning badge: Needs attention · Antigravity is installed. Google account access is not checked yet.

Because this is styled as an alert/warning with "Needs attention", users assume the installation or health check failed and spend time unnecessarily troubleshooting working setups. Furthermore, there is no action button in Settings to trigger sign-in; the user must know to open a chat and send a message with the model selected to initiate OAuth.

Impact

Minor bug or occasional failure

Version or commit

0.0.42 (and main)

Environment

Windows 11 x64, T3 Code Desktop 0.0.42

Logs or stack traces

// In AntigravityProvider.ts:
const authenticated = draft.auth.status === "authenticated";
const message = errorMessage ?? (authenticated ? void 0 : draft.auth.status === "unauthenticated" ? SIGN_IN_MESSAGE : AUTH_UNCHECKED_MESSAGE);
// Binary probe only calls initialize and does not check auth, leaving draft.auth.status unchecked and displaying AUTH_UNCHECKED_MESSAGE as a warning alert.

Workaround

Ignore the warning, open a new chat thread, select Antigravity, and send a message to trigger the Google OAuth browser login.

Suggested Fix

  1. Differentiate unauthenticated/unchecked state from actual errors: use a neutral status indicator rather than an amber "Needs attention" alert when errorMessage is undefined.
  2. Add a "Sign in with Google" action button directly in the Antigravity provider settings card so users can complete authentication without having to guess the chat workflow.

criticalstrike18 avatar Sep 20 '26 14:09 criticalstrike18

Triage

Confirmed. This is a leftover Settings UX bug, not a failed install or health check.

What is going on

Antigravity’s local health probe only calls ACP initialize(). That is intentional and test-locked (treats initialize as installation proof, not account or model discovery). A passed probe with auth.status still unknown publishes:

  • status: "warning"
  • message: "Antigravity is installed. Google account access is not checked yet." (AUTH_UNCHECKED_MESSAGE)

getProviderSummary then maps every warning to Needs attention, and the instance list/card shows the amber attention treatment. Chat already special-cases this (installed + warning + auth.unknown hides the provider banner). Settings and onboarding do not.

#10244 fixed the already signed-in after restart case by carrying a saved authenticated snapshot. It does not help first-time setup, a new instance, or any machine with no previous authenticated snapshot — those still hit this warning. #10143 would have fixed the Settings copy; it was closed as superseded by #10244, so the presentation leftover remains.

This is related to #10110, not a duplicate. That issue is the restart/persist path and is closed.

Sign-in button

A Sign in with Google action already exists in the Antigravity instance editor (ProviderSetupSection), once you select the provider. It is not on the list-row badge, and the idle “Sign in with your Google account.” helper is screen-reader only. Easy to miss if you only see Needs attention on the list, or if you do not scroll to the Google account row.

Workaround

Open Settings → Providers → Antigravity (the instance editor, not just the list) and use Sign in with Google. Refresh provider status also checks the account (refreshModels: true). Starting a chat with Antigravity selected still works because a real session authenticates.

Suggested fix

Do not change the periodic health probe to call start().

  1. Treat installed + warning + auth.unknown as informational in Settings (getProviderSummary) and onboarding (getOnboardingProviderState) — same predicate chat already uses. Prefer Installed · Sign-in required (or similar) over Needs attention when errorMessage is unset.
  2. Keep confirmed unauthenticated, missing-install, and real probe failures as they are.
  3. Keep the existing setup CTA; make sign-in the obvious next action on that card so users do not have to discover the chat OAuth path.

Accepting as a bug.

juliusmarminge avatar Sep 20 '26 15:09 juliusmarminge

I'd like to take this — I'll prepare a focused fix and regression coverage.

cestercian avatar Sep 21 '26 06:09 cestercian

stepping back — #12861 already covers this

cestercian avatar Sep 21 '26 09:09 cestercian

I'd like to take this. I'll keep it presentation-only, following the triage: Settings will read "Installed · Sign-in required" with no amber dot for an installed Antigravity with unchecked Google auth. Confirmed sign-out, probe failures, API-key and Agent Platform methods, and other providers stay as they are, and I'm not adding any new sign-in UI.

One question: the onboarding wizard only lists Codex and Claude, so Antigravity never reaches getOnboardingProviderState, and a signIn state there would open a login terminal that doesn't exist for it. I'm leaving it unchanged (onboarding already renders the summary headline). Is that OK?

fixfon avatar Oct 12 '26 10:10 fixfon

Following up on the onboarding question: #18623 leaves getOnboardingProviderState unchanged, since the wizard only lists Codex and Claude and onboarding already shows the new summary headline. If you'd rather have Antigravity handled there too, I can add it in a follow-up together with the sign-in CTA.

fixfon avatar Oct 14 '26 07:10 fixfon

[!NOTE] 🤖 Claude Opus 5.5 responding on behalf of Theo

Thanks for the report. One part of this is fixed on main in #18623. Please test on the nightly built from main on 2026-10-21, or on the next stable release. One part is still open: no Sign in with Google action on the provider card itself. If that part still matters to you, please open a new issue for that part only.

t3dotgg avatar Oct 21 '26 11:10 t3dotgg