Files
t3code/apps/desktop/src
Josh Gratton defdf575f8 fix(desktop): fall back to Windows primary when wsl-only but WSL unavailable
Parity with the #2353 fix for the "WSL off hides recovery control" report.
resolvePrimary took the wsl-only primary path whenever wslOnly +
wslBackendEnabled were persisted, without checking whether WSL is actually
usable. If WSL became unavailable (wsl.exe removed, no distro), the primary
looped on preflight failures while the Connections backend control is
hidden, leaving no in-app way back to Windows.

resolvePrimary now checks wslEnvironment.isAvailable and resolves the
Windows primary (logging a warning) when wsl-only was requested but WSL
isn't usable. Added a regression test asserting the Windows primary path
under isAvailable: false.
2026-05-31 15:58:11 -04:00
..