Skip to content

Antigravity Google sign-in hangs on WSL: agy 1.5.11 opens the link with xdg-open, which can't run T3's BROWSER helper #38787

Closed as duplicate

Description

@brandon-barker

What happened

Windows desktop app with a WSL backend: added the Antigravity provider and clicked Sign in with Google. No browser opened and no link appeared; sign-in hung until it timed out. agy acp --login in a WSL terminal prints a link and signs in fine.

Diagnosis

T3 sets BROWSER to a quoted node helper ('…/node' '-e' '' '--' '%s') to capture the URL. That suits Python's webbrowser (shlex), but agy 1.5.11 runs xdg-open <url> (log: Opening browser for ACP sign-in; agy is left with a defunct xdg-open child).

xdg-utils 1.1.3 open_envvar splits BROWSER on : and whitespace with no quote handling, and runs printf on each argument (which would also turn the helper's \n into a real newline). The helper never runs; xdg-open exits 3.

agy then neither prints the URL nor returns No browser is available here, so authenticate stays pending and AntigravityAuth.runSignIn stays in starting until cancel or AUTH_TIMEOUT_MS (300s). Nothing on main (25 commits ahead of this build) touches this.

Possible fixes: a T3-owned xdg-open shim first on agy's PATH, or a BROWSER value xdg-open can run (helper script at a path with no spaces/colons/quotes, given as <path> %s).

Steps to reproduce

  1. WSL2 Ubuntu 24.04, xdg-utils 1.1.3, agy 1.5.11; Windows desktop app with a WSL backend.
  2. Add the Antigravity provider, click Sign in with Google.
  3. No browser or link; sign-in stays in "starting".

Outside T3: run agy acp --gemini-dir <tmp> --app-data-dir antigravity-acp with T3's BROWSER value, send initialize (replies in 0.4s), then authenticate {"methodId":"oauth-personal"}: no reply, no output. Or BROWSER="<T3 value>" xdg-open https://example.invalid exits 3.

Version

0.1.11-nightly.20261118.4890 (desktop app, WSL backend; triage CLI is 0.1.10)

Environment

Windows + WSL2 Ubuntu (5.15.167.4-microsoft-standard-WSL2), Node v26.13.1 (server v26.12.0 via nvm), agy 1.5.11, xdg-utils 1.1.3-4.1ubuntu3

Evidence

# server.trace.ndjson
authenticate durationMs=70444 exit=Interrupted at AntigravityAuth.runSignIn
# only the initialize reply was handled on stdout; no auth URL

# agy acp-server log
manager.go:819] ACP authenticate: methodId="oauth-personal"
oauth_loopback.go:236] Opening browser for ACP sign-in (method=consumer, redirect=http://localhost:36313/auth/callback)

# ps --ppid <agy pid>
[xdg-open] <defunct>

# BROWSER="<T3 value>" xdg-open https://example.invalid/t3-test
xdg-open: 880: '~/.nvm/versions/node/v26.12.0/bin/node': not found
xdg-open: no method available for opening 'https://example.invalid/t3-test'  (exit 3)

Related issues

#36033 and #34327 (agy 1.5.x auth/storage) and #12245, #20529, #26368 (browser-suppression preflight) are not duplicates: they don't cover what agy runs to open the browser at sign-in.

Fix applied or workaround

Sign in to T3's private profile from a WSL terminal, then refresh the provider in T3 (worked):
agy acp --login --gemini-dir ~/.t3/userdata/providers/antigravity/<instance-hash> --app-data-dir antigravity-acp

Filed by

Claude Code (claude-opus-5-5) via t3 triage

Activity

  1. added
    via-triage
    on Nov 18, 2026
  2. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    This is the same problem as #36034, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions