fix(server): preserve antigravity ipv6 startup diagnostics #15629
Mergedmaria-rcksmerged 9 commits into
main fromrefs/pull/15629/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
juliusmarminge added labelsmacroscope-review
- apps/server/src/provider/AntigravityInstallation.ts line 403OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -393,9 +395,9 @@393395 Effect.provideService(Path.Path, path),394396 Effect.provideService(ChildProcessSpawner.ChildProcessSpawner, spawner),395397 Effect.provideService(Crypto.Crypto, crypto),396- Effect.mapError(397- wrapFailure(398- "verify",399- "The downloaded Antigravity runtime could not start in this environment.",400- ),401- ),398+ Effect.mapError((cause) => {399+ if (isInstallationError(cause)) return cause;400+ const detail = isAcpProcessExitedError(cause)401+ ? /\b(?:AF_INET6|enforce_kernel_ipv6_support)\b/.test(cause.stderr ?? "")402+ ? "Antigravity requires IPv6 socket support. Enable IPv6 in this environment. On WSL, remove ipv6.disable=1 from .wslconfig and run wsl --shutdown."403+ : `The downloaded Antigravity runtime could not start in this environment.\n${cause.message}`
juliusmarminge assignedjuliusmarminge
juliusmarminge merged this9f01c58
juliusmarminge closed this
Sign in to join this conversation.
Warning
Review limit reached#
Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.
Next included review available in 4 minutes.
Check out review usage here.
View limit details
Limit details: You’ve used all 10 included reviews currently available.
Learn how review limits work.
Review configuration:
⚙️ Run configuration
d6f98871-1ccc-4040-bc35-6757c6bae51b📥 Commits
Reviewing files that changed from the base of the PR and between d811c704cf544619ca3d93c03347d1ef80ca521c and cfdf307edfc363b20e508244ad2e46b80adf9cc8.
📒 Files selected for processing: 8
apps/server/src/provider/AntigravityInstallation.test.tsapps/server/src/provider/AntigravityInstallation.tsapps/server/src/provider/acp/AcpJsonRpcConnection.test.tspackages/effect-acp/src/_internal/stdio.tspackages/effect-acp/src/errors.tspackages/provider-acp/src/server/AcpSessionRuntime.tspackages/provider-acp/src/server/stderr.test.tspackages/provider-acp/src/server/stderr.tsNo actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
9c7a20d1-a618-4bb7-82ec-bf2c48c40657📥 Commits
Reviewing files that changed from the base of the PR and between 2ee80c1f6c9d34ac83ce9687504750c78c18ba4a and d811c704cf544619ca3d93c03347d1ef80ca521c.
📒 Files selected for processing (4)
apps/server/src/provider/AntigravityInstallation.test.tspackages/provider-acp/src/server/AcpSessionRuntime.tspackages/provider-acp/src/server/stderr.test.tspackages/provider-acp/src/server/stderr.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
📝 Walkthrough
ACP process-exit errors now retain signal details used during Antigravity startup validation. Installation errors identify recognized IPv6 startup failures and include WSL guidance. ACP stderr sanitization replaces Google Accounts sign-in URLs with a placeholder.
Changes: Startup failure diagnostics
packages/effect-acp/src/errors.ts,packages/effect-acp/src/_internal/stdio.ts,packages/provider-acp/src/server/AcpSessionRuntime.ts,packages/effect-acp/src/_internal/stdio.test.tsAcpProcessExitedErrorvalues that retain the signal and PID. Runtime enrichment preserves the signal with captured stderr. Tests coverSIGABRTandSIGTERM.apps/server/src/provider/AntigravityInstallation.ts,apps/server/src/provider/AntigravityInstallation.test.tsACP stderr URL redaction
packages/provider-acp/src/server/stderr.ts,packages/provider-acp/src/server/stderr.test.tsaccounts.google.comwith[sign-in-url]. The test checks that the OAuth state value is excluded.Priority: ➖ Normal
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Sequence Diagram(s)#
Suggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
d811cNo actionable issue is established that should delay merging this diagnostics change. A real Antigravity run on an IPv6-disabled WSL host remains unverified.
Security architecture risk: 🔵 Low · up to
d811cStartup failures expose more diagnostic detail, but retain bounded redaction and validation before activation. No concrete security regression was identified. Coverage does not establish that every newly surfaced diagnostic is free of sensitive data.
Retained concerns No architecture-level concerns identified.
Security review details
Security Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Pre-merge checks:
4
#9800requires Antigravity installation to preserve the IPv6 startup diagnostic and provide actionable guidance.makeTerminationErrornow createsAcpProcessExitedErrorfor signal exits. The …#9800. Google sign-in URL redaction limits exposure when startup stderr is shown. No unrelated change is established …Full details: Linked Issues check
Explanation
Issue
#9800requires Antigravity installation to preserve the IPv6 startup diagnostic and provide actionable guidance.makeTerminationErrornow createsAcpProcessExitedErrorfor signal exits. The session runtime preserves the signal and attaches redacted stderr.AntigravityInstallationdetectsAF_INET6andenforce_kernel_ipv6_supportdiagnostics and reports IPv6 and WSL remediation. The installation test coversSIGABRT, the diagnostic, and retention of the previous release. References#9839and#13387are not direct linked targets.Full details: Out of Scope Changes check
Explanation
The signal handling, stderr propagation, stderr redaction, and tests support issue
#9800. Google sign-in URL redaction limits exposure when startup stderr is shown. No unrelated change is established by the available whole-PR summary or focused file evidence.Full details: Description check
Explanation
The description covers the problem, implementation, scope, verification results, limitations, and approval context. It explains the signal-exit handling, IPv6 guidance, stderr redaction, and preservation of the previous release.
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.