Files
orca/config/nsis
Neil fdfcfb3551 fix(windows): stop each WSL host's server on uninstall so its distro can stop (#36612)
* fix(windows): stop each WSL host's server on uninstall so its distro can stop

Uninstall released the holders but left orcad and any live terminals
running, which kept the distro (and its VM) up indefinitely. The existing
--orca-uninstall-release-wsl-holders preflight now also runs Remove host's
teardown for every recorded host whose distro is confirmed running, driven
through orcad's own CLI inside the distro: close terminals, count, then the
instance-checked decommission that retires an idle daemon. Stopped distros
are skipped, each stop is bounded at 15 s, and nothing changes the exit
code. NSIS now also launches the preflight when WSL host records exist.
Grok removal also cleans the rolling .bak of Orca's hook file.

* fix(windows): list up to 1000 terminals when uninstall stops a WSL host

* fix(windows): leave WSL host servers running while another Orca install remains

The HKCU/HKLM twin shares this userData, its WSL host records and each
distro's server. NSIS now adds --orca-uninstall-stop-wsl-servers only when
ORCA_OTHER_INSTALL_STATE is none, as the agent-hooks removal already does;
the preflight stops servers only with that flag. Holder release is unchanged.

* fix(grok): clean the hook backup without sync fs on the quit path
2026-10-31 02:20:25 -07:00
..