Repository navigation
Labels
Area-DotNet-SDK.NET SDK APIs, native bindings, packaging, samples, or tests..NET SDK APIs, native bindings, packaging, samples, or tests.Area-Node-SDKNode.js and TypeScript SDK APIs, bindings, packaging, CLI integration, or tests.Node.js and TypeScript SDK APIs, bindings, packaging, CLI integration, or tests.Area-Rust-SDKPublic Rust SDK APIs and integration with the MXC execution engine.Public Rust SDK APIs and integration with the MXC execution engine.Backend-WSLCWindows WSL Container backend behavior or integration.Windows WSL Container backend behavior or integration.In-PRThe issue has an associated pull request in progress.The issue has an associated pull request in progress.Issue-TaskEngineering, maintenance, or operational work that is not a bug or feature request.Engineering, maintenance, or operational work that is not a bug or feature request.OS-WindowsApplies specifically to Windows hosts or Windows behavior.Applies specifically to Windows hosts or Windows behavior.
Milestone
Description
Description of the task
Via WslcGetProcessIOHandle (https://wsl.dev/api-reference/c/process-apis/wslcgetprocessiohandle/)
&
typedef enum WslcProcessIOHandle
{
WSLC_PROCESS_IO_HANDLE_STDIN = 0,
WSLC_PROCESS_IO_HANDLE_STDOUT = 1,
WSLC_PROCESS_IO_HANDLE_STDERR = 2
} WslcProcessIOHandle;https://wsl.dev/api-reference/c/enumerations/wslcprocessiohandle/
Additional context
No response
Release tracking
Allow programs in WSLC to receive input from a file, pipe, or SDK, both when starting a new container and when running a command in an existing container. Reopened to track this unfinished implementation rather than create a duplicate issue. The SDK prerequisite is no longer blocked.
- Update the WSLc SDK prerequisite: [WSLC] Bump WSLc SDK to 3.0.3 #1550.
- Send input to commands in existing containers: [WSLC] (1/2) Forward host stdin to state-aware exec #1562.
- Send input when starting a new container: [WSLC] (2/2) Forward host stdin to create-and-run execution #1564.
Keep this issue open until both input-forwarding PRs are merged. #1562 is part of the work; the final PR, #1564, closes the issue.
Metadata
Metadata
Assignees
Labels
Area-DotNet-SDK.NET SDK APIs, native bindings, packaging, samples, or tests..NET SDK APIs, native bindings, packaging, samples, or tests.Area-Node-SDKNode.js and TypeScript SDK APIs, bindings, packaging, CLI integration, or tests.Node.js and TypeScript SDK APIs, bindings, packaging, CLI integration, or tests.Area-Rust-SDKPublic Rust SDK APIs and integration with the MXC execution engine.Public Rust SDK APIs and integration with the MXC execution engine.Backend-WSLCWindows WSL Container backend behavior or integration.Windows WSL Container backend behavior or integration.In-PRThe issue has an associated pull request in progress.The issue has an associated pull request in progress.Issue-TaskEngineering, maintenance, or operational work that is not a bug or feature request.Engineering, maintenance, or operational work that is not a bug or feature request.OS-WindowsApplies specifically to Windows hosts or Windows behavior.Applies specifically to Windows hosts or Windows behavior.
Activity
SohamDas2021 commentedon Sep 24, 2026
I was already tracking this in ADO and this is blocked on WSLC SDK. Context below:
WslcGetProcessIOHandle(WSLC_PROCESS_IO_HANDLE_STDIN) returns E_INVALIDARG. CreateRelayedProcessIO creates and relays a stdin pipe, but only when WSLCProcessFlagsStdin is set (otherwise it closes stdin outright), and wslc exec -i sets it, which is why the CLI has working stdin and we don't.
The gap looks confined to the SDK layer: CopyProcessSettingsToRuntime leaves WSLCProcessOptions::Flags unset under a // TODO: No user access, and WslcProcessSettings exposes no setter for it, so no SDK caller can reach stdin.
Reached out to WSLC SDK team- microsoft/WSL#41695
[-]WSLc state-aware daemon should expose native STDIO handles[/-][+][WSLC] [BLOCKED ON WSLCSDK] State-aware daemon should expose native STDIO handles[/+]SohamDas2021 commentedon Sep 24, 2026
Tracked in ADO
[-][WSLC] [BLOCKED ON WSLCSDK] State-aware daemon should expose native STDIO handles[/-][+][WSLC] Allow commands to receive input[/+]