fix(server): allow slow Antigravity browser preflights #25211
main fromrefs/pull/25211/head·merged by maria-rcks View on GitHubProblem#
Antigravity session setup rejects a valid browser-suppression helper when cold or busy Node startup exceeds five seconds. Current main still reproduces this failure with a six-second helper delay.
Change#
Allow 30 seconds for the existing preflight. Keep verifying every launch in its effective environment, with the same output validation and failure handling; success caching from the original is unnecessary for this fix.
Verification#
- Both added regressions fail against main: delayed success and the 30-second timeout boundary. With the fix, 32 existing-file auth-support and driver tests pass, including retry after timeout.
- GitHub CI is green on
947a265527, rebased on main3d78e91, including build/typecheck, lint, all server test shards, and Macroscope correctness. Macroscope requests Maria's normal human review of the changed default. - Blacksmith
vp run check:changedpasses formatting, lint, both knip passes, generated GraphQL validation, affected typechecks, and focused tests. - Real Linux install: Google's pinned Antigravity 1.3.0 archive matches SHA-256
9fb60956af0a9d76220a4db91ca9ac88e2a2372ad68f985ab5fceace6b825b96. The same Node wrapper delays the real browser helper six seconds on both revisions. Main fails before profile creation; this branch proceeds through the actual T3 ACP runtime and initializes the real provider:
before: AcpTransportError: Antigravity browser suppression verification timed out.
after: profile preflight succeeded; private profile created
ACP initialize: {"name":"antigravity-acp","title":"Google Antigravity","version":"1.3.0"}
loadSession: true
Runtime transcript. Independent reviews of 947a265527 found no issues.
No UI code changes. Unverified: authenticated session open through a client, natural cold-start conditions, Windows and macOS. The delay is injected; the Node helper and Google provider executable are real.
Takeover#
Replaces #22804, with thanks to @lnieuwenhuis for the original implementation.
Built with GPT-6.1-Sol in the Codex harness on T3 Code.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — This targeted server fix increases the production Antigravity browser-preflight timeout from 5 to 30 seconds and adds focused regression tests. The runtime change is narrow, but it changes a product default and warrants human review.
No code changes detected at
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).947a265. Prior analysis still applies.Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅ Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅ Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅ Codex Live turn messages 1 1 0 (0.0%) 8 ✅ Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅ Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅ Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅ Claude Live turn messages 1 1 0 (0.0%) 8 ✅ Baseline:
4a08786· PR result:947a265· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
maria-rcks merged this385851d
maria-rcks closed this
Sign in to join this conversation.
No actionable comments were generated in the recent review.
Walkthrough
Antigravity browser-suppression verification now has a 30-second timeout instead of a five-second timeout. Tests cover a preflight that completes within the new limit, a preflight that reaches the timeout, and a subsequent preparation attempt.
Changes: Antigravity browser preflight
apps/server/src/provider/antigravityAuthSupport.ts,apps/server/src/provider/antigravityAuthSupport.test.tsEstimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
pingdotgg/t3code#20529— Reports browser-suppression preflight failures at the five-second timeout.pingdotgg/t3code#29379— Reports a browser-suppression preflight timeout, which this change addresses; the reportedsession/newhang and sign-in diagnostics are separate.Suggested reviewers:
medy17Merge Risk:
Minimal · up to
947a2The longer preflight timeout is ready to merge after normal checks.
Pre-merge checks:
4
Full details: Description check
Explanation
The description is mostly complete. It explains the problem, change, and verification. Add a Scope and approval section with an approved issue or discussion, or explain why the fix qualifies for the small-fix exception.
Finishing Touches
Generate docstrings
Generate unit tests (beta)
9e4686a1-5c2e-413b-88e4-dd9861c5140aReviewing files that changed from the base of the PR and between 4a087861d0764654c0e9f450f40015aea03d50a7 and 947a265527e219fe369708a6cd1e59753ee005d0.
apps/server/src/provider/antigravityAuthSupport.test.tsapps/server/src/provider/antigravityAuthSupport.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.