Skip to content

preflight-wsl UTF-16 parsing bug still present in v0.6.0 (re: #660 closed prematurely) #661

@panic-Patrick

Description

@panic-Patrick

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:

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

No one assigned

    Labels

    P1Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions