Skip to content

Antigravity: a signed-out agy no longer opens Google's sign-in page on launch - #1189

Merged
Tryanks merged 1 commit into
mainfrom
fix/agy-usage-no-signin
Nov 23, 2026
Merged

Tryanks merged 1 commit into
mainfrom
fix/agy-usage-no-signin

Conversation

@Tryanks

@Tryanks Tryanks commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Summary

agy --print /usage signs in on its own when it finds no Google sign-in: it opens Google's sign-in page in the browser and waits 60s. Tcode ran it at every start (refresh_provider_usage) and after every sign-out (provider_account_changed), so a signed-out agy popped the sign-in page on launch.

 antigravity::read_usage
+  if GEMINI_API_KEY is set              # print mode still signs in with it
+    return "usage only for a Google sign-in"
+  if !signed_in()                       # ACP session/new: answers at once, never signs in
+    return signed_out()
   agy --print /usage --output-format json

Evidence

agy 1.5.15, throwaway HOME, a logging stub for open first on PATH:

  • Before: agy --print /usage signed out → open https://accounts.google.com/o/oauth2/auth?..., then Waiting for authentication (timeout 60s).... Same with GEMINI_API_KEY set, including after agy acp had chosen gemini-api-key. agy acp session/new signed out → Authentication required, no open.
    After: fetch_provider_usage(Antigravity) against the signed-out real profile, the empty profile, and the key-only profile: each returns its error in <1s, open never called.

cargo clippy -p agent -p tcode-services --all-targets -D warnings and cargo fmt --check pass.

Merge Danger

Door: two-way

Blast Radius: Antigravity usage

A profile with both GEMINI_API_KEY and a Google sign-in no longer shows Antigravity usage. Each usage read starts one extra short agy acp. AGY_ADC_AUTH profiles still run the print-mode read (not tested here).

…y opens no sign-in page

agy --print /usage starts its own Google sign-in when it finds none: it
opens the sign-in page in the browser and waits a minute. Tcode ran it on
every start and after every sign-out, so a signed-out agy popped the page.
The usage read now asks over ACP first, which never signs in, and is not
run while GEMINI_API_KEY is set, with which print mode still signs in.
@Tryanks
Tryanks merged commit 4881686 into main Nov 23, 2026
10 checks passed
@Tryanks
Tryanks deleted the fix/agy-usage-no-signin branch November 23, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant