[Bug]: Windows Antigravity install/reinstall reports failure after successful validation because temp cleanup fails with EBUSY #18551
Before submitting#
- Searched existing issues; found related reports, but no exact duplicate in the searches performed.
- Included observed steps, version, and redacted failure evidence.
Area#
apps/server; error presentation in provider settings.
Steps to reproduce#
Observed repeatedly on the affected Windows host; not yet reproduced on a clean second machine.
- Run T3 Code desktop
0.0.46-nightly.20261011.2994on Windows x64. - Open Settings → Providers → Antigravity. Enable the provider and leave Binary path empty.
- With a valid managed Antigravity ACP 1.3.0 release present, choose Reinstall Antigravity.
- Wait for the ACP validation to complete.
- Inspect the installer result and its
AntigravityInstallation.validate/AntigravityInstallation.installspans inserver.trace.ndjson.
The original installation also encountered a cleanup failure. For the repeatable reinstall observations, the valid managed release had first been restored manually from the official archive after verifying the exact hash and initializing the runtime in an empty temporary profile. This was a workaround, not a successful execution of T3's native installer.
Expected behavior#
After a successful validation, the installer should finish process teardown and remove its temporary profile before completing the operation. If cleanup fails, report the cleanup failure specifically and distinguish it from runtime validation, activation, disk exhaustion, or account sign-in failure. Preserve a usable existing release.
Actual behavior#
The validation span succeeds, but scoped temporary-directory cleanup fails with EBUSY and the enclosing installation is reported as failed.
Provider settings simultaneously show version 1.3.0, Installed, an installation failure message, and the Reinstall Antigravity action. The failure message suggests checking disk space and directory access, although the recorded cause is a locked temporary directory. This encourages repeated reinstall attempts rather than explaining the failed cleanup stage.
The separate account-access warning is an unchecked-auth state; it should not be interpreted as evidence that the executable failed validation.
Impact#
Major degradation or frequent failure: native setup/reinstall fails repeatedly on this host and misleading guidance causes unnecessary troubleshooting. The restored runtime can still initialize; the user subsequently reported successful recovery. Actual model generation was not independently verified as part of these diagnostics.
Version or commit#
T3 Code desktop 0.0.46-nightly.20261011.2994; Antigravity ACP 1.3.0.
Environment#
- Windows x64; OS version reported by the diagnostic host:
10.0.26300.0. - T3 embedded Node
24.21.0, Electron44.4.5. - T3 home is relocated to another local drive through a directory junction. Validation profiles remain under the user's normal
%LOCALAPPDATA%\Temp. Whether relocation affects this issue has not been isolated. - Both runtime executables are present with the expected sizes:
agy_acp_server.exe81,437,336 bytes;localharness_external.exe145,548,952 bytes. - An earlier, separate download/TLS failure occurred, but the two reinstall traces below fail in validation-profile cleanup, not HTTP transport.
Logs or stack traces#
Sanitized excerpts from two attempts on 2026-10-12. Times are UTC; validation and installation overlap because validation is nested inside installation.
Attempt 1
AntigravityInstallation.install
start: 2026-10-12T06:36:18.420Z
duration: 12595.5352 ms
exit: Failure
AntigravityInstallation.validate
start: 2026-10-12T06:36:18.422Z
duration: 12480.8808 ms
exit: Success
Attempt 2
AntigravityInstallation.install
start: 2026-10-12T06:36:44.559Z
duration: 12522.2139 ms
exit: Failure
AntigravityInstallation.validate
start: 2026-10-12T06:36:44.561Z
duration: 12382.981 ms
exit: Success
Both failures:
PlatformError: Busy: FileSystem.makeTempDirectoryScoped
[cause]: Error: EBUSY: resource busy or locked, rmdir
'<LOCALAPPDATA>\Temp\t3-antigravity-validate-<random>'
An earlier fresh-install failure also recorded EPERM unlinking the staged runtime\agy_acp_server.exe after successful validation. The exact holder of the locked directory/file has not been independently identified. Process-tree teardown / scoped-finalizer ordering is a hypothesis, not a confirmed root cause.
Workaround and investigation pointers#
The official archive was checked against the shipped manifest (124,509,787 bytes; SHA-256 65215e0688681fa3116e048a9eab27ef53af1bbd6f3da3f1c52bd4911d8b17f9). An independent initialize in an empty fixture matched T3's required version/capabilities. Ending only that fixture's process tree and awaiting exit before cleanup allowed the fixture directory to be removed and the executable to be renamed. The verified pair was then restored to the managed release layout; no authentication files were copied or read.
Potential areas to investigate: wait for the complete validation process tree to release the profile before its scoped filesystem cleanup; expose a cleanup-specific error; test Windows teardown after successful initialize. The fixture teardown result supports investigation but does not prove which process caused T3's lock or constitute a native-installer fix.
Relevant source at the affected release:
Related reports:
- #9650: Windows Antigravity health-probe temporary-file lifecycle; a different operation/version.
- #12751: misleading unchecked-account warning. This report adds a separate native-install cleanup failure after successful validation.
No full logs, account identifiers, OAuth callback URLs, token files, environment dumps, or unredacted screenshot are attached to this report.
juliusmarminge added labelsaccepted
juliusmarminge added labelsbug
juliusmarminge added labelsvia-triage
Note
Grok responding on behalf of Julius.
Fixed by #18472, which is now merged to main. Its title says Windows ARM, but the fix isn't ARM-specific. On Windows, validation now kills the runtime's process tree before ACP closes its pipes. It also retries removing the temporary
t3-antigravity-validate-*profile when it hits Busy, PermissionDenied, or Unknown errors, so a successful validation no longer fails the install onEBUSY/EPERM. It should ship in the next nightly. If install or reinstall still fails after you update, please reopen with the new trace.juliusmarminge closed this
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
This is a confirmed bug, and open PR #18472 fixes it. The PR is titled for Windows ARM, but the fix isn't ARM-specific.
On main,
AntigravityInstallation.validatecreates thet3-antigravity-validate-*profile withmakeTempDirectoryScoped. When the scope closes, nothing on Windows waits for the PyInstaller child processes to exit before the directory is removed. So a successful validation can still fail onEBUSY/EPERM.installthen turns that into the generic "Check free disk space and directory access" message. #18472 kills the Windows validation process tree before ACP closes its pipes, and it retries profile cleanup on Busy/PermissionDenied errors.The misleading "disk space" wording is a fair point too. It comes from the
installfallback mapping, and a cleanup failure should say it's a cleanup failure.Once #18472 merges, please retest on the next nightly. Your relocated T3 home shouldn't matter here, because the validation profile lives in
%LOCALAPPDATA%\Temp. Related: #9650, #12239 (temp leftovers from the health probe), #16945 / #16998 (the same kind of Windows lock in the relay installer).