You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: WSL-only backend falls back to Windows when reg.exe is blocked by policy (regression in 0.1.12) #42846
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
On a Windows machine with WSL2 installed and a distro running, enable the WSL backend with "WSL only" (wslBackendEnabled: true, wslOnly: true).
Make sure registry tools are disabled by policy ("Prevent access to registry editing tools", common on managed corporate laptops). reg.exe query ... then fails with "Registry editing has been disabled by your administrator."
Update from 0.1.11 to 0.1.12 (or install 0.1.12) and launch T3 Code.
Expected behavior
T3 Code starts the backend in the configured WSL distro, as 0.1.11 did.
In addition, the user should see a clear warning in the UI rather than being switched silently to a separate Windows backend.
Actual behavior
T3 Code decides WSL is unavailable and starts the Windows backend instead. Restarting doesn't help.
Cause: makeIsAvailable in DesktopWslEnvironment now requires wslServiceRegistered, which spawns reg.exe query for HKLM\SYSTEM\CurrentControlSet\Services\WSLService and ...\LxssManager. When registry tools are blocked by policy, reg.exe exits with code 1 for both keys, so isAvailable returns false even though WSL works.
Impact
Blocks work completely
Version or commit
0.1.12 (Windows x64 installer).
Environment
Windows x64, domain-managed, registry editing tools disabled by policy - WSL2, distro Ubuntu-24.04 (running, default)
Logs or stack traces
> reg.exe query HKLM\SYSTEM\CurrentControlSet\Services\WSLService
ERROR: Registry editing has been disabled by your administrator.
> reg.exe query HKLM\SYSTEM\CurrentControlSet\Services\LxssManager
ERROR: Registry editing has been disabled by your administrator.
Screenshots, recordings, or supporting files
No response
Workaround
Downgrading to 0.1.11 is the only workaround I found
Activity