Repository navigation
Closed
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:bulk-filedClawSweeper detected a high recent issue-filing volume from this author.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
Milestone
Description
Summary
Setup can misreport a fresh-WSL DNS failure as CLI installed but not found in any known location during the install-cli step.
The installer currently streams curl into bash. When WSL DNS is not ready and curl exits with code 6 (Could not resolve host: openclaw.ai), the shell pipeline takes the final bash process's successful exit code. Setup then probes for the missing CLI and surfaces the misleading location error.
Expected behavior
- Tolerate a short, transient DNS/network startup delay in a freshly created WSL distro with bounded retries.
- Download the complete installer before executing it.
- Preserve curl's nonzero exit code and stderr when download fails.
- Clean up the temporary installer on both success and failure.
Observed behavior
The failure reproduced twice in one setup run immediately after creating and restarting the managed WSL distro. Both curl attempts reported DNS resolution failure, but each installer command was logged with exit code 0 before CLI path probing failed and setup rolled back.
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:bulk-filedClawSweeper detected a high recent issue-filing volume from this author.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Aug 28, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 7, 2026, 6:44 PM ET / 22:44 UTC.
Summary
Current main and the latest release still contain the failure mechanism. The formally linked repair remains open and includes reported fresh-WSL recovery proof, so this issue remains necessary until that repair lands.
Reproducibility: yes. source establishes the path: curl fails DNS resolution, Bash receives empty input and succeeds, then CLI probing reports the wrong cause. This review did not execute a current-main WSL reproduction.
Next step
Review and land or disposition #1297; its formal linkage and the bulk-filing restriction rule out a competing automated repair.
Review details
Best possible solution:
Setup should complete downloads before execution, retain bounded pipeline-owned retries and precise errors, clean temporary files, and offer visible retry recovery when networking remains unavailable.
Do we have a high-confidence way to reproduce the issue?
Yes, source establishes the path: curl fails DNS resolution, Bash receives empty input and succeeds, then CLI probing reports the wrong cause. This review did not execute a current-main WSL reproduction.
Is this the best way to solve the issue?
Yes, the linked repair targets the correct installer owner and reuses existing retry infrastructure while preserving download failures and cleanup; its reported WSL proof directly exercises the failure and recovery.
AGENTS.md: found and applied where relevant.
Codex review notes: model internal, reasoning medium; reviewed against 88822d342567.
Label changes
Label justifications:
P0: Fresh-install onboarding can roll back after DNS failures while presenting a misleading CLI-location error with no demonstrated in-product recovery.impact:ux-release-blocker: The reported first-run failure requires technical diagnosis of WSL networking rather than an actionable setup recovery path.Evidence reviewed
What I checked:
src/OpenClaw.SetupEngine/InstallCliStep.cs:174, 88822d342567)src/OpenClaw.SetupEngine/CommandRunner.cs:319, 88822d342567)tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs:1951, 88822d342567)src/OpenClaw.SetupEngine/InstallCliStep.cs:174, 88822d342567)src/OpenClaw.SetupEngine/InstallCliStep.cs, b37307cbd51f)Likely related people:
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.fix(setup): retry CLI installer downloads
fix(setup): retry CLI installer downloads
7 remaining items
shanselman commentedon Sep 2, 2026
Follow-up P2 resolved in #1297 at
bdcbeb0a: the exact-command pane is now generated from the production installer command shape, including selected Gateway and official Node versions. Official/custom/invalid cases have deterministic coverage; full local build, Shared (3,873 passed/32 skipped), Tray (2,825 passed), and SetupEngine (1,037 passed) all pass. Current-head hosted checks are pending. No merge performed.shanselman commentedon Sep 2, 2026
Final exact-head status for #1297 at
bdcbeb0a: ClawSweeper re-review is clean and marks it ready for maintainer review. Hosted run https://github.com/openclaw/openclaw-windows-node/actions/runs/33676649045 passed setup-connect, network-recovery, revocation-recovery, CodeQL, and repo hygiene. The aggregate test job again failed only the same unrelated 30-second camera/screen capture-consent timeouts; those shared tests were not changed. No merge performed.fix(setup): securely bound CLI installer retries (#1297)