Skip to content

Antigravity card shows "Signed in" and a stale "Google sign-in failed" together after signing in another way #39430

Closed

Description

@juliusmarminge

Problem

The Antigravity provider card can say it is signed in and that sign-in failed, at the same time.

Reproduced

main @ 420d1b5, Linux x86_64 with no display, agy 1.5.12, web client.

  1. Add an Antigravity instance with sign-in method Google account and click Sign in. On a headless host it fails ([Bug]: Antigravity Sign in cannot finish with the native CLI 1.5.x: T3 never receives its Google link ("has not reached Google after 30 seconds") #36034), and the Account row shows "Google sign-in failed. Start sign-in again." with Retry sign-in.
  2. Sign the same instance in another way. I ran the CLI's own login against the instance profile: GEMINI_HOME=<profile> AGY_ACP_FORCE_FILE_STORAGE=1 agy acp --gemini-dir <profile> --app-data-dir antigravity-acp --login.
  3. Click Refresh provider status. The status becomes Authenticated · Google account and the Account row reads "Signed in.", but "Google sign-in failed. Start sign-in again." stays underneath it, next to Change account / Sign out.

The failed attempt's message outlives the sign-in state it describes. It goes away only after a new sign-in attempt in the UI.

Likely location

The provider auth flow state that the Settings → Providers Account row reads (the client's sign-in flow state for the instance, fed by ProviderAuthService). The last flow's failure is shown whenever it exists, without checking that the provider has since become authenticated.

Fixed looks like

Once the provider reports authenticated, a failure from an earlier sign-in attempt is no longer shown, on web and mobile. A new failure after that still shows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions