Skip to content

fix(setup): point non-interactive health hints at onboard flags - #93994

Merged
openclaw-clownfish[bot] merged 1 commit into
openclaw:mainfrom
zhouhe-xydt:fix/93947-setup-health-hints
Jun 22, 2026
Merged

openclaw-clownfish[bot] merged 1 commit into
openclaw:mainfrom
zhouhe-xydt:fix/93947-setup-health-hints

Conversation

@zhouhe-xydt

Copy link
Copy Markdown
Contributor

Summary

  • Problem: openclaw setup --non-interactive prints recovery hints that mention --install-daemon and --skip-health, but those flags are only registered on openclaw onboard, not on openclaw setup.
  • Solution: Update the non-interactive local health-failure hint to reference openclaw onboard --install-daemon and openclaw onboard --skip-health.
  • What changed: src/commands/onboard-non-interactive/local.ts (health-failure hint text) and src/commands/onboard-non-interactive.gateway.test.ts (regression assertion).
  • What did NOT change: CLI flag registration, health-check logic, or output formatting helpers.

Fixes #93947

Real behavior proof

  • Behavior or issue addressed: Users running openclaw setup --non-interactive and hitting a local gateway health failure were told to use flags that setup does not accept.
  • Real environment tested: Linux x86_64, Node v22.22.0, local source checkout at upstream/main (e2fa4f3).
  • Exact steps or command run after this patch:
    pnpm build
    HOME=$(mktemp -d) node openclaw.mjs setup --non-interactive --accept-risk --mode local --workspace /tmp/oc-proof-workspace
  • Evidence after fix: Terminal output shows the corrected hint:
    Gateway did not become reachable at ws://127.0.0.1:18789.
    Fix: run `openclaw doctor --fix`.
    Non-interactive local setup only waits for an already-running gateway unless you pass `--install-daemon` to `openclaw onboard`.
    Fix: start `openclaw gateway run`, re-run `openclaw onboard --install-daemon`, or use `openclaw onboard --skip-health`.
    
  • Observed result after fix: The recovery hint no longer suggests unsupported setup flags; it points to openclaw onboard --install-daemon / --skip-health.
  • What was not tested: macOS/Windows shell escaping; daemon-install failure path hint (unchanged).

Regression Test Plan

  • Coverage level: Unit test
  • Target test file: src/commands/onboard-non-interactive.gateway.test.ts
  • Scenario locked in: Local health failure without daemon install asserts that the hint references openclaw onboard --install-daemon and openclaw onboard --skip-health.
  • Why this is the smallest reliable guardrail: It exercises the exact failure path and locks the corrected command surface in the user-facing message.

Root Cause

  • Root cause: The health-failure hint was written assuming the current command accepts --install-daemon/--skip-health. When invoked via setup, those flags are not registered, so the hint points to a non-existent CLI surface.
  • Missing detection / guardrail: No test asserted the full command name in the hint, allowing the stale self-referential wording to persist.

The recovery hint printed by setup --non-interactive referenced --install-daemon
and --skip-health, which are only registered on openclaw onboard. Update the
message to reference openclaw onboard --install-daemon and
openclaw onboard --skip-health.

Fixes openclaw#93947
@clawsweeper

clawsweeper Bot commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 21, 2026, 8:15 PM ET / 00:15 UTC.

Summary
The branch updates the local non-interactive setup gateway-health failure hint and its regression assertion to point daemon/health recovery at openclaw onboard flags.

PR surface: Source 0, Tests 0. Total 0 across 2 files.

Reproducibility: yes. Source inspection gives a high-confidence path: setup --non-interactive reaches the local gateway-health failure path, while setup lacks the two flags named by the current hint.

Review metrics: none identified.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #93947
Summary: The open issue is the canonical report for the unsupported setup health-hint flags; this PR and another open PR are candidate fixes, while closed sibling PRs are superseded attempts.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🐚 platinum hermit
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Risk before merge

  • [P1] Another open PR targets the same canonical issue, so maintainers should land one canonical fix and close the remaining duplicate candidate afterward.

Maintainer options:

  1. Decide the mitigation before merge
    Land this PR or an equivalent proof-sufficient narrow fix, then close the canonical issue and duplicate candidate PRs after main contains the corrected hint.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No automated repair is needed; maintainers should choose one canonical linked fix and close duplicate candidates after landing.

Security
Cleared: The diff only changes CLI hint text and a unit-test assertion, with no security-sensitive code execution, dependency, workflow, secret, or permission surface changed.

Review details

Best possible solution:

Land this PR or an equivalent proof-sufficient narrow fix, then close the canonical issue and duplicate candidate PRs after main contains the corrected hint.

Do we have a high-confidence way to reproduce the issue?

Yes. Source inspection gives a high-confidence path: setup --non-interactive reaches the local gateway-health failure path, while setup lacks the two flags named by the current hint.

Is this the best way to solve the issue?

Yes. Updating the implicated hint and adjacent regression assertion is the narrow maintainable fix; adding duplicate setup flags would create a second command surface for onboard-owned behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1f6ae32cabb9.

Label changes

Label justifications:

  • P3: This is a low-risk CLI recovery-hint correction in a setup failure path, with no config, migration, auth, dependency, or runtime logic change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body includes after-fix terminal output from a real source checkout showing the corrected setup --non-interactive health-failure hint.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes after-fix terminal output from a real source checkout showing the corrected setup --non-interactive health-failure hint.
Evidence reviewed

PR surface:

Source 0, Tests 0. Total 0 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 2 2 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 3 3 0

What I checked:

Likely related people:

  • Shakker: Current blame in this checkout points the local health hint, adjacent test, and setup/onboard registrations to this recent commit. (role: recent area contributor; confidence: medium; commits: c6386178973d; files: src/commands/onboard-non-interactive/local.ts, src/commands/onboard-non-interactive.gateway.test.ts, src/cli/program/register.setup.ts)
  • steipete: History shows Peter Steinberger carried the setup/onboard wizard refactors that made setup a primary wizard surface, which is adjacent to this command-routing behavior. (role: feature-history contributor; confidence: medium; commits: 5c120cb36ca3, 656848dcd7d0; files: src/cli/program/register.setup.ts, src/commands/onboard.ts, src/commands/onboard-non-interactive/local.ts)
  • B.K.: Recent history touched the non-interactive local setup gateway health/auth area, so this person is a secondary routing candidate for nearby behavior. (role: adjacent contributor; confidence: low; commits: 6878c1944953; files: src/commands/onboard-non-interactive/local.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jun 19, 2026
@openclaw-clownfish
openclaw-clownfish Bot merged commit 7c8ca26 into openclaw:main Jun 22, 2026
218 of 227 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 23, 2026
…claw#93994)

The recovery hint printed by setup --non-interactive referenced --install-daemon
and --skip-health, which are only registered on openclaw onboard. Update the
message to reference openclaw onboard --install-daemon and
openclaw onboard --skip-health.

Fixes openclaw#93947
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setup --non-interactive health hints point to unsupported flags

1 participant