Skip to content

[Bug]: WSL-only backend falls back to Windows when reg.exe is blocked by policy (regression in 0.1.12) #42846

Done

Description

@SebasJoustra

Before submitting

  • 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

  1. On a Windows machine with WSL2 installed and a distro running, enable the WSL backend with "WSL only" (wslBackendEnabled: true, wslOnly: true).
  2. 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."
  3. 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

  1. added
    bug
    needs-triage
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions