Repository navigation
Conversation
Generate the installed welcome catalog from the same suggestion order, English source, translation memory, and locale resolver used by the web UI. Serve it through the authenticated, versioned controlUi.welcome.get RPC without manual native string synchronization. Co-authored-by: Copilot App <[email protected]> Copilot-Session: aaa7b278-2f76-4db6-bbd1-3432d737f2b8
|
🦞👀 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. |
|
Companion native-client PR: openclaw/openclaw-windows-node#1705. This PR supplies the shared, localized |
|
Codex review: blocked before merge. What this changesAdds an authenticated Gateway RPC serving localized welcome text and starter prompts generated from the web dashboard’s canonical catalogs. Example: A native client requests controlUi.welcome.get with locale fr-FR.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this PR supplies a distinct native-client capability absent from current main, and both previous findings are fixed; product direction, security approval, and unresolved CI still prevent landing. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe build projects canonical UI translations into an installed asset; the Gateway accepts a locale through an operator.read RPC and returns versioned plain-text welcome content. flowchart LR
A[English catalog and translation memory] --> B[Welcome catalog generator]
C[Shared welcome keys and ordering] --> B
C --> D[Web welcome renderer]
B --> E[Installed welcome asset]
F[Authenticated native client] --> G[Gateway welcome RPC]
E --> G
G --> F
Technical reviewBest possible solution: Use the existing translation and locale owners to supply one generated welcome catalog through the proposed read-only RPC if the area owner accepts that public contract. Do we have a high-confidence way to reproduce the issue? This is a capability addition; supplied installed-package output shows stable rejecting the absent method and the reviewed build returning localized catalogs. Is this the best way to solve the issue? The implementation is focused: it shares keys and ordering, preserves the existing translation fallback policy, and keeps source catalogs out of Gateway request handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4d5538094426. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +127, Tests +142, Docs +55, Config +2, Other +75. Total +401 across 23 files. Added test files: 1. View PR surface stats
Review metrics
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 (2 earlier review cycles)
Reviewed October 21, 2026, 7:20 PM ET / 23:20 UTC (Revision 3). |
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Closing for now in favor of including updates to welcome content in nightly node repo notification job Main decision was that I think it's better to hardcode things like this on the node side for now. |
Related: openclaw/openclaw-windows-node#1705, the companion Reactor welcome-screen consumer of this Gateway catalog.
What Problem This Solves
Native clients need the connected Gateway's welcome text and starter prompts without copying the web strings and manually keeping them synchronized.
User Impact
User impact: native clients can display the same localized welcome hint, recent-chats label, and ordered starter prompts as the installed web dashboard. Existing web copy and layout remain unchanged.
This is an additive, authenticated
operator.readmethod. Older Gateways remain unsupported rather than silently receiving copied native strings. Missing or invalid installed assets return actionableUNAVAILABLE; restart the Gateway after updating its installation. The welcome method adds no configuration or data migration; normal candidate Doctor migrations still apply.Why This Change Was Made
controlUi.welcome.get({ locale? })returns a versioned catalog with requested/resolved locale and stable suggestion IDs, display text, and send text. The renderer and build generator share one ordering/key owner, the existing English catalog and translation-memory materializer, and the same locale fallback rules.Normal runtime postbuild generates and packages the 22-locale artifact (English plus 21 translations). The Gateway lazily reads and validates it once per process, with retry after a failed load. Requests do not fetch GitHub, scrape compiled JavaScript, load UI source, or require the Control UI HTTP server. Agent identity and recent-session data keep their existing owners.
Evidence
Current implementation and installed-package upgrade
Validated head
283312acbf74cd233ac9f61a831cf3f5ba5951d0in a secretless Linux/arm64 container running Node 24.22.0, with no host mounts or access to the operator Gateway.dist/build-info.jsonidentifies this exact head; its packaged welcome catalog matches the generated artifact byte-for-byte.2026.10.5(1b58cb9a1b4f4353e1add63c8506db4d890962e8), created a synthetic durable session throughsessions.create, and confirmed that the stable Gateway rejects the absent welcome method.openclaw update --tag <candidate-tarball> --yes --no-restart --json. It returnedstatus: "ok"in 251.711 seconds and activated the exact reviewed build. Both versions report2026.10.5; the distinct commit/build IDs verify the upgrade.openclaw gateway call controlUi.welcome.getcalls returneden-US → en,fr-FR → fr, andzh-TW → zh-TW. All responses have version 1 and the same four ordered IDs, nonempty translated strings, and matching display/send text. A numeric locale was rejected asINVALID_REQUEST.Update normalization, not ignored user-data differences: Doctor migrates the retired
heartbeat.every: "0m"setting to an ordinary automation; a realcron.list(includeDisabled: true)RPC verifies that it remains disabled. It also materializes the previously implicit emptymainroster entry, persists the documentedmessages.queue.allowCollaborativeSteering: falsedefault, and records only Doctor provenance/version metadata and the two writer-owned migration pins (modelPolicyAllowlistandutilityModelSeparation). Those exact changes were asserted individually; every remaining user-config field is compared exactly. No blanket snapshot ignore was added. See Doctor migrations, disabled-cadence conversion, writer-owned metadata, and implicit-agent semantics.Redacted installed-package terminal evidence
Candidate tarball SHA-256:
149edd16c6f01a444beee4e5f716f8e907aa1e7874f89223e64b4fc8ebfd71d3.The update itself completed once and was not repeated. The first proof assertion compared raw pre-migration config with post-Doctor config; a verification-only continuation checked the documented migrations and reused the completed update and locale responses.
ClawSweeper code findings and focused validation
dist/control-ui-welcome.json; the launcher fixture's existing timestamp setup covers the newly written artifact. The production missing-output check remains intact.git diff --checkis clean. No visual change is intended.Earlier contributor validation (Windows; historical, not an exact-head rerun)
The contributor reported 14 passing catalog/browser-locale tests, core/UI/scripts and root-script-test typechecks, type-aware lint, i18n/welcome/docs checks, and package integrity checks on Node 24.21.0/pnpm 12.7.0. The catalog integration test body took 1.587 seconds (22.21 seconds for the file); the earlier combined run took 173.71 seconds. Those timings predate the maintainer repair. Per-file CI test seconds have not been isolated.
Remaining CI and maintainer gates
Current-head CI run 39682393063 is not green:
ui/src/e2e/chat-boot-render-storm.e2e.test.ts:233still waits for “Message permissions,” while incorporated main commitc6f1d3df983renamed the heading to “Session members.” The baseline predates that commit. Neither owner is changed by this PR.streaming-card.test.ts:474expects its server-side producer to observe cancellation after an oversized response is rejected. The rejection passed; the cancellation assertion failed under Bun. The fixture counts bytes queued byres.write, so buffering sensitivity is the supported inference. Test, fixture, implementation, bounded-reader inputs, and lockfile match the incorporated base. No matching baseline failure signature or reproduced runtime diagnosis is claimed; the canonical classification remains unknown.The package build also printed an advisory startup-gzip budget violation (325,721 B versus 325,657 B); packaging completed successfully. The isolated update recorded expected no-provider-credential and deferred advisory/cleanup warnings; it did not manage the host service, and the installed Gateway proof passed afterward. Native-client GUI rendering and a full local repository suite were not rerun.
The additive RPC still needs the maintainer's product decision and the enforced current-head security-sensitive approval for
src/gateway/methods/core-descriptors.ts. Source inspection confirms it is registered withoperator.read, validates a bounded locale, and only returns installed public welcome strings; this automated repair does not substitute for maintainer approval. No merge is claimed.