Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): allow slow runtime startup during setup #9510

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/9510/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Antigravity can take 40 to 47 seconds to start on Windows. Health checks still stopped at 45 seconds, and sign-out stopped at 30 seconds. Model refresh had a separate 60-second limit.

Allow 90 seconds for each operation, matching installation validation. Stalled operations still stop their processes. Add focused fake-clock coverage for slow startup and timeout cleanup.

Closes #9432.

Verified: 44 focused server tests, targeted lint, and server typecheck passed. No real Windows host was used.

Created with GPT-6 Astra (preview) in Codex.


Note

Low Risk Timeout-only behavior change with regression tests; no auth or data-path logic beyond existing timeout cleanup semantics.

Overview Raises Antigravity health checks, model refresh, and sign-out timeouts to 90 seconds so slow packaged runtime startup (often ~40–47s on Windows) can finish instead of failing early. Stalled operations still hit the deadline, tear down processes, and surface timeout errors; failed sign-out no longer clears the account catalog.

Adds fake-clock tests for slow successful paths (~47–70s) and for 90s timeout cleanup (health probe error message, sign-out failure without catalog clear). User docs note the 90-second limits for health check, refresh, and sign-out.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 51b42454eab51aa42289145b188dcbe804fa2674. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Increase Antigravity sign-out, model refresh, and health check timeouts to 90s

  • Raises the sign-out timeout in makeAntigravityAuth from 30s to 90s, the model refresh timeout in AntigravityDriver.create from 60s to 90s, and HEALTH_CHECK_TIMEOUT in AntigravityProvider from 45s to 90s
  • Adds test harness hooks in AntigravityAuth.test.ts, AntigravityDriver.test.ts, and AntigravityProvider.test.ts to control slow/stalled runtime startup and verify both successful completion and deadline termination
  • Documents the 90s limits in providers-antigravity.md, noting slow startup on Windows
  • Behavioral Change: operations that previously timed out at 30s/45s/60s now wait up to 90s before failing; stalled sign-out at 90s closes the process without clearing the account catalog
Macroscope summarized 51b4245.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.6 KiB13.6 KiB+21 B (+0.2%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB−9 B (−0.1%)7.3 KiB✅
      CodexLive turn WebSocket wire6.5 KiB6.6 KiB+30 B (+0.4%)7.8 KiB✅
      CodexLive turn WebSocket decoded57.0 KiB57.1 KiB+44 B (+0.1%)66.4 KiB✅
      CodexLive turn messages910+1 (+11.1%)21✅
      ClaudeTotal thread wire13.6 KiB13.6 KiB+7 B (+0.1%)15.1 KiB✅
      ClaudeThread snapshot wire7.0 KiB7.0 KiB−5 B (−0.1%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.6 KiB6.6 KiB+12 B (+0.2%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.9 KiB57.9 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages10100 (0.0%)21✅

      Baseline: e01c153 · PR result: 51b4245 · Source CI: success

      Scenario 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: 113.8 KiB
      • Claude decoded thread snapshot: 114.5 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

Sign in to join this conversation.