Repository navigation
fix(cli): restore dashboard Gateway start and install recovery - #202085
roboclaw-bot merged 2 commits into
Conversation
The dashboard readiness probe forwarded its own resolved URL as a probe override, so the daemon status reader classified the native service as diagnostic-only and the documented start/install recovery never ran. Fixes openclaw#202037
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesRestore dashboard start/install recovery while restricting native-service recovery to the selected Gateway endpoint. Example: Run
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR fixes documented dashboard recovery, resolves the prior endpoint-selection finding, and has relevant exact-head live proof; required CI awaits workflow approval. Priority: P0 Before merge
FindingsNone. Agent review detailsHow this fits togetherDashboard resolves its configured endpoint, asks daemon status whether that endpoint is ready and locally recoverable, and invokes existing service lifecycle operations before delivering the Control UI URL. flowchart TD
A[Dashboard command] --> B[Resolve configured endpoint]
B --> C[Gather daemon status]
D[Native service metadata] --> C
C --> E[Readiness and ownership decision]
E --> F[Existing install or start operation]
F --> C
E --> G[Control UI handoff]
Technical reviewBest possible solution: Land the endpoint-preserving recovery fix once the required exact-head checks pass. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically classifies dashboard's internal URL as diagnostic-only and exits before recovery; supplied Linux and Windows evidence corroborates the failure, while this read-only review ran no target code. Is this the best way to solve the issue? The patch repairs classification in the existing status owner, preserves the selected endpoint and explicit-URL transport policy, and reuses existing lifecycle operations without adding persistent state or public options. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8ebcc3bb311c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +35, Tests +35. Total +70 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 20, 2026, 3:53 PM ET / 20:53 UTC (Revision 2). |
|
Thanks for the recovery fix. We’re taking the P1 endpoint-selection fix as a maintainer edit on this PR, so there’s no need to duplicate that work. |
Probe the dashboard-selected endpoint and recover the native service only when it owns that endpoint. Co-authored-by: sallyom <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…202654 * origin/main: (34 commits) fix(ui): restore Skills first-visit asset limits (#202694) fix: restore Skills discovery recovery checks (#202747) fix(database): report disabled memory after a port (#202630) test(ui): settle live event imports before cursor assertions (#202752) fix: keep installed plugins in the Featured list instead of hiding them fix: keep PostgreSQL transcript and health totals numeric (#202629) fix(ui): show only SKILL.md in plugin skill previews fix: preserve the running installation when an agent updates its Gateway (#201570) chore(ui): refresh control ui locales (#202744) fix: show saved child results when idle delivery expires (#202732) perf(state): adopt producer-owned read commands (#202731) fix(cli): restore dashboard Gateway start and install recovery (#202085) fix: make plugin catalog artwork easier to recognize fix: restore queued compaction writer-fence coverage (#202709) fix(ui): remove resting chrome from Customize settings gears chore(ui): refresh control ui locales (#202734) fix: distinguish a recovered gateway from its failed update checks fix(ui): keep known plugin details visible while loading fix(cli): connect through gateway.remote.edgeAuth without a Gateway token fix: make the Plugins catalog clear when disconnected ...
) * feat(gateway): add restricted writer transport and steer discovery * refactor(gateway): retain publication owner across writer expansion * feat: prepare restricted connections for Session Share steering OpenClaw-Publication: d030c287-b7c5-8326-aa7e-a2b07b373ac6 * fix(gateway): distinguish disabled publication purposes at handshake * Publish openclaw/cool-shrimp OpenClaw-Publication: 096bcc30-6af3-892d-a6b9-456f24a4f5ba * merge: bring main into the steering transport branch and regenerate the config baseline * Merge remote-tracking branch 'origin/main' into land/steer-transport-202654 * origin/main: (34 commits) fix(ui): restore Skills first-visit asset limits (#202694) fix: restore Skills discovery recovery checks (#202747) fix(database): report disabled memory after a port (#202630) test(ui): settle live event imports before cursor assertions (#202752) fix: keep installed plugins in the Featured list instead of hiding them fix: keep PostgreSQL transcript and health totals numeric (#202629) fix(ui): show only SKILL.md in plugin skill previews fix: preserve the running installation when an agent updates its Gateway (#201570) chore(ui): refresh control ui locales (#202744) fix: show saved child results when idle delivery expires (#202732) perf(state): adopt producer-owned read commands (#202731) fix(cli): restore dashboard Gateway start and install recovery (#202085) fix: make plugin catalog artwork easier to recognize fix: restore queued compaction writer-fence coverage (#202709) fix(ui): remove resting chrome from Customize settings gears chore(ui): refresh control ui locales (#202734) fix: distinguish a recovered gateway from its failed update checks fix(ui): keep known plugin details visible while loading fix(cli): connect through gateway.remote.edgeAuth without a Gateway token fix: make the Plugins catalog clear when disconnected ... * merge: bring main into the steering transport branch and regenerate the config baseline * merge: bring main into the steering transport branch and regenerate the config baseline * merge: bring main into the steering transport branch and regenerate protocol output Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: vincentkoc <[email protected]>
…law#202085) * fix(cli): restore dashboard Gateway start and install recovery The dashboard readiness probe forwarded its own resolved URL as a probe override, so the daemon status reader classified the native service as diagnostic-only and the documented start/install recovery never ran. Fixes openclaw#202037 * fix(cli): keep dashboard recovery on the selected Gateway Probe the dashboard-selected endpoint and recover the native service only when it owns that endpoint. Co-authored-by: sallyom <[email protected]> --------- Co-authored-by: sallyom <[email protected]>
…claw#202654) * feat(gateway): add restricted writer transport and steer discovery * refactor(gateway): retain publication owner across writer expansion * feat: prepare restricted connections for Session Share steering OpenClaw-Publication: d030c287-b7c5-8326-aa7e-a2b07b373ac6 * fix(gateway): distinguish disabled publication purposes at handshake * Publish openclaw/cool-shrimp OpenClaw-Publication: 096bcc30-6af3-892d-a6b9-456f24a4f5ba * merge: bring main into the steering transport branch and regenerate the config baseline * Merge remote-tracking branch 'origin/main' into land/steer-transport-202654 * origin/main: (34 commits) fix(ui): restore Skills first-visit asset limits (openclaw#202694) fix: restore Skills discovery recovery checks (openclaw#202747) fix(database): report disabled memory after a port (openclaw#202630) test(ui): settle live event imports before cursor assertions (openclaw#202752) fix: keep installed plugins in the Featured list instead of hiding them fix: keep PostgreSQL transcript and health totals numeric (openclaw#202629) fix(ui): show only SKILL.md in plugin skill previews fix: preserve the running installation when an agent updates its Gateway (openclaw#201570) chore(ui): refresh control ui locales (openclaw#202744) fix: show saved child results when idle delivery expires (openclaw#202732) perf(state): adopt producer-owned read commands (openclaw#202731) fix(cli): restore dashboard Gateway start and install recovery (openclaw#202085) fix: make plugin catalog artwork easier to recognize fix: restore queued compaction writer-fence coverage (openclaw#202709) fix(ui): remove resting chrome from Customize settings gears chore(ui): refresh control ui locales (openclaw#202734) fix: distinguish a recovered gateway from its failed update checks fix(ui): keep known plugin details visible while loading fix(cli): connect through gateway.remote.edgeAuth without a Gateway token fix: make the Plugins catalog clear when disconnected ... * merge: bring main into the steering transport branch and regenerate the config baseline * merge: bring main into the steering transport branch and regenerate the config baseline * merge: bring main into the steering transport branch and regenerate protocol output Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: vincentkoc <[email protected]>
* fix(cli): restore dashboard Gateway start and install recovery The dashboard readiness probe forwarded its own resolved URL as a probe override, so the daemon status reader classified the native service as diagnostic-only and the documented start/install recovery never ran. Fixes #202037 * fix(cli): keep dashboard recovery on the selected Gateway Probe the dashboard-selected endpoint and recover the native service only when it owns that endpoint. Co-authored-by: sallyom <[email protected]> --------- Co-authored-by: sallyom <[email protected]> (cherry picked from commit ed8f4e6) Co-authored-by: RomneyDa <[email protected]> Backport companions: no same-path followups; 39bcc3c Session Share steering is unrelated: (cherry picked from commit edd51367bf05689d9ca4a3ff038d40b3789ea1a1)
Closes #202037
What Problem This Solves
openclaw dashboardcould never start or install the Gateway when it was stopped or absent: the command printed "Use the owning environment or supervisor to start or repair the selected Gateway." and exited 1, even with--yesor after accepting the prompt, so the documented start/install recovery never ran and the usualgateway start/gateway runhints were suppressed.Why This Change Was Made
gateway status --urlremains diagnostic-only.gateway status --urlkeeps classifying explicit URL overrides as diagnostic-only (intended and already tested instatus.gather.test.ts); externally supervised or non-default-identity targets remain unrecoverable from the dashboard.User Impact
openclaw dashboardoffers to start or install the background Gateway service (or does so immediately with--yes) and prints theopenclaw gateway start/openclaw gateway runhints again instead of the misleading supervisor message;dashboard --jsonstill never installs or starts a service.Evidence
Maintainer correction: exact-head Linux proof
Verified commit
b15f9564fc30a49ba29de63ebbafb0977bf8444aon a disposable AWS Linux VM with a real systemd user manager. Built the CLI and Control UI withpnpm build:ci-artifacts.dashboard --no-openanddashboard --yes --no-openexited successfully, printed the dashboard URL on 28900, and left the native service inactive.dashboard --yes --no-openinstalled or started the native service as appropriate and returned the real Control UI on 28789 in both cases.dashboard --jsonTwo status-boundary cases failed on the original PR head and passed with the correction. All 86 focused tests across daemon status, dashboard, and Gateway readiness passed; formatting and
git diff --checkpassed. Browser launch, clipboard delivery, and interactive-prompt acceptance were not part of this headless run.Independent live Linux systemd verification (original PR head)
Tested the built CLI and Control UI from exact PR head
e3df91f68298c53d8198d233c046dc2e387c230bon a disposable AWS Crabbox VM with a fresh systemd user, real loopback Gateway, and no model-provider credentials. Built withpnpm build:ci-artifactsand ran the production CLI entry point,node openclaw.mjs dashboard --yes --no-open.dashboard --jsondashboard --yes --no-openactive, and printedDashboard URL: http://127.0.0.1:28789/dashboard-proof/.dashboard --yes --no-openStarted systemd service: openclaw-gateway.service, reachedactive, and printed the same dashboard URL.In both recovery cases, an independent HTTP request returned the actual OpenClaw Control UI document; a follow-up
dashboard --jsonreturnedok: true, port28789, and a one-time browser pairing URL (not included here).--no-openwas intentional: interactive prompting and browser launch/pairing were not exercised. The VM lease was released after verification.Contributor's original Linux verification
{ "before": { "callShape": "old: rpc:{url:<dashboard-resolved wsUrl>}", "serviceTargetRole": "diagnostic-only", "gatewayLooksStopped": true, "nativeServiceTargetsGateway": false, "canStartService": false, "recoveryBranchReachable": false }, "after": { "callShape": "fixed: rpc:{}", "serviceTargetRole": "target", "gatewayLooksStopped": true, "nativeServiceTargetsGateway": true, "canStartService": true, "shouldInstall": true, "recoveryBranchReachable": true } }dashboardcommand (no TTY, no--yes) in the same environment now printsGateway is not running.followed byRun "openclaw gateway start" to start a managed gateway.andRun "openclaw gateway run" for a foreground gateway., and the install/start recovery branch is reachable (canStartService: true,shouldInstall: true). On main @ 73a53a5 the identical run printedUse the owning environment or supervisor to start or repair the selected Gateway.(exit 1) with the recovery branch unreachable.Gateway is not running./Run "openclaw gateway status --deep" for details./Use the owning environment or supervisor to start or repair the selected Gateway.— exactly the reported symptom, including the suppressedgateway start/gateway runhints.--yesby the independent Linux verification above. A separate Windows reproduction reported successful install and dashboard delivery on the second invocation, but did not test this exact head.