fix(server): Antigravity unusable on headless serve backends — browser-suppression preflight runs t3 -e, rejected by compiled binary #12245
fix(server): Antigravity unusable on headless serve backends — browser-suppression preflight runs t3 -e, rejected by compiled binary#
Environment#
- Backend:
t3 servev0.0.42, linux-x64 (WSL2, hostname LAPTOP-JEMO4), managed byt3code.service - Client: T3 Code web (
app.t3.codes→ Settings → Providers → Antigravity) - Antigravity runtime: pinned
agy_acp_server_1.1.1linux-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.ndjsonshowsprepareAntigravityProfilefailing withAcpTransportErroron 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.1linux-x64 fromdl.google.com: 681,969,407 bytes, SHA-25638f62d01b32deb0907b3d39a71ec301fd36369f6ffd1cf262d4af385177f79df— matches the pinned asset; archive contains exactlyagy_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 reportsInstalled. agy_acp_server.par --help→Entry point for the AGY ACP Server.(exit 0)- The user's
agyCLI (1.2.4) is separately authenticated and lists models fine — Google-side auth is healthy.
Suggested fix directions#
- Don't depend on
node -esupport in the service binary for the preflight: e.g. run the marker check with a bundled node runtime whenexecPathis 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.1851release notes show no Antigravity fix.
juliusmarminge added labelsbug
juliusmarminge added labelsduplicate
juliusmarminge closed this
Sign in to join this conversation.
Triage#
Confirmed, and this is a duplicate of #11767. The diagnosis in this report is correct for v0.0.42.
On that release,
prepareAntigravityProfilestill takesHostProcessExecutablePath(process.execPath) and preflights browser suppression with:A compiled
t3 serve/ SEA binary is not Node, so Effect CLI printsUnrecognized flag: -e in command t3and exits 1. That preflight runs on install validate, health check, and auth start, which matches the three UI failures. The pinnedagy_acp_serverruntime is not the problem.This was already fixed on
mainby #12033 (bf55408a5, merged 2026-09-16): standalone hosts resolve a realnodefrom PATH viaresolveNodeExecutableand use that for the helper /BROWSERcommand. #11936 (hidden__antigravity-browsersubcommand) 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#
nodeis on the service PATH, not only an interactive WSL shell. The systemd unit does not setPATH. 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.