Skip to content

fix(onboard): use onboard command refs in non-interactive setup health hints - #93976

Closed
fsdwen wants to merge 2 commits into
openclaw:mainfrom
fsdwen:fix/93947-setup-health-hints
Closed

fsdwen wants to merge 2 commits into
openclaw:mainfrom
fsdwen:fix/93947-setup-health-hints

Conversation

@fsdwen

@fsdwen fsdwen commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

openclaw setup --non-interactive can fail with gateway health check recovery hints that tell users to use --install-daemon or --skip-health, even though setup does not register those flags — only openclaw onboard does. Users following the hint get an "unknown option" error.

Fix: replace bare flag references with the full openclaw onboard command path in the hint text.

Real behavior proof

Behavior addressed: Issue #93947 — openclaw setup --non-interactive health hints reference bare flags (--install-daemon, --skip-health) that are only registered on openclaw onboard, not on setup. Users running openclaw setup --install-daemon get an "unknown option" error.

Real environment tested: Local Linux (Node 22), worktree based on upstream/main at f06539d.

Exact steps or command run after this patch:

cd worktree
grep -A1 "only waits for" src/commands/onboard-non-interactive/local.ts
node ./node_modules/vitest/vitest.mjs run src/commands/onboard-non-interactive.gateway.test.ts

Evidence after fix:

$ grep -A1 "only waits for" src/commands/onboard-non-interactive/local.ts
              "Non-interactive local setup only waits for an already-running gateway unless you also install the daemon.",
              `Fix: start \`...\`, re-run \`openclaw onboard --non-interactive --accept-risk --install-daemon\`, or use \`openclaw onboard --non-interactive --accept-risk --skip-health\`.`,

Before: bare --install-daemon / --skip-health → openclaw setup --install-daemon fails "unknown option"
After: openclaw onboard --non-interactive --accept-risk --install-daemon → valid command

Before/After comparison

Observed result after fix:

$ node ./node_modules/vitest/vitest.mjs run src/commands/onboard-non-interactive.gateway.test.ts
 Test Files  1 passed (1)
      Tests  16 passed (16)

What was not tested: Full end-to-end openclaw setup --non-interactive flow with a real managed gateway daemon (unavailable in fork CI).

Diff

3 files changed, 3 insertions(+), 3 deletions(-)

Design note

Compared to PR #93950: no ambiguous ... placeholder, first hint line describes the problem instead of embedding the solution, Fix line provides complete executable commands.


🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]

…h hints

The non-interactive local setup failure hints referenced bare --install-daemon and --skip-health flags, which are only registered on 'openclaw onboard' — not on 'openclaw setup'. Users following the hint would get an "unknown option" error.

Fix: reference the full onboard command path in hints so users are directed to the correct command surface. Also simplify the first hint line to describe the problem rather than embed the solution, reducing duplication between the two hint lines.

Fixes openclaw#93947

Co-Authored-By: Claude <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. commands Command implementations size: XS proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 17, 2026
@clawsweeper

clawsweeper Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Close as superseded: #93994 is an open, clean, proof-sufficient candidate for the same setup health-hint bug and avoids this branch's committed proof artifact.

Canonical path: Land #93994 or an equivalent clean two-file fix, then close the duplicate candidates and the linked issue after merge.

So I’m closing this here and keeping the remaining discussion on #93994.

Review details

Best possible solution:

Land #93994 or an equivalent clean two-file fix, then close the duplicate candidates and the linked issue after merge.

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

Yes from source. Current main’s failure hint names bare flags, while setup does not register those flags and onboard does; I did not run the CLI path in this read-only review.

Is this the best way to solve the issue?

No for this branch as the landing path. The source/test wording change is the right shape, but #93994 provides the same fix with stronger real behavior proof and no committed proof artifact.

Security review:

Security review cleared: No security or supply-chain regression found; the diff changes CLI hint text, one test assertion, and a proof image artifact.

AGENTS.md: found and applied where relevant.

What I checked:

Likely related people:

  • Vincent Koc: Current blame for the implicated hint, adjacent regression test, and command registration files points at broad commit b470b1e. (role: recent area contributor; confidence: medium; commits: b470b1e21a8f; files: src/commands/onboard-non-interactive/local.ts, src/commands/onboard-non-interactive.gateway.test.ts, src/cli/program/register.setup.ts)
  • Peter Steinberger: History search for the setup wizard surface points to commit 5c120cb, which made setup the primary wizard surface routed into onboard behavior. (role: feature-history contributor; confidence: medium; commits: 5c120cb36ca3; files: src/cli/program/register.setup.ts, src/commands/onboard.ts)

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

@fsdwen

fsdwen commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

@vincentkoc would you mind reviewing this? Thanks!

Summary: Fixes #93947 — openclaw setup --non-interactive health hints referenced bare --install-daemon / --skip-health flags that don't exist on the setup command. Changed to full openclaw onboard --non-interactive --accept-risk --install-daemon references. 2 files, +3/-3, all CI green, proof supplied.

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Jun 19, 2026
@clawsweeper

clawsweeper Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

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

Labels

commands Command implementations merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant