Skip to content

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

Description

@PabloValencia14

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?

Activity

  1. gegamoteam commented on Sep 4, 2026

    @gegamoteam

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

  2. PabloValencia14 commented on Sep 4, 2026

    @PabloValencia14
    Author

    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.

  3. PabloValencia14 commented on Sep 4, 2026

    @PabloValencia14
    Author

    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.

  4. PabloValencia14 commented on Sep 4, 2026

    @PabloValencia14
    Author

    Follow-up with a validated transport-level reproduction and a process-compliant proposal: #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: PabloValencia14@ec33a5d

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

  5. y-ziane commented on Sep 4, 2026

    @y-ziane

    same issue

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

  6. t3dotgg commented on Sep 6, 2026

    @t3dotgg
    Member

    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)

  7. braminsign commented on Sep 8, 2026

    @braminsign

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

  8. codewarnab commented on Sep 8, 2026

    @codewarnab

    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).
  9. javiergusart commented on Sep 23, 2026

    @javiergusart
    Contributor

    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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions