Skip to content

[codex] fix setup health hint command surface - #93950

Closed
NianJiuZst wants to merge 1 commit into
openclaw:mainfrom
NianJiuZst:codex/fix-setup-health-hints
Closed

NianJiuZst wants to merge 1 commit into
openclaw:mainfrom
NianJiuZst:codex/fix-setup-health-hints

Conversation

@NianJiuZst

Copy link
Copy Markdown
Contributor

Summary

Fix the non-interactive local setup health hint so it points to the real command surface.

When openclaw setup --non-interactive --accept-risk falls into the onboarding health-check path and no managed gateway was requested, the failure message used to suggest --install-daemon / --skip-health as if they were setup flags. Those flags only exist on openclaw onboard, so the remediation was misleading.

Closes #93947.

Changes

  • keep setup free of onboard-only daemon/health flags in the command registration test
  • update the non-interactive local health failure hint to recommend openclaw onboard --non-interactive --accept-risk ... --install-daemon and ... --skip-health
  • lock the new hint text with a regression test

Verification

  • node scripts/run-vitest.mjs src/cli/program/register.setup.test.ts
  • node scripts/run-vitest.mjs src/commands/onboard-non-interactive.gateway.test.ts
  • .agents/skills/autoreview/scripts/autoreview --mode local
  • env -i HOME="$HOME" PATH="$PATH" TERM=dumb OPENCLAW_STATE_DIR="$TMP_STATE/state" OPENCLAW_CONFIG_PATH="$TMP_STATE/state/openclaw.json" node openclaw.mjs onboard --non-interactive --accept-risk --workspace "$TMP_STATE/workspace" --auth-choice skip --skip-skills --gateway-bind loopback

Real behavior proof

Behavior addressed: non-interactive setup health failure hints no longer tell users to use unsupported setup flags.
Real environment tested: local macOS checkout with built CLI entrypoint and isolated OpenClaw state dir.
Exact steps or command run after this patch: ran the focused Vitest files above, then ran isolated openclaw onboard --non-interactive --accept-risk ... without a running gateway.
Evidence after fix: the failure output now points to openclaw onboard --non-interactive --accept-risk ... --install-daemon and ... --skip-health.
Observed result after fix: the remediation text matches the actual CLI surface instead of suggesting unsupported setup flags.
What was not tested: broad changed lanes / remote Testbox coverage.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: XS proof: supplied External PR includes structured after-fix real behavior proof. labels Jun 17, 2026
@NianJiuZst
NianJiuZst marked this pull request as ready for review June 17, 2026 05:11
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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. labels Jun 19, 2026
@clawsweeper

clawsweeper Bot commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed June 27, 2026, 10:39 PM ET / 02:39 UTC.

Summary
This PR updates the non-interactive local setup health failure hint and tests to point daemon/health recovery at openclaw onboard flags instead of unsupported setup flags.

PR surface: Source 0, Tests +29. Total +29 across 3 files.

Reproducibility: yes. for the original bug: source inspection shows setup --non-interactive reaches the local gateway-health failure path, while setup lacks the flags named by the old hint. Current main no longer reproduces the bad hint because the canonical fix is already merged.

Review metrics: none identified.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

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

Rank-up moves:

  • none.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The PR body describes a local after-fix run, but it does not include terminal output, logs, screenshot, recording, or linked artifact showing the changed CLI output. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Next step before merge

  • [P1] No repair job is needed because the merged canonical PR already fixed the central bug on current main.

Security
Cleared: The diff only changes CLI hint text and tests, with no dependency, workflow, secret, permission, or code-execution surface introduced.

Review details

Best possible solution:

Keep this PR open until a linked canonical PR proves it covers this PR's unique work, or a maintainer confirms closure.

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

Yes for the original bug: source inspection shows setup --non-interactive reaches the local gateway-health failure path, while setup lacks the flags named by the old hint. Current main no longer reproduces the bad hint because the canonical fix is already merged.

Is this the best way to solve the issue?

Yes for the merged canonical fix, not for keeping this PR open. Updating the existing hint and adjacent regression test is the narrow maintainable solution, and current main already has that solution from the merged PR.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d1b917120a47; fix evidence: commit 7c8ca26364b0, main fix timestamp 2026-06-22T18:07:13Z.

Label changes

Label justifications:

  • P3: This is low-risk CLI recovery-hint cleanup in a setup failure path, and current main already contains the canonical fix.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body describes a local after-fix run, but it does not include terminal output, logs, screenshot, recording, or linked artifact showing the changed CLI output. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source 0, Tests +29. Total +29 across 3 files.

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

What I checked:

  • PR close coverage proof: PR close coverage proof kept this PR open against fix(setup): point non-interactive health hints at onboard flags #93994: model PR close coverage proof was incomplete: PR B clearly carries PR A's core behavior and test intent and is already merged as the current canonical fix; PR A's extra setup registration assertion is redundant to the command-boundary evidence and does not require separate review.
  • Repository policy read: Root AGENTS.md was read fully and applied; no scoped AGENTS.md owns src/cli/program or src/commands, and the only maintainer note found is Telegram-specific and unrelated to this CLI setup PR. (AGENTS.md:1, d1b917120a47)
  • Current main corrected the user-facing hint: Current main tells non-daemon local setup users to use --install-daemon on openclaw onboard, and the fix line names openclaw onboard --install-daemon and openclaw onboard --skip-health. (src/commands/onboard-non-interactive/local.ts:345, d1b917120a47)
  • Current main has the regression guard: The adjacent gateway test asserts that the local health-failure message contains the onboard command names for daemon install and health skip recovery. (src/commands/onboard-non-interactive.gateway.test.ts:786, d1b917120a47)
  • Setup does not own the hinted flags: setup registers wizard/non-interactive forwarding flags but not --install-daemon or --skip-health, so the current-main fix preserves the command boundary instead of adding aliases. (src/cli/program/register.setup.ts:23, d1b917120a47)
  • Onboard owns the recovery flags: onboard registers both --install-daemon and --skip-health, matching the command surface now named by the hint. (src/cli/program/register.onboard.ts:163, d1b917120a47)

Likely related people:

  • BK-Z1: Authored the merged canonical PR that changed the current health hint and adjacent regression assertion for the same linked issue. (role: canonical fix author; confidence: high; commits: bbd5a1842be2, 7c8ca26364b0; files: src/commands/onboard-non-interactive/local.ts, src/commands/onboard-non-interactive.gateway.test.ts)
  • steipete: History shows setup-as-primary-wizard and noninteractive onboarding entrypoint work in the same setup/onboard routing boundary. (role: feature-history contributor; confidence: medium; commits: 5c120cb36ca3, c100ae1f36fd; files: src/cli/program/register.setup.ts, src/commands/onboard.ts, src/commands/onboard-non-interactive/local.ts)
  • shakkernerd: Recent history touched the onboard gateway environment/test setup near the regression test that guards this hint path. (role: adjacent test contributor; confidence: medium; commits: 78b33b86d32c; files: src/commands/onboard-non-interactive.gateway.test.ts)
  • vincentkoc: Recent history touched non-interactive onboarding config and CLI/onboard command surfaces adjacent to this setup health path. (role: recent area contributor; confidence: medium; commits: c3e629cbf405, 21728777dfa0; files: src/commands/onboard-non-interactive/local.ts, src/cli/program/register.onboard.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 rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jun 24, 2026
@NianJiuZst NianJiuZst closed this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

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

1 participant