WSLC is listed by getAvailableBackends() but missing from getPlatformSupport() and --probe
Relevant area(s)
Windows
Brief description of your issue
On a PC where the WSLC backend works, the three discovery paths give different answers:
getAvailableBackends() -> processcontainer, wslc, isolation_session, hyperlight
getPlatformSupport().availableMethods -> processcontainer, isolation_session, hyperlight (no wslc)
wxc-exec --probe -> hyperlightAvailable, isolationSessionAvailable; no WSLC field
#1491 made MicroVM "not detected" deliberate in 1.0.1; WSLC missing from two of the three is not explained. An app
that uses --probe or getPlatformSupport() to decide which backends to offer would not offer WSLC, and WSLC
readiness problems (e.g. Virtual Machine Platform disabled) only show up when a run fails.
Versions: MXC 1.0.1 (npm @microsoft/mxc-sdk, Node 24.15), Windows 11 26300.9711, WSL 3.0.x, Virtual Machine
Platform enabled, wxc-exec --setup-wslc --image python:3.12-alpine done.
Steps to reproduce
- Confirm WSLC works, e.g.
wxc-exec F.jsonwith:{"version": "1.0.0", "containment": "wslc", "containerId": "repro-1", "wslc": {"image": "python:3.12-alpine"}, "process": {"commandLine": "python3 -c 'print(1)'", "timeout": 60000}} - Run
wxc-exec --probe. - In Node: print
getAvailableBackends()andgetPlatformSupport().availableMethodsfrom@microsoft/mxc-sdk.
Expected behavior
All discovery paths agree on WSLC availability, and --probe reports WSLC readiness (ideally with the missing
component when not ready).
Actual behavior
Only getAvailableBackends() lists WSLC; getPlatformSupport() and --probe do not.
Fixed by #1558. On Windows, getPlatformSupport() now gets WSLC availability from getAvailableBackends(), so both list wslc on a PC where WSLC works.