Summary
Sharing a detailed Windows diagnostic report (already submitted via in-app Give Feedback → Bug Report with server logs attached) in case other Windows 26H2 / v2.38.0 users are seeing the same behavior or the Antigravity Windows engineering team wants to cross-reference.
On Windows Hub (v2.37.0 and v2.38.0), language_server.exe repeatedly crashes with exited with code 2, compounded by a crash-diagnostic blind spot between Go’s runtime/debug.SetCrashOutput and Electron’s stderr-only crash extractor + log truncation on auto-restart, alongside 5 additional Windows/CLI issues visible in the logs.
Environment
- OS: Windows 10/11 Pro (26H2, Build
26300.10075, AMD64) - Hardware: 12 logical CPUs, 33.46 GB RAM (9.17 GB physical RAM free / 13.70 GB commit free at crash time — not host OOM)
- Antigravity Desktop (Hub):
v2.38.0 - Language Server Stamp (
language_server.exe --stamp):CL 1035709027(baseline1034952883, built2026-12-03 19:02:31 -0300) - Antigravity CLI (
agy --version):1.5.24
Observed Crash Frequency & Cross-Conversation Impact
%APPDATA%\Antigravity\logs\main.logrecords 138 occurrences ofLanguage server crashed: exited with code 2(distinct from intentional self-restartLS_RESTART_EXIT_CODE = 42), including 18 crashes in ~17 hours:- 8 crashes on
v2.37.0overnight - 10 crashes on
v2.38.0in ~4.5 hours
- 8 crashes on
- Because
--subclient_type hubruns a single sharedlanguage_server.exe(GOMAXPROCS=4), panics triggered during concurrent activity in one heavy conversation/subagent (e.g., two active multi-MB trajectories of ~2,100 and ~3,750 steps + concurrent subagents + PDF viewer tab + MCP calls) terminate the shared server and stop all subagents/background tasks across idle conversations (Resuming 2 conversation(s) interrupted by server restart,server.go:5650).
Detailed Findings & Proposed Fixes (Windows)
1. [Critical] Double Crash-Diagnostic Blind Spot (SetCrashOutput vs. Electron stderr Extractor + Log Truncation)
- Observed: Across all 138
exited with code 2crashes inmain.log,monitorLsCrashInternalnever logs--- Crash Stack Trace ---. - Root Cause:
language_server.exeredirects Go runtime crash output viaruntime/debug.SetCrashOutputto%USERPROFILE%\.gemini\antigravity\crashes\crash_<PID>_<uuid>.log. Because the panic/fatal trace goes to that file instead ofstderr, Electron’sextractCrashStackTrace(fullStderr)(matchingCRASH_TRIGGER_PHRASES = ['panic:', 'fatal error:', ...]) always returnsundefined.- Two seconds later (
RESTART_COOLDOWN_MS = 2000),startLanguageServeropenslanguage_server.logwithfs.createWriteStream(getLsLogPath(), { flags: 'w' }), immediately truncating the dead PID’s log. Meanwhile, the newly spawned PID consumes/removes the previouscrash_<old_pid>_*.logon startup (and may miss uploading if telemetry hitsstartup_wait_timeout/Telemetry reporter not initialized, cannot upload pending crashes).
- Proposed Fix:
- In
proc.on('exit')(Electron main process), before respawning, read any non-emptycrash_<exitedPid>_*.login.gemini/antigravity/crashes/as a fallback whenextractCrashStackTrace(fullStderr)is empty, log top frames intomain.log, and retain the last 3 rotated crash files locally fordiagnostics.json.gz. - Rotate
language_server.log→language_server.prev.logbefore opening{ flags: 'w' }.
- In
2. [High] Windows NTFS ERROR_ACCESS_DENIED Loop on Marketplace Plugin Auto-Upgrade (rpcs_marketplace.go:1352)
- Observed: Every server startup attempts to upgrade an installed marketplace plugin (e.g.,
chemistry1.0.0→1.0.3) and fails:
failed to move existing plugin %USERPROFILE%\.gemini\config\plugins\chemistry aside: rename .../plugins/chemistry .../cache/marketplaces/.../.chemistry.old.<rand>.tmp: Access is denied.(errorreport.go:282) - Root Cause: Unlike POSIX
rename(), WindowsMoveFileExWon a directory fails withERROR_ACCESS_DENIEDif any open handle exists inside the directory (internal skill/plugin watchers, embeddedrg.exe, sidecars, or Windows Defender) or across mount/reparse boundaries. - Proposed Fix: Close/pause plugin watchers & sidecars for the target plugin before swapping, stage inside the same parent directory with short exponential-backoff retries for transient Windows AV/indexer locks, and fall back to a pre-watcher “pending plugin swap” step on next startup.
3. [High] Startup Storm of 564+ Orphan Trajectories + 10s startup_wait_timeout + Hardcoded GOMAXPROCS=4
- Observed: On every restart:
extract_searchable_content.go:54logs 564 consecutive warnings:conversationsearch: loading trajectory <id> for index extraction: trajectory <id> not found in any store: file does not exist.reconcile_summaries.go:78fails on side-chat IDs (conversation <id> not found).server.go:5540:State refresh took 10000ms→auth_status_telemetry.go:81:[auth-status] ms=10001 reason=startup_wait_timeout rpc=get_auth_status valid=false.server.go:1295:Setting GOMAXPROCS to 4on a 12-logical-CPU Hub machine running concurrent multi-MB conversations + subagents + multi-rootripgrep.
- Proposed Fix: Prune/tombstone
os.ErrNotExisttrajectory IDs fromconversationsearchandsummary storeduring reconciliation; scaleGOMAXPROCSdynamically in Hub mode (e.g.,min(max(4, runtime.NumCPU()/2), 8)); addrecover()middleware on RPC/SSE stream handlers and background indexers so a panic in one conversation/worker cannot crash the shared Hub process.
4. [Medium] MCP Plugin Tool Double-Prefixing Exceeding 64-Char Limit (mcp_client_session_instance.go:231)
- Observed: When a plugin ID and its MCP server name are identical (e.g.,
my-custom-workbench),language_serverconstructsmcp_<plugin>_<server>_<tool>(easily exceeding 64 chars), failing^[a-zA-Z0-9_-]{1,64}$and silently dropping valid MCP tools. - Proposed Fix: Deduplicate
<plugin>_<server>when identical (mcp_<plugin>_<tool>), and deterministically truncate + append a short hash suffix if still > 64 chars.
5. [Low] Hardcoded Linux Path on Windows (defaults.go:713) & Noisy HTML 404 on prompts/list (rpcs_cascade.go:1443)
- Observed:
defaults.go:713logsfailed to get cs path: cs path /usr/bin/cs invalidon Windows;rpcs_cascade.go:1443logs full HTML 404 pages when callingprompts/listagainst Streamable HTTP MCP endpoints that don’t advertise prompts. - Proposed Fix: Skip
/usr/bin/csprobe onGOOS == "windows"; check negotiated MCPcapabilities.promptsbefore callingprompts/list; truncate HTML bodies in HTTP error logs.
6. [High] agy CLI 1.5.24 Ignores "disabled": true in ~/.gemini/config/mcp_config.json
- Observed: In non-interactive mode (
agy -p ... --print-timeout 120s),agy1.5.24still initializes MCP servers marked"disabled": truein~/.gemini/config/mcp_config.json. If a disabled server requires interactive OAuth or stalls,agy -phangs until--print-timeout(removing the entry from JSON immediately resolves the hang). - Proposed Fix: Honor
"disabled": trueinagyCLI (matching Desktop App behavior) and enforce a short non-blocking per-server MCP init timeout in-pprint mode.