Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity unusable on headless serve backends — browser-suppression preflight runs t3 -e, rejected by compiled binary #12245

ClosedJemo69(GitHub profile, opens in a new tab) opened this issue 1 comment

fix(server): Antigravity unusable on headless serve backends — browser-suppression preflight runs t3 -e, rejected by compiled binary

Environment

  • Backend: t3 serve v0.0.42, linux-x64 (WSL2, hostname LAPTOP-JEMO4), managed by t3code.service
  • Client: T3 Code web (app.t3.codes → Settings → Providers → Antigravity)
  • Antigravity runtime: pinned agy_acp_server_1.1.1 linux-x64, manually verified (see below)

Symptoms

  • Runtime section: Installed. + The downloaded Antigravity runtime could not start in this environment. (+ Retry installation)
  • Google account section: Google sign-in failed. Start sign-in again. (+ Retry Google sign-in / Sign out of Google)
  • Header: Unavailable · Antigravity could not complete its local health check.
  • server.trace.ndjson shows prepareAntigravityProfile failing with AcpTransportError on both the install-validation path (AntigravityInstallation.validate) and the auth-start path (AntigravityDriver.makeDisposableRuntime ← ProviderAuthService.start), so install validation AND sign-in are both blocked.

Root cause (isolated)

prepareAntigravityProfile builds browserCommand from HostProcessExecutablePath and verifies browser suppression by spawning:

<execPath> -e 'process.stderr.on("error",()=>process.exit(0)).write("__T3_ANTIGRAVITY_AUTH_URL__"+JSON.stringify(process.argv[1])+"\n",()=>process.exit(0))' -- https://example.invalid/t3-antigravity-browser-preflight

expecting exit 0, empty stdout, and exactly __T3_ANTIGRAVITY_AUTH_URL__"https://example.invalid/t3-antigravity-browser-preflight" on stderr. On the compiled serve binary this fails deterministically:

$ t3 -e '...' -- "https://example.invalid/t3-antigravity-browser-preflight"
EXIT: 1
---STDOUT--- (t3 help text)
---STDERR---
ERROR
  Unrecognized flag: -e in command t3

The -e eval only works when execPath is node-compatible (dev node dist/..., or desktop Electron honoring the ELECTRON_RUN_AS_NODE=1 the profile env sets) — never the compiled serve binary. Since every Antigravity flow (install validate, health check, auth start) goes through prepareAntigravityProfile, the provider is fully blocked on headless backends.

Ruled out: the ACP runtime itself

  • Pinned release agy_acp_server_1.1.1 linux-x64 from dl.google.com: 681,969,407 bytes, SHA-256 38f62d01b32deb0907b3d39a71ec301fd36369f6ffd1cf262d4af385177f79df — matches the pinned asset; archive contains exactly agy_acp_server.par (1,880,360,328 B) + localharness_external (128,966,920 B), both executable, records (active.json, .install-complete.json) in place — T3 resolves them and reports Installed.
  • agy_acp_server.par --help → Entry point for the AGY ACP Server. (exit 0)
  • The user's agy CLI (1.2.4) is separately authenticated and lists models fine — Google-side auth is healthy.

Suggested fix directions

  • Don't depend on node -e support in the service binary for the preflight: e.g. run the marker check with a bundled node runtime when execPath is the compiled CLI, or verify suppression differently on non-Electron hosts.
  • Bonus: preserve the underlying preflight diagnostics (exit code/stdout/stderr) in the surfaced error — today everything collapses to AcpTransportError: ACP transport operation failed, which hides the cause (related: #9839).

Notes

  • Latest stable is v0.0.42 (running it); latest nightly v0.0.43-nightly.20260917.1851 release notes show no Antigravity fix.
  1. Triage

    Confirmed, and this is a duplicate of #11767. The diagnosis in this report is correct for v0.0.42.

    On that release, prepareAntigravityProfile still takes HostProcessExecutablePath (process.execPath) and preflights browser suppression with:

    <execPath> -e '<browserHelperSource>' -- https://example.invalid/t3-antigravity-browser-preflight

    A compiled t3 serve / SEA binary is not Node, so Effect CLI prints Unrecognized flag: -e in command t3 and exits 1. That preflight runs on install validate, health check, and auth start, which matches the three UI failures. The pinned agy_acp_server runtime is not the problem.

    This was already fixed on main by #12033 (bf55408a5, merged 2026-09-16): standalone hosts resolve a real node from PATH via resolveNodeExecutable and use that for the helper / BROWSER command. #11936 (hidden __antigravity-browser subcommand) was closed as superseded by that change.

    v0.0.42 does not contain the fix (tagged 2026-09-15, before #12033). Nightlies from 2026-09-16 onward do, including v0.0.43-nightly.20260917.1851. The nightly notes may not mention Antigravity by name; the CodeRabbit summary on #12033 does.

    What to do

    1. Upgrade the service off 0.0.42 to a 0.0.43 nightly (or the next stable that includes #12033).
    2. Ensure node is on the service PATH, not only an interactive WSL shell. The systemd unit does not set PATH. If Node lives only in nvm, expect the new message: Antigravity sign-in requires Node.js. Install Node.js and make sure node is on PATH, then retry.

    Preserving preflight exit/stdout/stderr in the surfaced error is still a fair follow-up (related: #9839) and is not required to unblock Antigravity after the upgrade.

    Closing as a duplicate of #11767.

  2. juliusmarminge added labelsbug

  3. juliusmarminge added labelsduplicate

  4. juliusmarminge closed this

Sign in to join this conversation.