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
Commit c4d68f6
Browse filesBrowse the repository at this point in the historyBrowse files
fix(setup): stop WSL inspection flake from dead-ending onboarding
Selecting the recommended "Install a local gateway (WSL)" option could end the
setup flow with "Could not inspect WSL" and no way forward, telling the user to
run `wsl --list --quiet` by hand. It reproduces on a machine where that command
succeeds every time when run manually.
Three separate defects combine to produce it.
CommandRunner gave the redirected pipes a flat 250ms grace to reach EOF after
the process exited. The OutputDataReceived callbacks are queued to the thread
pool, so on a saturated pool (a WinUI cold start is exactly that) they can miss
that window even though the process already exited and wrote its output. The
command is then reported with an exit code but empty stdout and stderr, and
every caller that classifies command output reads that as silence. The EOF wait
is now bounded by a short cap instead, clamped by whatever remains of the
caller's own deadline so the accepted timeout is never exceeded. The cap keeps
the existing protection against a surviving descendant holding the pipes open,
which RunAsync_ReturnsWhenDescendantKeepsOutputPipesOpen covers.
InterpretDistroList gated both of its success paths behind !result.TimedOut, so
a run that timed out after wsl.exe had already reported that WSL is not
installed threw instead of using that answer. The output proves no distro can
exist, and WslViabilityInspector already treats that state as Installable rather
than a blocker, so the conclusive answer is now kept.
WelcomePage replaced the option's title with "Checking existing setup..." for
the duration of the check, hiding which option was being acted on, and offered
only Close when inspection failed. The progress ring already carries the busy
state (its automation name is "Checking existing WSL setup"), so the title now
stays put, and a failed inspection offers Try again instead of ending the flow.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01YbwoyZNVT3qnRexUnCLZUx
0 commit comments