Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity Google sign-in shows its link with the native CLI #38953

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/38953/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Nothing needed changing. PR #38953 at 7c34638 passed all 37 checks. Macroscope skipped every check and left no comments. CodeRabbit left no line comments and no finding rated high or above. Its only output was a failed pre-merge 'Linked Issues check' asking for two more changes; I checked both against the code and changed neither. (2) Mark 1.5.x background sign-in as sign-in required when it has no browser: the issue itself says #36037 fixed this background half, and on main isAntigravitySignInRequiredError treats the -32603 'No browser is available here' error as sign-in required, with a test in antigravityAuthSupport.test.ts. (3) Remove the 'Broken IPv6' wording from the 30-second hint on the native path: with this fix, native-CLI Google sign-in runs acp --login before any ACP runtime starts, and the NO_RESPONSE hint is only scheduled after a runtime initializes and only shown while the phase is 'starting'. By then the native flow has already moved to 'waiting' or 'verifying', so the hint cannot appear there; it now applies only to the 1.4.5 loopback flow it was written for. The fix itself is unchanged: for the Google account method on the native agy CLI, T3 runs the CLI's acp --login in the instance profile, shows its Google link with a 'Code from the Antigravity page' credentials field, writes the validated code to the CLI, then authenticates a fresh ACP process and loads models.

Fixes pingdotgg/t3code#36034

Reproduction on main

Commit a941ab544d (origin/main), Linux VM, Google's agy CLI 1.5.12 on PATH (T3 uses it when no managed runtime is installed). (1) Direct ACP probe the way T3 launches it: agy acp --gemini-dir <scratch> --app-data-dir antigravity-acp, then initialize and authenticate {methodId:"oauth-personal"}. With no DISPLAY it answered within 0.4 s with -32603 "No browser is available here (no graphical display is available to open a browser). Run agy acp --login …". With DISPLAY=:0 and BROWSER pointing at a logging stub, it ignored BROWSER and ran xdg-open https://accounts.google.com/o/oauth2/auth?access_type=offline&…&code_challenge_method=S256&…&redirect_uri=http%3A%2F%2Flocalhost%3A<port>%2Fauth%2Fcallback…, printed nothing on stdout or stderr, and hung. (2) The real app: T3CODE_DEV_SEED=0 vp run dev with DISPLAY unset, paired the web client, Settings → Providers → Add provider → Antigravity, sign-in method Google account, Add instance (status 'Installed · Sign-in not checked'), then clicked Sign in. Within about a second the Account row said 'Google sign-in failed. Start sign-in again.' and showed no link. The instance's runtime log has authenticate("oauth-personal") failed: No browser is available here … (code -32603). (3) Restarted the same dev server with DISPLAY=:0 and xdg-open/sensible-browser replaced by logging stubs on PATH, then clicked Sign in. The stub received the 1.5.x Google link at once, T3's UI never showed a link, and after 30 s the Account row read 'Antigravity has not reached Google after 30 seconds. Check this machine's network connection. Broken IPv6 is a common cause.' (the network is fine). No Google account was needed: both failures happen before any Google request. Not exercised: finishing a real Google sign-in, and the 90 s background-refresh wait with a display (the no-display half of that was fixed by #36037).

Evidence

Linux, native agy 1.5.12 on PATH, no managed runtime; Chromium web client, 1280×800 CSS viewport, light theme; independent fresh databases with T3CODE_DEV_SEED=0. Settings → Providers → Add provider → Antigravity → Google account → Add instance → Sign in. Repeated with DISPLAY unset and with DISPLAY=:0 plus logging browser-opener stubs. No Google account was needed to reproduce the missing link.

BeforeAfter
fc6c68b7737c34638983
Headless: generic failure, no link. Before: headless sign-in failureHeadless: Open browser, Copy sign-in link, and code entry. After: headless Google link controls
Before headless recordingAfter headless recording
Display enabled: xdg-open received Google’s URL, while T3 showed no link and blamed network/IPv6 after 30 seconds. Before: false network timeoutDisplay enabled: link controls appeared immediately and remained available beyond 56 seconds. After: sign-in link and code entry
Before display-enabled recordingAfter display-enabled recording

Browser action driver, browser-opener stub, sanitized opener log, observations and runtime excerpt.

The copied head link was checked in memory: Google OAuth endpoint, PKCE present, Antigravity HTTPS callback. OAuth state and full URLs were not uploaded. Captures replace only the machine display label with Test environment. Verdict covers receiving and exposing the sign-in link, not completing Google authentication.

Not shown:

  • Permanent blocker: completing real Google account sign-in requires a Google account unavailable on this VM; authorization-code submission, credential persistence, fresh ACP authentication, and model loading after successful login were not exercised.
  • The legacy managed 1.4.5 loopback flow was not exercised; both comparisons used the reported native CLI 1.5.12.
  • The separate 90-second background-refresh behavior was not exercised.

Tests

No new commands this round. From the previous round on the same head: vp test run src/provider/AntigravityAuth.test.ts src/provider/antigravityAuthSupport.test.ts (50 passed), and vp run check:changed with format, lint, knip, typecheck and tests all passing. CI on 7c34638: all 37 checks passed.

Not in this change

  • The ACP runtime's -32603 'No browser is available here' message still advises running agy acp --login without the instance's --gemini-dir/--app-data-dir wherever it surfaces outside interactive sign-in (for example delegated sub-agent session-open failures, which are also retried 4 times).
  • Local desktop users on the native CLI now paste a code instead of the CLI completing through a localhost callback in a browser it opened on the server; an automatic local completion path would be a separate change.
  • The 'Code from the Antigravity page' label and the auth status messages are server-provided English strings, like the existing Antigravity auth messages, and are not localized.
  • The 30-second 'Broken IPv6' hint wording for the 1.4.5 runtime path, which the native CLI path no longer reaches.
  • The runtime's -32603 message still tells users to run agy acp --login without the instance's --gemini-dir/--app-data-dir wherever it surfaces outside interactive sign-in, for example delegated sub-agent session failures.
  • Local desktop users on the native CLI now paste a code instead of finishing through a localhost callback in a browser on the server.

Who did the work

  • Written by Claude Opus 5.5, in Claude Code
  • Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
  • Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5

Run by the t3code factory in T3 Code.

    1. Pushedacb9016

    2. juliusmarminge merged this944d182

    3. juliusmarminge closed this

Sign in to join this conversation.