Repository navigation
Conversation
Rebuild reset OpenClaw gateway.controlUi.allowedOrigins to loopback because the managed replacement profile and the custom-image recreate path hardcoded http://127.0.0.1:<port>. Replay the registry's dashboardExternalUrl instead, falling back to the previous profile's external URL for older records, and rebind it to the replacement dashboard port. An exported CHAT_UI_URL during rebuild is ignored with an explicit warning that names how to change the origin. --control-ui-port now selects only the port and keeps the CHAT_UI_URL host. Re-onboarding a running OpenClaw sandbox with a new or removed origin says that a rebuild applies it.
…g generator Add NEMOCLAW_DASHBOARD_ORIGINS to the OpenClaw config generator. Each entry is a bare origin that keeps its own port; a remote origin must use https. The generator adds the origins to gateway.controlUi.allowedOrigins after the loopback and CHAT_UI_URL origins. Add the host-side parser that onboarding will use for the flag and environment value. Refs #13177
Add a repeatable onboard --dashboard-origin flag and NEMOCLAW_DASHBOARD_ORIGINS for browser origins that keep their own port, such as a proxy on 8443 in front of the dashboard on 18789. Each value is a bare origin; a remote origin must use https. The origins are recorded in the sandbox registry and in an optional extraOrigins key of the OpenClaw managed startup profile. The managed image adds them to gateway.controlUi.allowedOrigins. The profile omits the key when no origin is set, so existing profiles stay unchanged. Rebuild replays the recorded origins, and re-running onboard records or clears them with a note that a rebuild applies the change. Onboarding refuses the flag for Dockerfile builds and for agents other than OpenClaw. Refs #13177
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage/plugin
View coverage of the 10 most impacted files.
TypeScript / code-coverage/cli
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Live onboard and rebuild with an extra originRun against this PR's head
Local setup differences from a release install:
|
The managed startup runtime bundle changed for dashboard origins, and Pi images copy that bundle. Refresh both Pi qualification receipts from the AMD64 and ARM64 Pi candidate contracts published by workflow run 38661431968, attempt 1, for 1e1ee70. Update the candidate authority to their exact SHA-256 digests and the image contract test to the reviewed bundle digest. Refs #13177
Address the PR Review Advisor findings on #13218: - The config generator no longer repeats the origin policy. The managed startup profile validates origins with parseDashboardOrigins before mapping them; the generator only refuses an entry that is not a bare origin. - A clone now records the rebound profile's extra origins on its registry entry, so a later rebuild of the clone keeps them. - The removal procedure now says to unset NEMOCLAW_DASHBOARD_ORIGINS too. Refs #13177
PR Review Advisor findings on
|
…nored Rebuild replays the dashboard origins recorded at onboarding. An exported NEMOCLAW_DASHBOARD_ORIGINS was ignored without a word, unlike CHAT_UI_URL. Print the same kind of warning when the export names different origins, with the onboard command that changes them. Equivalent spellings of the recorded origins stay quiet. Refs #13177
Address the second PR Review Advisor pass on #13218: - Onboarding refuses --dashboard-origin and NEMOCLAW_DASHBOARD_ORIGINS for agents other than OpenClaw before it changes state. The startup profile builder refuses them too, instead of dropping them. - parseDashboardOrigins rejects more than 16 origins, and the docs state the limit. - The config generator enforces the same rules before it writes allowedOrigins: a bare http(s) origin, https unless loopback, and at most 16. It runs in the image without the shared module; tests keep the two in step. - Regenerate the reviewed runtime bundle and update its pin. The Pi qualification receipts are refreshed in a following commit, once CI publishes Pi candidate images for this change. Refs #13177
Pi images copy the managed startup runtime bundle, which changed in db164d1. Refresh both Pi qualification receipts from the AMD64 and ARM64 Pi candidate contracts published by workflow run 38713442902, attempt 1, for db164d1, and update the candidate authority to their exact SHA-256 digests. Refs #13177
PR Review Advisor findings on
|
Address the third PR Review Advisor pass on #13218: - The config generator now normalizes origins the same way parseDashboardOrigins does, so a trailing slash, uppercase scheme or host, or a default port that onboarding accepts no longer fails the image build. A test compares the generator output with the shared parser. - The docs say --dashboard-origin is refused with --from-image as well as --from and the Dockerfile fallback. Refs #13177
PR Review Advisor findings on
|
Address the PR Review Advisor findings on #13198: - Test that a failed inner onboard still receives the recorded dashboard origin and that the ambient CHAT_UI_URL is restored afterwards. - Document that changing or clearing CHAT_UI_URL for an existing sandbox takes effect only after a rebuild. Refs #13177
Address the PR Review Advisor findings on #13218: - Canonicalize NEMOCLAW_AGENT before the OpenClaw-only dashboard-origin check, so an alias such as nemoclaw is accepted and nemohermes is still refused. - The config generator names a rejected NEMOCLAW_DASHBOARD_ORIGINS entry by position instead of echoing it, so user information is not printed. - Document that origins added or changed for an existing sandbox apply only after a rebuild. Refs #13177
PR Review Advisor findings on
|
The image config generator kept its own copy of the dashboard-origin rules, and the copy already differed: it accepted control characters and over-long values that parseDashboardOrigins refuses. The generator now imports parseDashboardOrigins, so onboarding, the startup profile, and the generator share one owner. - Copy src/lib/dashboard/url.ts and its two core imports into the image and the local build context. This adds two root Dockerfile lines; the growth exception for this PR is recorded separately on main. - Keep naming a rejected entry by position, so user information in it is not printed. - Test that control characters and over-long values are refused like parseDashboardOrigins refuses them. Refs #13177
Root Dockerfile growth approved for this PRMaintainer decision: approve root
The guardrail reads exceptions only from the base branch, so the exception goes to |
main now runs dashboard-remote-bind for OpenClaw and Hermes. The merged test keeps that coverage: the Hermes API-isolation phases stay as main has them, and the dashboard-origin assertions run only for OpenClaw using each agent's generated sandbox name. The OpenClaw phase order, contracts, and rebuild checks from this branch are preserved, and the timeout note reflects the shared target. Generated files take main's copies and are regenerated: the assertion budget, the startup bundle and its pin, and this PR's assertion exception entry with the approved digest, which is unchanged against main. The Pi receipts are refreshed from this commit's CI run.
The merge with main changed Pi image inputs. Both receipts come from the managed-images run for a6a71e9, collected with the reviewed collector from main, and the candidate authority lists their SHA-256 digests.
…dget main's platform-vitest-main workflow contract budgets this test's TEST_TIMEOUT_MS inside WSL shard 1. A 60-minute value exceeded the shard budget, so the value returns to main's 50 minutes. The per-step budgets stay as ceilings; live runs on this target finish in 6 to 8 minutes.
Revision-specific disposition for the conflict resolutionThe conflicts are resolved and the revision is validated. The PR is now Revisions
Merge behavior for the shared target
Validation on
Not done: no new live run on the earlier |
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
Signed-off-by: Kao Félix <me@kaofelix.dev>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
Outcome
Onboarding a managed OpenClaw sandbox can now allow extra dashboard browser origins that keep their own port, such as
https://launchpad.example.com:8443in front of the dashboard on 18789. Before, the only input wasCHAT_UI_URL, whose port onboarding replaces with the dashboard port, so OpenClaw rejected a proxy origin on another port.This PR builds on #13198, which merged on October 16, and targets
main.Reason
The decision on #13177 accepts a separate onboard setting for this case: #13177 (comment).
nemoclaw <sandbox> config setrefusesgateway.*keys, so there was no supported host-side way to add such an origin.Related issues
Refs #13177
Changes
nemoclaw onboard --dashboard-origin <origin>flag andNEMOCLAW_DASHBOARD_ORIGINS(comma-separated). Each value must be a bare origin, and a remote origin must usehttps. Invalid values fail before onboarding starts.scripts/generate-openclaw-config.mtsreadsNEMOCLAW_DASHBOARD_ORIGINS, validates it again, and appends the origins togateway.controlUi.allowedOrigins. It does not change the dashboard bind ormode.extraOriginskey. It is omitted when no origin is set, so existing profiles encode the same as before. The image maps the key toNEMOCLAW_DASHBOARD_ORIGINSonly when it is present. The reviewed in-image runtime bundle is regenerated.dashboardOriginsis recorded at creation and on reuse. The registry and gateway index accept only a normalized list.NEMOCLAW_DASHBOARD_ORIGINSdoes not change a rebuild.--fromor the Dockerfile fallback) and for agents other than OpenClaw, instead of dropping it.docs/reference/commands.mdxdocuments the flag and the variable.The decision comment originally described a Dockerfile build argument as well. The root Dockerfile has a growth budget that requires new onboarding behavior to use the managed startup profile, so the comment was edited to make the setting managed-image only.
Verification
Merge
32e77195b5resolves the November 11 conflicts and merges canonical mainabe6cecc39into published368c45f8e4, preserving both parents. It retains OpenClaw dashboard origins alongside main's Hermes Switchyard profile checks and resume guidance. All new Dockerfile payload copies are retained. The direct-startup runtime bundle is regenerated from the combined source, with SHA-2566979cb63f73bfb7337a1f28342eb2a1e49ab076e8ca190c5cef5b6dc9d0d52b4; byte-for-byte verification passed. The generated assertion budget retains main's current census and the five dashboard-origin assertions. No assertion or deadline was weakened.Focused validation passed: 815 tests and two skips across 31 CLI, integration and E2E-support files. CLI/plugin builds and TypeScript checks passed in the container without host credentials.
npm run docspassed with zero errors and two warnings; generated OpenClaw and Hermes pages retain their separate resume guidance. Inspection found no credentials or additional product scope.Both Pi platforms passed managed-images run 42990010747, attempt 1 for merge
32e77195b5. All six direct-startup jobs and all three all-agent activation jobs passed. The trusted-main collector verified both authenticated ZIP sizes and SHA-256 digests, the exact revision and platforms, and common releasev0.0.143-82-g32e77195b5and cohortghrun-42990010747-1. Metadata commit4c6e5f12darecords both genuine receipts and their authority hashes. Strict source parity reportsqualified; all 56 focused receipt/collection tests passed. No image source, assertion or deadline changed in the metadata refresh. Code CI on the merge passed all twelve CLI shards, plugin, installer, type checks and the OpenClaw distribution harness; its static and aggregate gates rejected pending receipts as expected. That original rejection is retained without an unchanged retry. Portable rootless, Podman CPU qualification, security scanning, Code Quality, documentation and installer hashes passed. Prior successful receipts and CI below remain historical evidence. Normal pre-commit, commit-message and actual pre-push publication checks passed, including CLI, plugin and checked-JavaScript compiler gates. GitHub verifies the signed DCO merge. The receipt-only commit passed normal pre-commit, commit-message, actual pre-push publication and CLI TypeScript checks; plugin and checked-JavaScript gates had no applicable files. On4c6e5f12da, code CI passed, including strict Pi receipt validation and all twelve CLI shards. Managed images passed both Pi platforms, all six direct-startup jobs and all three all-agent activations (AMD64, ARM64 and rootless Podman). Portable rootless, Podman CPU, security, Code Quality, documentation, installer hash and governance checks passed. Advisor completed all nine specialists with zero P0/P1 findings. Its gate remains failed solely because delivery-flow recommends the manual-only dashboard-remote-bind coverage job, which its recommendation selector does not support. No policy retry, waiver or new manual infrastructure was used. This remaining gate is reported without claiming approval or readiness to merge. All paginated comments, reviews and threads were collected; all three review threads are resolved. CodeRabbit provides no new full review of this commit.Runtime repair
c25bb9b7dapreserves the signed repository automation merge33e7b4a5ed. That merge selected main's generated runtime while keeping the dashboard-origin source mapping. The bundle check reproduced the stale artifact; regeneration from the combined source fixes it. Validation ran in a container without host credentials:c25bb9b7da, attempt 2 passed its live scenario, final resource cleanup and artifact upload. The main-only portable-launch job was skipped. Source audit: 992 predicate/scenario rows across the portable suite and affected base/Pi prerequisites; no assertions or deadlines changed.Both Pi platforms passed managed-images run 42009334858, attempt 2 for
c25bb9b7da. The trusted-main collector verified both authenticated artifact sizes and SHA-256 digests, exact platform/revision, common release and cohortghrun-42009334858-2. This metadata refresh records those receipts and their exact authority hashes; strict image-source parity and 56 focused receipt/collection tests passed. The first attempts failed Debian snapshot downloads with HTTP 503; one bounded retry per workflow succeeded. The original code CI rejected the pending receipts; Code CI on9854b4760epassed, including static checks, all 12 CLI shards, plugin tests and the aggregate gate. Portable rootless and managed images passed, including all three all-agent activation jobs. Podman CPU qualification, security scanning and Code Quality also passed.Code validation on
738533999epassed: CI attempt 2, managed images, portable rootless, Podman CPU qualification, security scanning and Code Quality. All three all-agent activation jobs passed. The first CI attempt hit HTTP 504 while the npmpreklauncher fetched its binary; one failed-job retry passed. Installer-hash verification also passed its single retry after upstream OpenShell release downloads returned HTTP 504. The original failures remain recorded.The follow-up documentation repair explains recorded dashboard-origin replay during
--resume, refusal of a different explicit list, and--freshrecovery.npm run docspassed with zero errors and two warnings. Generated OpenClaw guidance contains the new text; Hermes and Deep Agents variants exclude it. Normal commit hooks and actual pre-push publication validation passed once746dd649; compiler gates had no applicable files for this documentation-only commit. No runtime behavior, image input, assertion or deadline changed.The follow-up Advisor repair adds the five registry and state-write owners to
dashboard-remote-bindselection and replaces duplicate per-entry parsing in the OpenClaw config generator with one shared-parser call. Diagnostics retain the environment-variable name, entry position and credential redaction. Before the selection fix, regression cases reproduced all five omitted paths. After repair, 241 tests passed across the parser, generator, managed-startup mapping and E2E-support planner suites. An affected-source audit records 132 predicate/scenario rows; this is source and local validation evidence, not a new live dashboard run. Strict Pi image-source parity still reportsqualified; no receipt refresh is needed. The diff contains no credentials, and no live assertion or deadline changed. Normal pre-commit and commit-msg hooks, actual pre-push publication validation and CLI TypeScript passed onde31ca64bf. Plugin and checked-JavaScript compiler gates had no applicable files. Code CI, managed images, portable rootless, Podman CPU qualification, security scanning, Code Quality, installer hashes and documentation checks passed on this commit. All three all-agent activation jobs passed.All code and runtime checks on
ce746dd649passed, including all three all-agent activations. Advisor run 42057105979 completed all nine specialists: seven were clear, including documentation, and delivery and reduction identified the two issues addressed by this repair. All paginated feedback was collected; no unchanged Advisor policy retry was dispatched. Advisor run 42066341025 completed all nine specialists onde31ca64bf; every finding ledger is clear, with zero P0/P1 findings. Its blocker gate remains failed solely for two unresolved live-coverage recommendations from delivery and verification: the supplied inventory listsdashboard-remote-bindas manual-only, without a supported Advisor selector. This remains an unresolved policy gate. No unchanged retry, new manual infrastructure, waiver or maintainer-review request was made. CodeRabbit skipped incremental review; no full review ran. Complete paginated feedback contains 31 comments, eight reviews, nine inline comments and three resolved threads.Prior candidate disposition:
33e7b4a5edand2c94fb4aae: each had 11 pull-request workflows endaction_requiredwith zero jobs; the precise gate cause remains unresolved. CodeQL passed. CodeRabbit skipped incremental review; no full review or current Advisor specialists were scheduled.9281f1336d: CI rejected pending qualification. Managed images failed only the AMD64 Pi publication check when the freshly published digest was not found; all three all-agent activation jobs passed. Portable rootless failed a Debian snapshot download with HTTP 503/504 before Vitest; all its live assertions were unreached. Neither failure was retried before the source was superseded.Historical evidence remains separate:
452aeabc9fauthenticated both platform receipts from successful managed-images run 41696614823 for source7336192b76. It did not change image inputs.452aeabc9fpassed the normal static hooks, then the pinned-v1 compatibility step reached the static job's 22-minute limit. A later metadata workflow skipped code checks; it is not replacement evidence.452aeabc9fpassed ARM64 and rootless Podman activation. AMD64 failed when the Hermes Docker image pull returnedbytes remaining on stream, before its container existed. The assertion audit traced the missing-container error to that pull failure; no assertions or deadlines were changed and no retry was dispatched.7336192b76had a missing-receipt rejection, subsequently repaired by452aeabc9f, and inherited lint-hook timeouts. One bounded retry batch ended with formatting and plugin timeouts and an adapter pass. Main fix(e2e): retain provider timeout diagnostics and stabilize CI tests #14152 now changes the affected fixtures and pinned-v1 cache handling. Earlier failures remain historical; fresh CI must evaluate the integration.npm run docspassed on179e1ae951with zero errors and two warnings.dashboard-remote-bindonb95f6a5c3passed OpenClaw and Hermes, including rebuild-origin assertions. These results do not establish live evidence for this integration.Review notes
c25bb9b7darestores the dashboard-origin mapping to the shipped runtime by regenerating the bundle and its integrity pin. The signed automation merge33e7b4a5edis preserved; no additional base merge or history rewrite was performed. The exact-source Pi receipt pair is now recorded; CI and runtime checks passed on9854b4760e. The follow-up repair inlines two single-use session object wrappers. It preserves the requested host mounts, requested dashboard origins and resumed origins at their callers. The 39 session tests, 82 authentication/install/gateway tests, 18 recovery-prompt tests and seven growth checks passed in the credential-free container. The onboarding entrypoint is smaller than main. A pre-push compiler check caught an initialization-order error in an adjacent callback simplification; the local follow-up restores delayed gateway-owner lookup. CLI TypeScript passes. Normal commit hooks and actual pre-push publication and CLI compiler checks passed on738533999e. The later documentation-only repair passed its fresh CI and documentation review; the subsequent ownership and parsing repair passed code and runtime CI and all nine specialist finding ledgers, with the unresolved Advisor coverage gate described above.COPYinstructions now share one statement with the same destination paths. This keeps the Dockerfile at main's line count and reduces its byte count by 31, without relying on the PR-specific growth exception.42d679133ainNVIDIA/NemoClaw, including the sensitive reviewed runtime bundle and the retained source mapping undersrc/lib/onboard/. The before/after bundle check and focused validation support the repair. The Advisor run on9854b4760ecompleted all nine specialists: eight were clear, and reduction requested removal of two single-use object wrappers. The follow-up repair addresses that finding and retains session persistence and resume tests. CodeRabbit skipped incremental review; no full review ran. All paginated feedback was collected. The Advisor run on738533999ecompleted all nine specialists. Reduction is clear; eight specialists are clear in total. Documentation identified the omitted resume guidance, which this documentation repair addresses. CI and documentation review passed once746dd649. Its delivery and reduction findings are addressed by the subsequent repair, with all nine specialist finding ledgers clear and the unresolved Advisor coverage gate described above. The nine clear Advisor results onb95f6a5c3remain historical evidence. No CI failure has been waived.extraOrigins. This affects only a sandbox onboarded with the flag, after a downgrade or with an older CLI sharing~/.nemoclaw. Rebuild, clone, and managed snapshot restore then fail before changing anything.--dashboard-originandNEMOCLAW_DASHBOARD_ORIGINSfor managed OpenClaw images, and that a rebuild applies recorded changes. This PR does not add a dateddocs/changelog/file, because release entries are written per release; the flag is documented indocs/reference/commands.mdx.Signed-off-by: Kao Félix me@kaofelix.dev
Summary by CodeRabbit