Repository navigation
[codex] fix setup health hint command surface - #93950
NianJiuZst wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 27, 2026, 10:39 PM ET / 02:39 UTC. Summary PR surface: Source 0, Tests +29. Total +29 across 3 files. Reproducibility: yes. for the original bug: source inspection shows Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Next step before merge
Security Review detailsBest 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 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 changesLabel justifications:
Evidence reviewedPR surface: Source 0, Tests +29. Total +29 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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
|
Summary
Fix the non-interactive local setup health hint so it points to the real command surface.
When
openclaw setup --non-interactive --accept-riskfalls into the onboarding health-check path and no managed gateway was requested, the failure message used to suggest--install-daemon/--skip-healthas if they weresetupflags. Those flags only exist onopenclaw onboard, so the remediation was misleading.Closes #93947.
Changes
setupfree of onboard-only daemon/health flags in the command registration testopenclaw onboard --non-interactive --accept-risk ... --install-daemonand... --skip-healthVerification
node scripts/run-vitest.mjs src/cli/program/register.setup.test.tsnode scripts/run-vitest.mjs src/commands/onboard-non-interactive.gateway.test.ts.agents/skills/autoreview/scripts/autoreview --mode localenv -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 loopbackReal behavior proof
Behavior addressed: non-interactive setup health failure hints no longer tell users to use unsupported
setupflags.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-daemonand... --skip-health.Observed result after fix: the remediation text matches the actual CLI surface instead of suggesting unsupported
setupflags.What was not tested: broad changed lanes / remote Testbox coverage.