Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity installs on Windows ARM #18472

Mergedmweinbach(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/18472/headmerged by juliusmarminge View on GitHub

Problem

On Windows ARM, installing Antigravity downloads and extracts the runtime, then fails at "Checking the downloaded runtime" with "Could not finish the Antigravity installation. Check disk space and directory access."

Reproduced with Google's Antigravity ACP 1.3.0 ARM64 runtime on Windows ARM running Node.js 24.21.0. Closing the validation runtime can leave PyInstaller children holding the executable and unpacked DLLs, so cleanup fails with EPERM.

Change

Terminate the Windows validation process tree before ACP closes its pipes, while its launcher still exists for taskkill to reach the children. Retry disposable-profile cleanup up to ten times at 100 ms intervals for Windows Busy, PermissionDenied, or Unknown filesystem errors, since DLL handles can briefly outlive process termination.

Extend the installer tests to cover Windows ARM installation, invalid-runtime rejection, and cancellation with child processes and transient Busy, PermissionDenied, and Unknown DLL-lock failures. Correct the validation tests to check TEMP/TMP on Windows.

Scope and approval

This is a focused fix for an obvious failure in the existing Antigravity installer. It changes validation teardown and temporary-file cleanup, without adding a feature or changing provider settings. The server installer is shared by clients connecting to the affected Windows environment.

Verification

  • Reproduced the exact failure with the real ARM64 runtime in an isolated temporary T3 home, then confirmed the finished fix installs version 1.3.0 successfully. Both captured validation process IDs had exited afterward. No live T3 state was modified.
  • vp test run apps/server/src/provider/AntigravityInstallation.test.ts: 41 passed, 1 POSIX-specific test skipped on Windows. Regression cases cover successful activation, rejection preserving the previous release, and cancellation cleanup. Cleanup retries use the test clock.
  • Targeted vp lint for the two changed files, tsc-rs --noEmit --project apps/server/tsconfig.json, and git diff --check passed.

Model: gpt-6.1-sol (xhigh). Harness: Codex in T3 Code.

    1. chatgpt-codex-connector[bot](GitHub profile, opens in a new tab)commented

      Codex Review Summary

      This comment shows the latest Codex review activity on this pull request.

      ReviewStatusCommitReview trigger
      📝 Code Review✅ Completed 2026-10-14T04:34:43.998735Zf148bf9New commits
      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review" or "@codex security review".

      Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 57361b3

      Macroscope's review found this PR approvable — This is a focused Windows-only Antigravity validation cleanup fix that preserves existing non-Windows behavior and adds regression coverage for ARM, cancellation, and transient file-lock failures. It introduces no new capability, product-default change, schema change, or static-analysis override.

      No code changes detected at b7c1192. Prior analysis still applies.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge added labelsmacroscope-review

    5. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Note

      Reviews paused

      It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

      Use the following commands to manage reviews:

      • @coderabbitai resume to resume automatic reviews.
      • @coderabbitai review to trigger a single review.

      Use the checkboxes below for quick actions:

      • ▶️ Resume reviews
      • 🔍 Trigger review

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: d00b6af3-63c5-4d9c-94ed-dca4528d7faa
      📥 Commits

      Reviewing files that changed from the base of the PR and between 5270d250e2a8b0bcd5ebf17415114697b7d9577c and 57361b3c7ab012b1cdd6d21c827fb7f5ad0d75b6.

      📒 Files selected for processing (2)
      • apps/server/src/provider/AntigravityInstallation.test.ts
      • apps/server/src/provider/AntigravityInstallation.ts

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

      📝 Walkthrough

      Validation now retries temporary profile cleanup on Windows and registers a forced child-process kill in the validation scope. Tests cover Windows ARM64 validation, cancellation, platform-specific profile paths, and cleanup retries.

      Changes: Antigravity validation

      Layer / File(s)Summary
      Windows validation cleanup
      apps/server/src/provider/AntigravityInstallation.ts
      Validation explicitly removes its temporary profile. On Windows, it retries selected cleanup errors every 100 ms, up to 10 times, and registers a forced child-process kill in the validation scope.
      Windows validation test coverage
      apps/server/src/provider/AntigravityInstallation.test.ts
      The harness selects an architecture and platform. Tests cover Windows ARM64 outcomes, cancellation, platform-specific profile paths, child termination, and cleanup retries.

      Priority: ➖ Normal

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Bug fix

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 57361

      This change fixes Antigravity installation on Windows ARM by terminating validation child processes and retrying temporary profile cleanup. Other platforms are unaffected. No merge-blocking risk was identified.

      Security Architecture Review

      Security architecture risk: 🔵 Low · up to 57361

      The changes are narrowly scoped to Windows installation cleanup and preserve validation before activation. No introduced security vulnerability was identified, but complete descendant-process shutdown and exceptional cleanup behavior remain unverified.

      Retained concerns No architecture-level concerns identified.

      Security review details

      Security Blast Radius

      • inferred — The changed cleanup authority targets handles spawned for Windows validation and the exact newly acquired disposable directory. The comparison shows no new caller-controlled executable selector or general-purpose termination target. Execution of the downloaded native runtime on the server host predates this PR.

      Trust Boundaries and Controls

      • observed — The existing spawn helper continues to use the installation executable and harness paths, an explicit environment, and the disposable profile as the working and unpacking directory. Windows TEMP and TMP point to that profile. The PR changes teardown rather than these execution inputs.

      Resilience and Maintainability Implications

      • observed — A semaphore prevents overlapping starts within one service instance. Cancellation requires the current operation ID, and completion clears only the matching running operation. Validation teardown failures occur before activation and enter the existing failed-operation handling rather than approving the candidate runtime.

      Hardening Proposals

      • proposed — Establish executable evidence for the Windows shutdown contract: descendants exit before pipe closure and profile removal, including timeout, failed-kill and exhausted-cleanup recovery. This addresses an assurance gap, not an observed vulnerability.
      Pre-merge checks | Passed 4
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Title checkPassedThe title clearly and concisely identifies the server fix for Antigravity installation on Windows ARM.
      Description checkPassedThe description includes all required sections. It explains the Windows ARM failure, the process-tree and cleanup retry changes, the scope justification, and focused verification results.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    6. 💡 Codex Review

      Here are some automated review suggestions for this pull request.

      Reviewed commit: 095ea731db

      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review".

      If Codex has suggestions, it will comment; otherwise it will react with 👍.

      Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    7. juliusmarminge merged this895354e

    8. juliusmarminge closed this

Sign in to join this conversation.