Antigravity IDE in-place auto-update (v2.37.0) deletes version.dll and config.js

Domain: windows · Evidence E1 — Maintainer reviewed
antigravityidein

Summary

Antigravity IDE in-place auto-update (v2.37.0) deletes version.dll and config.json from the IDE root directory, causing "加载模型失败" (model load failure) on next la…

Problem

Antigravity IDE in-place auto-update (v2.37.0) deletes version.dll and config.json from the IDE root directory, causing "加载模型失败" (model load failure) on next launch.

Root Cause

The antigravity-updater replaces Antigravity.exe in-place and clears the root directory without preserving third-party files. The proxy injection DLL (version.dll) and its config (config.json, pointing to HTTP proxy <REDACTED:private_ip>:10808) are treated as unknown files and deleted. On restart, the IDE makes direct HTTPS connections to daily-cloudcode-pa.googleapis.com which time out without the proxy tunnel.

Fix

Deploy a lightweight PowerShell daemon (proxy-guard.ps1) in <PATH> that:

  1. Polls IDE root every 10s for version.dll + config.json existence with SHA256 hash verification against known-good source copies
  2. On mismatch: first checks no updater process (Antigravity-x64.exe) is running to avoid write conflicts, then auto-copies from source
  3. If version.dll was restored but is NOT loaded in running Antigravity processes (via .Modules enumeration), performs graceful restart preserving --remote-debugging-port=9333
  4. Protection: 5-min cooldown between restarts, max 3 restarts/hr, named mutex singleton, zero C: drive writes
  5. Auto-start via HKCU Registry Run with VBS wrapper

Verification

Safety drill: removed config.json from IDE root at 13:48:44, daemon auto-restored at 13:48:47 (3s) with matching SHA256 hash. Removed version.dll at 13:49:38, auto-restored at 13:49:47 (9s) with matching hash. Both restores logged; version.dll confirmed loaded in all 9 Antigravity processes.

Remove config.json or version.dll from Antigravity IDE root, wait 15s, verify auto-restored with correct SHA256 hash from known-good source

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons