Repository navigation
Description
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.Current main already normalizes WSL command output before version parsing, so the reported UTF-16-style NUL-byte output no longer blocks
preflight-wsl; the fix is present in the v0.6.0 tag.I found the merged PR that appears to have closed this: #567: Chat: render in-bubble Allow/Deny approval banner + harden plumbing.
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the current v0.6.0 setup-engine behavior that strips NUL and BOM characters before parsing WSL version output.
Do we have a high-confidence way to reproduce the issue?
No Windows runtime reproduction was run in this Linux checkout, but the source path is clear: NUL-byte WSL version text is normalized before the version regex on current main.
Is this the best way to solve the issue?
Yes. Removing NUL/BOM characters at the WSL parsing boundary is the narrow fix for UTF-16-style ASCII output and preserves the existing preflight behavior.
Security review:
Security review: This is a non-PR issue triage item with no patch security surface to review.
AGENTS.md: found, but no applicable review policy affected this item.
What I checked:
- Current source normalizes WSL version output:
PreflightWslStepcombines stdout/stderr, normalizes the text, and passes it intoWslInstallSupport.TryParseWslVersion;WslInstallSupport.Normalizeremoves\0and BOM characters before the regex runs. (src/OpenClaw.SetupEngine/SetupSteps.cs:444, 53ff55aff974)- Git history ties the normalization to the released setup implementation:
git blameshows the version parser, preflight version call, andNormalizehelper all come from commit 7d9152f. (src/OpenClaw.SetupEngine/SetupSteps.cs:162, 7d9152f427a3)- Release provenance:
git tag --containsreports v0.6.0 contains commit 7d9152f, and inspectingv0.6.0:src/OpenClaw.SetupEngine/SetupSteps.csconfirms the NUL-stripping normalization is in that tag. (src/OpenClaw.SetupEngine/SetupSteps.cs:162, 7d9152f427a3)Likely related people:
- RBrid: The current WSL preflight parser, NUL/BOM normalization helper, setup command runner, and nearby tests are all attributed by blame/history to the release commit authored by this GitHub account. (role: recent setup-engine contributor; confidence: high; commits: 7d9152f427a3; files:
src/OpenClaw.SetupEngine/SetupSteps.cs,src/OpenClaw.SetupEngine/CommandRunner.cs,tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs)Codex review notes: model gpt-5.5, reasoning high; reviewed against 53ff55aff974; fix evidence: merged PR #567, release v0.6.0, commit 7d9152f427a3.
Originally posted by @clawsweeper in #660
The bot incorrectly closed this. The fix is NOT present in v0.6.0.
I just tested v0.6.0 (OpenClawCompanion-Setup-x64.exe) and it still
fails with the identical error. Log from v0.6.0 run at 06:32 UTC today:
{"StepId":"preflight-wsl","Event":"completed","Outcome":"FailedTerminal",
"Detail":"WSL version output did not include a parseable WSL version..."}
System: Windows 10.0.26200.0, WSL 2.7.3.0 (fully updated)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 3, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 3, 2026, 2:52 AM ET / 06:52 UTC.
Summary
Keep this issue open: current main and v0.6.0 strip NUL/BOM characters, but the parser still only accepts
WSL version:with whitespace, while the reported sample includes the hyphenatedWSL-Version:form that remains unparsable.Reproducibility: yes. from source inspection, though not by running the Windows installer here. After current normalization, the reported
WSL-Version:label still cannot match the parser'sWSL\s+version:regex, sopreflight-wslcan still reach the reported terminal failure.Next step
This is a focused setup-engine parser/test repair with clear files and no product or security decision blocker.
Review details
Best possible solution:
Land a narrow setup-engine parser fix with regression coverage for NUL-separated and hyphenated WSL version output while preserving the existing minimum-version and environment-diagnostic behavior.
Do we have a high-confidence way to reproduce the issue?
Yes from source inspection, though not by running the Windows installer here. After current normalization, the reported
WSL-Version:label still cannot match the parser'sWSL\s+version:regex, sopreflight-wslcan still reach the reported terminal failure.Is this the best way to solve the issue?
Yes, the best path is a narrow parser/test repair. It should accept the observed hyphenated/NUL-separated WSL label without changing setup policy, version thresholds, or unrelated WSL diagnostics.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
wsl.exe --versionbytes should be preserved from reporter logs or a Windows smoke when fixing.WSL-Version:form without treating unrelated command output numbers as a valid WSL version.Codex review notes: model gpt-5.5, reasoning high; reviewed against 53ff55aff974.
Label changes
Label changes:
P1: The terminal preflight failure blocks setup for affected Windows users with otherwise supported WSL installations.impact:other: The affected surface is installer/setup preflight availability, which is maintainer-visible but outside the specific auth, message, session, security, or crash-loop labels.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P1: The terminal preflight failure blocks setup for affected Windows users with otherwise supported WSL installations.impact:other: The affected surface is installer/setup preflight availability, which is maintainer-visible but outside the specific auth, message, session, security, or crash-loop labels.Evidence reviewed
Acceptance criteria:
What I checked:
WslInstallSupport.TryParseWslVersionnormalizes the string, then matches onlyWSL\s+version:before the version number; that does not cover the reported normalizedWSL-Version:shape. (src/OpenClaw.SetupEngine/SetupSteps.cs:55, 53ff55aff974)PreflightWslStepcombines stdout/stderr, normalizes them, and returns the exact terminal failure whenTryParseWslVersionreturns false. (src/OpenClaw.SetupEngine/SetupSteps.cs:444, 53ff55aff974)WSL-Version:into the whitespace form required by the regex. (src/OpenClaw.SetupEngine/SetupSteps.cs:162, 53ff55aff974)WSL version: 2.7.3.0case but not NUL-separated or hyphenatedWSL-Version:output. (tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs:496, 53ff55aff974)v0.6.0:src/OpenClaw.SetupEngine/SetupSteps.csshows the sameWSL\s+version:regex, andgit diff v0.6.0..HEAD -- src/OpenClaw.SetupEngine/SetupSteps.cs tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.csproduced no setup parser/test changes. (src/OpenClaw.SetupEngine/SetupSteps.cs:55, 7d9152f427a3)W^@S^@L^@-^@V...; after NUL stripping, that becomes a hyphenated label rather than the current parser's whitespace label.Likely related people:
src/OpenClaw.SetupEngine/SetupSteps.cs,src/OpenClaw.SetupEngine/CommandRunner.cs,tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs)src/OpenClaw.SetupEngine/SetupSteps.cs,src/OpenClaw.SetupEngine/CommandRunner.cs,tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.jdominguez81 commentedon Jun 3, 2026
I can reproduce this on a Spanish Windows install.
PowerShell output:
Versión de WSL: 2.7.3.0
OpenClaw Companion v0.6.0 fails at preflight-wsl with:
WSL version output did not include a parseable WSL version.
It looks like the setup engine expects the English "WSL version:" label and does not handle localized WSL output such as Spanish "Versión de WSL:".
EAGDuelks commentedon Jun 3, 2026
Same in Germany:
Windows-Version: 10.0.26200.8457
WSL-Version: 2.7.3.0
OpenClaw Setup failed at preflight-wsl
Output contains UTF-16/NUL bytes in setup log
German localized output: WSL-Version
JustAmply commentedon Jun 3, 2026
I can reproduce this as well on a German Windows installation.
The setup fails at the same
preflight-wslstep, even thoughwsl.exe --versionexits successfully with exit code0.Environment:
Relevant log excerpt:
The captured stdout contains a valid WSL version, but it is localized and appears to contain NUL bytes:
Rendered normally, this is:
So this looks like the same issue, with one additional detail: the parser may also be language-dependent. On German Windows, the label is
WSL-Version, notWSL version.A robust fix probably needs both:
WSL version:label match, or accepting localized variants / parsing the version more defensivelyfix(setup): accept hyphenated and localized WSL version labels in pre…
github-actions commentedon Jun 3, 2026
fvnks commentedon Jun 3, 2026
same here!
ranjeshj commentedon Jun 3, 2026
There’s a potential mitigation in PR #666 that should handle the reported German and Spanish cases more robustly.
The tricky part is that
wsl.exe --versionappears to return localized, human-readable output, so matching English labels likeWSL version:is fragile. The PR now avoids matching the localized label text and instead looks for the stableWSLproduct token on a line with a semantic version, while avoiding adjacent component lines likeWSLg-Version,Windows-Version, and kernel versions.If anyone who can reproduce this on a localized Windows install has a chance to try the PR build/branch, that would be very helpful. Also open to better ideas here: if there’s a more reliable locale-independent way to get the installed WSL package/version than parsing
wsl.exe --version, that would likely be preferable.christineyan4 commentedon Jun 3, 2026
I was able to verify that the fix in PR #666 resolves the WSL version error on a Chinese-localized version of Windows--successfully got through the setup wizard and connected to the gateway and chat.
fix(setup): parse WSL version independent of locale
ranjeshj commentedon Jun 3, 2026
PR #666 has been merged and should be included in the next release.
We are keeping this issue open for now so the fix can be verified more widely once it is available in a release. The underlying problem here is tricky because
wsl.exe --versionoutput is localized, so the merged change avoids matching translated label text and instead parses the stableWSLproduct-version line structurally.iamfineliliang-web commentedon Jun 4, 2026
Also reproduced on v0.6.2.0 (installed via OpenClaw.Tray.WinUI 0.6.2.0). System locale zh-CN, code page 936, WSL 2.7.3.0 / kernel 6.6.114.1-1 confirmed working. The master-branch fix in WslInstallSupport.TryParseWslVersion (per-line WSL token + semantic-version match) is exactly what's needed, but it hasn't been backported to the 0.6.x release channel — every user installing the current shipped Windows binary hits this. Pinging for a 0.6.3 patch release.
shanselman commentedon Jun 7, 2026
No additional code fix looks needed on
master: #666 is merged and addresses the localized / hyphenated / UTF-16wsl.exe --versionparsing path.Keeping this open for the remaining release-channel verification/backport question noted above, since users on the current 0.6.x installer can still hit it until a build containing #666 is shipped and verified.
TurboTheTurtle commentedon Jun 13, 2026
Release-channel Windows runtime proof for #661.
I verified the latest stable release asset,
v0.6.3, on a real Windows runtime (ANDY-DESKTOP, Windows NT10.0.26200.0) with realwsl.exe --versionoutput.Release asset used:
The release ZIP contains
SetupEngine/OpenClaw.SetupEngine.dll. I loaded that release DLL from a small net10 harness and invokedWslInstallSupport.TryParseWslVersionagainst this machine's actualwsl.exe --versionoutput.Observed raw runtime output shape:
Release-binary parse result:
I also ran the focused parser regression tests from current
mainon the same Windows PC after installing the repo-pinned .NET SDK10.0.100into a user-local.dotnet10folder:Those 33 tests cover English, German/hyphenated, Spanish, Chinese, Japanese, the 22 Microsoft WSL localized package-version labels, NUL-stripped UTF-16 simulations, and adjacent
WSLg/Windows/ kernel false-positive guards.This confirms the released
v0.6.3x64 setup-engine binary parses a real NUL-interleaved Windows WSL version response that would have hit the old preflight parsing bug.@clawsweeper re-review
github-actions commentedon Jun 13, 2026
🤖 This is an automated response from Repo Assist.
Just noting a helpful data point: as of today (2026-06-13),
@TurboTheTurtlehas posted release-channel runtime proof confirming that v0.6.3 correctly parses real NUL-interleaved WSL version output on Windows NT 10.0.26200.0.The key result from their test:
And the focused parser regression suite (33 tests covering English, German, Spanish, Chinese, Japanese, and the 22 Microsoft WSL localized labels) passes fully on current
main.This appears to confirm the fix from PR #666 is working correctly in the released v0.6.3 binary. The original
preflight-wslparsing failure should no longer occur on non-English Windows systems with the current installer.Maintainers: this issue looks ready to close now that the fix has been independently verified in the release binary. Happy to defer to the team's judgment on timing.
Add this agentic workflows to your repo
To install this agentic workflow, run
clawsweeper commentedon Jun 15, 2026
🦞⚠️
Automatic implementation stopped before completion.
Reason: The automatic implementation worker stopped before all deterministic gates completed. Open the workflow run for the exact blocker.
Worker: https://github.com/openclaw/clawsweeper/actions/runs/27583082843
TurboTheTurtle commentedon Jun 16, 2026
Current
mainalready contains the localized / hyphenated / NUL-stripped WSL version parser fix and regression coverage from the merged #666 path.I rechecked the current branch at
d392f7d4and ran the focused setup-engine parser coverage:The current tests cover
WSL-Version, SpanishVersión de WSL, localized Microsoft package-version labels, and NUL-stripped UTF-16 output. I do not see a remaining source fix to PR againstmain; this issue now looks like a release-channel verification/backport tracking item rather than an unfixed parser bug on the default branch.@clawsweeper re-review
TurboTheTurtle commentedon Jun 16, 2026
@clawsweeper re-review
shanselman commentedon Jun 27, 2026
Closing as fixed/verified on current main. I re-ran the focused parser coverage for the reported path:
I also re-ran the full setup-engine suite after the current setup changes:
Current main covers localized labels, hyphenated
WSL-Version, and NUL-stripped UTF-16 WSL output. The release-channel v0.6.3 proof already posted above confirms the fixed parser also works against real Windowswsl.exe --versionoutput.