Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity sign-in still does not open browser after #9425 #9624

OpenPabloValencia14(GitHub profile, opens in a new tab) opened this issue 16 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop / Antigravity provider authentication

Regression after #9425

The original Antigravity sign-in issue (#9405) was fixed by #9425. I installed a new Nightly containing that fix, but Google sign-in still does not open a browser or expose the sign-in link.

Environment

  • OS: Windows 11 25H2
  • T3 Code: 0.0.39-nightly.20260904.1276
  • Installed managed runtime: agy_acp_server_20260818_01_RC01
  • Browser: Vivaldi, registered as the default HTTP/HTTPS browser
  • T3 server: local Windows environment

Steps to reproduce

  1. Enable Antigravity in Settings > Providers.
  2. Install the managed Antigravity runtime.
  3. Click Sign in with Google.
  4. Wait for the authentication flow.

Expected behavior

T3 opens the Google sign-in page, or displays Open sign-in page / Copy sign-in link so the URL can be opened manually.

Actual behavior

No browser opens and no sign-in link is shown. The provider remains stuck in sign-in progress and eventually returns to an unauthenticated/error state.

Diagnostics

The installed build contains the #9425 stderr-handling changes. During the latest attempt, the server trace recorded:

  • ProviderAuthService.start: Success
  • ws.rpc.provider.auth.start: Success
  • antigravityAuthSupport.handleStderr: Success
  • antigravityAuthSupport.handleStdoutLine: Success
  • offerOutgoing: Success

Despite those events:

  • No external browser launch is recorded in the desktop trace.
  • No complete authentication URL is exposed in the server or desktop logs.
  • RpcClient.authenticate ended as Interrupted after approximately 283 seconds.
  • removeAntigravitySessionFiles then completed successfully.
  • The provider cache reports status error, auth unauthenticated, and message: Antigravity sign-in or sign-out is in progress. Try again after it finishes.

The managed ACP process is present and the runtime installation itself succeeds. The failure appears to remain in the handoff from the Antigravity auth URL handler/outgoing event to the desktop provider UI and browser-opening/copy-link fallback.

Could this be investigated as a follow-up to #9405/#9425, particularly the desktop/client handling of the URL after it is forwarded from ACP stderr?

  1. I traced this to the auth-state subscription: the server retained the waiting URL, but a subscription mounted/reconnected afterward only received future changes. I opened PR #9643, which replays the current ownership-filtered snapshot and adds regression coverage. It preserves the existing privacy rules for other clients.

  2. Correction: after review of the proposed fix, I withdrew PR #9643. The existing SubscriptionRef.changes already replays the current auth snapshot atomically; my added Stream.concat would have introduced a race. No unvalidated code change is being requested from maintainers. The original symptom remains open for a separate, reproducible fix.

  3. Follow-up with a validated transport-level reproduction and a process-compliant proposal: https://github.com/pingdotgg/t3code/discussions/9690

    The current helper works when invoked directly, and Python preserves its parsed arguments, but through Python webbrowser it returns success without the stderr marker reaching T3. A sign-in-only preload plus tokenized 127.0.0.1 sink delivered the URL through that same launch path. This rules out the late-subscriber theory and the default browser as the primary failure.

    A current-main implementation, preserving the original #9550 authorship and correcting its explanation, is staged here for maintainer review: https://github.com/PabloValencia14/t3code/commit/ec33a5d807f04e85195d6810c421f8c2d3d08658

    I am waiting for maintainer direction in the discussion before opening another non-trivial PR, per CONTRIBUTING.md.

  4. same issue

    Im having the same issue on windows, the sign in just does not work.

    same issue

  5. We can't replicate this and we also don't really care about antigravity.

    We're happy to consider a fix if one of you guys opens a PR (but I will be ignoring it if it was opened using a Gemini model)

  6. After install the runtime its dosnt find the instaltion. I`ll do have the same issue Image

  7. Faced the exact same issue as @braminsign on Windows today. Here is what is happening under the hood and how to unblock it:

    Root Cause

    When T3 Code shows:

    "Antigravity is not installed. Install it in this environment or set a custom executable path."

    Most users assume it is looking for the Antigravity CLI (agy.exe) or IDE executable. However, T3 Code strictly requires Google's headless Agent Client Protocol (ACP) adapter runtime:

    • Windows: agy_acp_server.exe + its sibling localharness_external.exe
    • Linux: agy_acp_server.par + its sibling localharness_external

    If you point the "Custom Executable Path" to agy.exe, T3 Code rejects it because localharness_external is missing:

    "The custom Antigravity executable or its localharness_external sibling is missing or not executable."

    Furthermore, if the in-app download gets interrupted or fails to write .install-complete.json / active.json inside ~/.t3/tools/antigravity-acp/<platform>/, T3 Code silently reports Antigravity as not installed.

    Workaround to unblock immediately:

    1. Download the official ACP bundle directly from Google's CDN:
      • Windows: https://dl.google.com/agy-extensions/releases/windows/agy-acp-server-agy_acp_server_1.1.1-windows-x86_64.zip
      • Linux: https://dl.google.com/agy-extensions/releases/linux/agy-acp-server-agy_acp_server_1.1.1-linux-x86_64.zip
    2. Extract both files (agy_acp_server and localharness_external) into a local directory (e.g. %LOCALAPPDATA%\agy\acp\ on Windows or ~/.t3/tools/antigravity-acp/linux-x64/ on Linux).
    3. Open Settings → Providers → Antigravity and set Binary path to the extracted agy_acp_server.exe (or .par).
  8. Confirmed on Linux with the same user-facing failure.

    Environment:

    • Omarchy 4.0.4-1 (Arch Linux)
    • T3 Code 0.0.42-2
    • T3-managed Antigravity ACP agy_acp_server_1.1.1

    The provider showed Google sign-in failed. Start sign-in again., but did not expose a sign-in action or URL. The desktop URL handler was registered and the keyring was healthy. Before recovery, the provider cache was in error, authentication was unknown, and the managed runtime health check had failed.

    A controlled T3 desktop restart, with TMPDIR moved off the small tmpfs onto persistent storage, cleared the stuck state. After restart the managed provider reached ready, authentication reported oauth-personal, and T3 listed 11 Antigravity models. Google sign-in then completed successfully.

    This is useful recovery evidence, but not proof that the underlying URL handoff is fixed: the restart may have cleared an abandoned auth session, while the disk-backed temporary directory separately avoided ACP extraction/health-check pressure. The missing URL fallback described here still merits a transport-level fix such as #10704.

  9. Root cause found (Windows): it's MAX_PATH, not auth.

    T3 launches the Antigravity ACP server with TEMP/TMP pointed at a deeply nested profile directory (antigravityAuthSupport.ts → antigravityEnvironment()):

    C:\Users\<you>\.t3\userdata\providers\antigravity\<64-char sha256>\antigravity-acp\tmp\run-XXXXXX

    The server is a PyInstaller one-file bundle that extracts ~1GB into %TEMP%\_MEIxxxxx on every launch. The deepest file lands at 276 characters, 16 over Windows' 260-char MAX_PATH:

    ...\tmp\run-XXXXXX\_MEIxxxxx\google3\cloud\developer_experience\antigravity_extensions\acp_server\_private__agy_acp_server_bin.lazy_imports_info.json

    The bootloader dies in ~250ms with:

    [PYI-xxxxx:ERROR] Failed to extract ... lazy_imports_info.json: failed to open target file!
    fopen: No such file or directory

    I reproduced this exactly by running agy_acp_server.exe with TEMP set to the deep path, and confirmed the fix by flipping it back. This is why the provider is stuck on "Google account access is not checked yet" with empty models: refreshModels can never spawn the server. It also explains why it works on macOS/Linux and when the binary is run manually (short temp path).

    Workaround: enable Windows long paths, since the binary's manifest already declares longPathAware:

    reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f

    Then restart T3. Verified the server extracts and runs cleanly under the deep temp path with this set.

    Suggested fix: resolveAntigravityRuntimeTempDirectory() nests too deep on Windows. The temp dir could live somewhere short like %LOCALAPPDATA%\Temp\t3-antigravity\<short-id> instead of under the 114-char profile directory.

  10. Follow-up on the Windows extraction report: #13389 merged on September 24 and shortens the managed runtime's temporary layout while preserving profile identity. That addresses the reported default-layout MAX_PATH cause. The authorization-URL delivery change in #10704 is separate and remains open. I have not verified which installed release contains #13389 or run a Windows retest, and the merge does not establish that the Linux URL-handoff symptom is fixed.

  11. Triage on main ed9b7ca9c5: this host is Linux, and neither antigravity nor agy is available on PATH. The reported Windows 11 desktop / Vivaldi flow was not run, so this is not a confirmed reproduction or a confirmed fix.

    No matching open duplicate was found. Existing #21085 addresses saved-token reuse skipping Google sign-in; that is related but not established as the cause here. Leaving this issue open for maintainer investigation: the sign-in handoff is authentication code, outside the automated triage fix scope.

  12. Tested main 3b95e7831b on Linux x64 using the web dev client and an isolated T3 home. Added Antigravity with Google account authentication, installed managed runtime 1.3.0, and started sign-in. The client showed “Open browser” and “Copy sign-in link”; Open browser opened Google's sign-in page. Canceling and retrying also exposed both controls. No Google account was submitted.

    This does not reproduce the missing-URL symptom on Linux or verify the Windows 11/Vivaldi desktop path. Can you retest on the current Windows nightly and report its full version, managed runtime version, and whether those two controls appear? If it still stalls, include the ACP startup/sign-in trace through the failure, with authorization URLs, tokens, and account details redacted. Leaving this open pending that Windows retest.

    Linux current-main sign-in exposes Open browser and Copy sign-in link

  13. juliusmarminge added labelsneeds more info

  14. juliusmarminge removed labelsneeds more info

  15. There is a newer Windows report on #10704: https://github.com/pingdotgg/t3code/pull/10704#issuecomment-6506442389.

    @iTzFrancesco reports desktop and local server 0.1.5, Windows x64 build 10.0.26300, and managed Antigravity runtime 1.4.1. Sign-in stays at “Starting Google sign-in,” with no browser or Open browser / Copy sign-in link controls. This adds versioned Windows evidence alongside the October 22 Linux check here, but it is not the requested current-nightly retest.

    Their IPv4/IPv6 connectivity difference leaves the cause unresolved; the report does not establish that #10704 fixes this instance. I have not reproduced that build myself.

  16. omarchy beta still 'Runtime Install and manage Antigravity.

    337 MB download.

    The downloaded Antigravity runtime could not start in this environment.'

  17. @kruschewskyjoao95 Could you add the exact T3 app/server build, CPU architecture, managed Antigravity runtime version, and the first underlying startup error from the server diagnostics?

    That will help distinguish extraction, process-launch or health-check failure from a runtime that starts but never delivers its sign-in URL. The displayed message alone leaves the cause unresolved. My earlier Linux recovery report here used T3 0.0.42-2 and ACP 1.1.1; it is historical evidence, not a retest of your beta.

    Please redact authorization URLs, tokens, account details and home-directory paths from any diagnostic excerpt.

  18. @murdawkmedia update, a few days ago when i reproduced that bug i managed to resolve anche connect my google sub by waiting some minutes and then the google sign in page appeared automatically

    Image Image
  19. tanstack-source added labelsbug

Sign in to join this conversation.