[Bug]: Antigravity 1.5 opens a Google sign-in tab in the browser for every background turn while signed out #39508
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Related, not duplicates:
- #36033 is one way to end up signed out: the 1.4.5 → 1.5.x update leaves the token in
acp_token.json, which 1.5.x never reads. It is closed as no-repro and covers headless or no-keyring Linux. - #36034, fixed by #38953, covers the Sign in button with the native CLI.
This report is about what happens afterwards on a machine with a display: T3's background runtimes open the browser on their own, repeatedly.
Area#
apps/server
Steps to reproduce#
- On macOS with a display, use the T3-managed Antigravity runtime 1.5.x (1.5.13 here) with an instance that has no Google sign-in the CLI can read. Either a fresh instance, or one signed in on the old 1.4.5 runtime (#36033).
- Start a turn on it, for example
t3 thread start <project> "say hi" --provider antigravity --model antigravity-default. Delegating a task to Antigravity or opening Settings → Providers (model refresh) also triggers it. - Watch the default browser.
Expected behavior#
A background runtime (turn start, delegated task, model refresh, text generation) never opens a browser. It reports at once that Google sign-in is needed, and the instance shows "Sign in with Google to use Antigravity." so the user signs in from Settings.
That is how T3 is built to behave. It replaces BROWSER with a helper that only reports the sign-in URL. When no sign-in flow is waiting for that URL (onAuthorizationUrl), T3 fails with "Sign in to Antigravity in Settings before you continue." instead of waiting (apps/server/src/provider/antigravityAuthSupport.ts). Tests lock this in: "ends normal work with a safe sign-in error instead of waiting for OAuth" and "rejects interactive sign-in during normal work" (antigravityAuthSupport.test.ts).
1.5.x skips that helper. #36034 asked to "Stop background 1.5.x launches from opening a browser". #36037 handled only the no-display case and named the remaining one as not addressed: "the case where a display exists and 1.5.x opens a browser on the server and waits". #38953 then closed #36034 by fixing the Settings sign-in only.
Actual behavior#
- Every runtime opens a sign-in tab. T3 starts
antigravity acp --gemini-dir <profile> --app-data-dir antigravity-acpand sendsinitialize, thenauthenticate {methodId: "oauth-personal"}beforesession/new. The 1.5.x CLI ignoresBROWSER, opens a Google sign-in tab in the default browser itself, and waits 300 s for a sign-in nobody is expecting. - The turn hangs, then retries. The turn stays
startinguntilSign-in timed out. The orchestration effect worker then retries the turn start up to 5 times, so one delegated task opened a new Chrome tab every 5 minutes for 25 minutes. - Model refresh hangs too. It waits 90 s and fails with the generic "Could not refresh Antigravity models. The previous model list is unchanged." instead of asking for sign-in.
Root cause: makeAntigravityAcpRuntime (apps/server/src/provider/acp/AntigravityAcpSupport.ts) sets authenticateEagerly: true for every runtime. The native CLI doesn't need that for Google. session/new uses the stored sign-in when one exists, and returns -32000 Authentication required in about 0.1 s when none does. That error is already one isAntigravitySignInRequiredError recognises.
Checked directly against the 1.5.13 CLI, launched the way T3 launches it:
| Profile | authenticate first | No authenticate |
|---|---|---|
| Signed out | Opens the system browser and waits | session/new → -32000 Authentication required in 0.1 s |
| Signed in | OK, then session/new OK | session/new OK in 1.2 s with the model list |
Impact#
Major degradation or frequent failure
Version or commit#
Reproduced on nightly v0.1.11-nightly.20261119.4954 and on main @ 9bb92a46dd. First seen on stable 0.1.10.
Environment#
macOS 27.2 arm64, T3 Code (Beta) desktop 0.1.10, plus an isolated dev server from the nightly and from main. T3-managed Antigravity runtime 1.5.13 (antigravity binary), Google account (oauth-personal), Chrome as the default browser.
Logs or stack traces#
# Antigravity runtime log for one turn start (main @ 9bb92a46dd, fresh instance)
ACP Request received: initialize
ACP Request received: authenticate
ACP authenticate: methodId="oauth-personal" meta=map[]
Opening browser for ACP sign-in (method=consumer, redirect=http://localhost:51648/auth/callback)
# ... 300 s later
authenticate("oauth-personal") failed: Sign-in timed out. Try again. (code -32603)
# Desktop 0.1.10 server trace, one delegated task to Antigravity
20:46:51 AcpAdapterV2.openSession 300.5s Failure ProviderAdapterOpenSessionError
20:51:52 AcpAdapterV2.openSession 300.2s Failure ProviderAdapterOpenSessionError
20:56:53 AcpAdapterV2.openSession 300.2s Failure ProviderAdapterOpenSessionError
21:01:54 AcpAdapterV2.openSession 300.4s Failure ProviderAdapterOpenSessionError
21:06:55 AcpAdapterV2.openSession 300.2s Failure ProviderAdapterOpenSessionError
Screenshots, recordings, or supporting files#
There is nothing useful to screenshot in T3: the turn just shows as starting, and a Google sign-in tab appears in Chrome each time. In the isolated repro, an open shim on the login shell's PATH recorded 1 browser launch per runtime start, each for https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=…&redirect_uri=http%3A%2F%2Flocalhost%3A<port>%2Fauth%2Fcallback….
Workaround#
Turn off the Antigravity provider until you can sign in. Completing one of the opened sign-in tabs before it times out should also work, since the CLI then has a stored sign-in. I didn't verify that.
smirea(GitHub profile, opens in a new tab) linked this to #39509
tanstack-source added labelsbug
juliusmarminge closed this
Sign in to join this conversation.
Fixed by #39485, now on main: Signed-out Antigravity Google-account turns and model refreshes now request sign-in promptly without opening browser tabs: SSH mode makes the CLI return its no-browser error immediately, which T3 already handles as sign-in-required.