Repository navigation
Antigravity: a signed-out agy no longer opens Google's sign-in page on launch - #1189
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agy --print /usagesigns 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.Evidence
agy 1.5.15, throwaway
HOME, a logging stub foropenfirst onPATH:agy --print /usagesigned out →open https://accounts.google.com/o/oauth2/auth?..., thenWaiting for authentication (timeout 60s).... Same withGEMINI_API_KEYset, including afteragy acphad chosengemini-api-key.agy acpsession/newsigned out →Authentication required, noopen.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,opennever called.cargo clippy -p agent -p tcode-services --all-targets -D warningsandcargo fmt --checkpass.Merge Danger
Door: two-way
Blast Radius: Antigravity usage
A profile with both
GEMINI_API_KEYand a Google sign-in no longer shows Antigravity usage. Each usage read starts one extra shortagy acp.AGY_ADC_AUTHprofiles still run the print-mode read (not tested here).