Skip to content

feat(windows/wsl): Silent dynamic launcher, zero-hardcode WSL patcher, Chromium Network account backup & quota bridge - #49

Merged
dalroot merged 10 commits into
mainfrom
fix/windows-silent-launcher-dynamic-port
Nov 15, 2026
Merged

dalroot merged 10 commits into
mainfrom
fix/windows-silent-launcher-dynamic-port

Conversation

@dalroot

@dalroot dalroot commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary of Comprehensive Changes

This PR delivers full Windows & WSL compatibility across all subsystems of Antigravity Cleaner with zero hardcoding:

1. 🪟 Native Windows Silent Launcher & Shortcut Overhaul

  • Clean In-Place Patching: In-place patches official Antigravity.lnk shortcuts on Desktop and Start Menu, preserving the official application icon (Antigravity.exe,0).
  • Zero-Flash Execution: Uses run.vbs (windowStyle = 0) to silently launch without flashing CMD windows.
  • ⚡ Dynamic Loopback Port Detection: Scans loopback ports dynamically (10808, 2080, 7890, 1080, 10809, 2081) via non-blocking parallel sockets.
  • 🔓 Chromium Loopback & OAuth Gatekeeper Unblock: Injects --proxy-bypass-list="<-loopback>" and complete proxy environment variables (ALL_PROXY, HTTP_PROXY, HTTPS_PROXY, NO_PROXY, SSH_CONNECTION, SSH_CLIENT).

2. 🐧 Zero-Hardcoded WSL Distro Discovery & ELF Patching (pkg/patcher/wsl.go)

  • Dynamic Enumeration: Automatically discovers all installed WSL distros via \\wsl.localhost\, \\wsl$\, and Windows Registry (HKCU\...\Lxss).
  • ELF Bytecode Patching: Dynamically scans and patches Linux ELF binaries (language_server) inside WSL environments (hasValidAuth = 1).
  • Mirrored Networking Configuration: Automatically configures networkingMode=mirrored in %USERPROFILE%\.wslconfig (INI-safe) so WSL transparently shares host proxy routes.
  • Shell Proxy Persistence: Injects proxy exports cleanly into ~/.bashrc and ~/.zshrc.

3. 👥 Multi-Account Switcher: Chromium Modern Directory Support (pkg/account/manager.go)

  • Modern Chromium Storage: Added "Network" directory (Network/Cookies, Network/Network Persistent State, Network/Trust Tokens) to backup and restore sets.
  • Standalone Token Restoration: Atomically restores jetski-standalone-oauth-token to %APPDATA%\Antigravity, %APPDATA%\Antigravity\User, and ~/.gemini/ upon account switching.

4. 📊 Live Quota Monitor: Standalone Token Extraction Fallback (pkg/quota/quota.go)

  • Adds fallback to unencrypted OAuth refresh tokens (1//...) from jetski-standalone-oauth-token, enabling instant live CloudCode quota queries for Standalone Hub users without requiring IDE SQLite database.

5. 🔍 Enhanced Windows Path & Process Discovery (pkg/patcher/discovery.go, pkg/proxy/launcher.go)

  • Bulletproof Active Process Probing: Optimized scanWindowsProcess using clean native PowerShell (Get-Process -Name '*...*' -ErrorAction SilentlyContinue).Path to avoid pipeline quoting issues.
  • Scoop Installation Support: Dynamically detects Scoop paths (%USERPROFILE%\scoop\apps\antigravity*) for IDE, standalone app, ASAR, and CLI binaries.

Verification

  • Verified on Windows with live Antigravity process (PID 8908) routing through proxy on port 10808.
  • Bytecode patch verified on local language_server.exe (offset 47532330).
  • ASAR protections (Zero-Log, Write Shield, Anti-Update) verified active.

@dalroot dalroot changed the title fix(windows): Native silent shortcut overhaul, dynamic port scanner and loopback unblock feat(windows/wsl): Silent dynamic launcher, zero-hardcode WSL patcher, Chromium Network account backup & quota bridge Nov 15, 2026
@dalroot
dalroot merged commit 153501c into main Nov 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant