Skip to content

feat(gateway): share localized welcome content with native clients - #172644

Closed
karkarl wants to merge 5 commits into
openclaw:mainfrom
karkarl:karkarl-gateway-welcome-content
Closed

karkarl wants to merge 5 commits into
openclaw:mainfrom
karkarl:karkarl-gateway-welcome-content

Conversation

@karkarl

@karkarl karkarl commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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.read method. Older Gateways remain unsupported rather than silently receiving copied native strings. Missing or invalid installed assets return actionable UNAVAILABLE; 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 283312acbf74cd233ac9f61a831cf3f5ba5951d0 in a secretless Linux/arm64 container running Node 24.22.0, with no host mounts or access to the operator Gateway.

  • The canonical package build and tarball integrity checks completed, including extraction, package inventory, and the installed import graph. The tarball's dist/build-info.json identifies this exact head; its packaged welcome catalog matches the generated artifact byte-for-byte.
  • Installed published stable 2026.10.5 (1b58cb9a1b4f4353e1add63c8506db4d890962e8), created a synthetic durable session through sessions.create, and confirmed that the stable Gateway rejects the absent welcome method.
  • Invoked the installed stable updater, not a candidate update script: openclaw update --tag <candidate-tarball> --yes --no-restart --json. It returned status: "ok" in 251.711 seconds and activated the exact reviewed build. Both versions report 2026.10.5; the distinct commit/build IDs verify the upgrade.
  • Started the installed candidate Gateway using the same isolated state, with Control UI HTTP disabled. Authenticated openclaw gateway call controlUi.welcome.get calls returned en-US → en, fr-FR → fr, and zh-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 as INVALID_REQUEST.
  • The durable session ID, agent ID, label, and displayed title survive the update, and the workspace canary is byte-identical. Gateway settings (including auth), workspace selection, and disabled cron remain exact after accounting only for the source-verified Doctor migrations below.

Update normalization, not ignored user-data differences: Doctor migrates the retired heartbeat.every: "0m" setting to an ordinary automation; a real cron.list(includeDisabled: true) RPC verifies that it remains disabled. It also materializes the previously implicit empty main roster entry, persists the documented messages.queue.allowCollaborativeSteering: false default, and records only Doctor provenance/version metadata and the two writer-owned migration pins (modelPolicyAllowlist and utilityModelSeparation). 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
baseline: OpenClaw 2026.10.5 (1b58cb9)
baseline: installed Gateway ready (Control UI HTTP disabled)
baseline: welcome RPC absent; durable session created through sessions.create
baseline: receipt saved; installed stable Gateway stopped
update: installed stable updater returned status=ok; durationMs=251711
installed: OpenClaw 2026.10.5 (283312a)
candidate: installed Gateway ready (Control UI HTTP disabled)
candidate: {"version":1,"requestedLocale":"en-US","resolvedLocale":"en","hint":"Pick where this session works, then say what to do.","recentChatsLabel":"Recent chats","suggestions":[{"id":"whatCanYouDo","displayText":"What can you do?","sendText":"What can you do?"},{"id":"summarizeRecentSessions","displayText":"Summarize my recent sessions","sendText":"Summarize my recent sessions"},{"id":"configureChannel","displayText":"Help me configure a channel","sendText":"Help me configure a channel"},{"id":"checkSystemHealth","displayText":"Check system health","sendText":"Check system health"}]}
candidate: {"version":1,"requestedLocale":"fr-FR","resolvedLocale":"fr","hint":"Choisissez où cette session s’exécute, puis indiquez quoi faire.","recentChatsLabel":"Discussions récentes","suggestions":[{"id":"whatCanYouDo","displayText":"Que pouvez-vous faire ?","sendText":"Que pouvez-vous faire ?"},{"id":"summarizeRecentSessions","displayText":"Résumer mes sessions récentes","sendText":"Résumer mes sessions récentes"},{"id":"configureChannel","displayText":"M’aider à configurer un canal","sendText":"M’aider à configurer un canal"},{"id":"checkSystemHealth","displayText":"Vérifier l’état du système","sendText":"Vérifier l’état du système"}]}
candidate: {"version":1,"requestedLocale":"zh-TW","resolvedLocale":"zh-TW","hint":"選擇此工作階段的執行位置,再說明要做什麼。","recentChatsLabel":"最近的聊天","suggestions":[{"id":"whatCanYouDo","displayText":"你能做什麼?","sendText":"你能做什麼?"},{"id":"summarizeRecentSessions","displayText":"摘要我的近期工作階段","sendText":"摘要我的近期工作階段"},{"id":"configureChannel","displayText":"協助我設定頻道","sendText":"協助我設定頻道"},{"id":"checkSystemHealth","displayText":"檢查系統健康狀態","sendText":"檢查系統健康狀態"}]}
PASS: invalid-input rejection, exact remaining user settings, disabled heartbeat semantics,
workspace bytes, and durable session identity/title verified.

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

  • Protocol owner guard fixed: the canonical schema-module list expects 76 unique owners, retaining uniqueness and canonical-export checks. The exact-head bundled protocol CI check passed.
  • Runtime fixtures fixed: both shared launcher/postbuild and Git-updater scaffolds include dist/control-ui-welcome.json; the launcher fixture's existing timestamp setup covers the newly written artifact. The production missing-output check remains intact.
  • Earlier repair validation passed 152 focused tests before the mechanical main merges, along with protocol generation/native determinism and the protocol-since guard. That is prior-head focused evidence, not a claim of current-head full-suite success. Independent review of the reconciled candidate found no actionable P0–P2 defects.
  • Current-head production types and lint passed. git diff --check is 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:

Failure Investigation
UI E2E shard 2/9 Inherited stale assertion: ui/src/e2e/chat-boot-render-storm.e2e.test.ts:233 still waits for “Message permissions,” while incorporated main commit c6f1d3df983 renamed the heading to “Session members.” The baseline predates that commit. Neither owner is changed by this PR.
Extensions bundle 17-3 Unchanged Feishu test streaming-card.test.ts:474 expects 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 by res.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 with operator.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.

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
@clawsweeper

clawsweeper Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts size: M labels Oct 14, 2026
@karkarl

karkarl commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Companion native-client PR: openclaw/openclaw-windows-node#1705.

This PR supplies the shared, localized controlUi.welcome.get Gateway catalog. The Windows PR consumes it for the Reactor welcome screen, keeping native prompts aligned with the connected dashboard without a copied string catalog. The Windows PR also records installed-Gateway/native-client proof for this implementation.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Adds 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.

  • Before: Released Gateways reject the method, leaving native clients without the shared welcome catalog.
  • After: The Gateway resolves fr and returns French guidance plus four ordered starter prompts with stable IDs.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Installed-package and stable-upgrade proof resolve the earlier evidence gap, and no actionable code findings remain; owner direction is unresolved and required CI is not green.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Exact-head terminal evidence exercises the installed CLI against an authenticated Gateway with Control UI HTTP disabled, showing English, French, Traditional Chinese, and invalid-input behavior; the prepared screenshots concern a separate locale fix and were not counted.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Native clients cannot obtain the connected Gateway’s localized welcome copy without duplicating the web catalog.
Reason: A concrete consumer exists and the implementation preserves web behavior, but exposing this content as a core public RPC remains an owner decision.

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
Reviewed head: 283312acbf74cd233ac9f61a831cf3f5ba5951d0
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should the Gateway expose web welcome copy and starter prompts as a versioned core RPC for native clients?
  • Recommendation: Accept the shared welcome RPC: Adopt the additive contract so native clients consume installed Gateway copy without maintaining another catalog.
  • Why: The merged native consumer establishes demand, but neither the discussion nor retrieved reviews records an owner decision accepting this new core API.

Before merge

  • Complete next step - Obtain the enforced security-sensitive approval for head 283312a.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Welcome ordering and rendering keeps the original intent (9b12483: The Solid migration preserved welcome presentation and retained render ownership; this PR moves the existing ordered keys into a shared owner without changing copy, layout, or actions.)
  • Locale materialization and fallback keeps the original intent (fix(ui): bootstrap source-only locales #131015: Source-only locales intentionally use English while translation memory is absent, while malformed or empty existing memory remains fatal; the extracted helper preserves those distinctions and the later namespace partitioning.)
  • Runtime build freshness keeps the original intent (1cdc5bd: Build producers and readers track the same source inputs to prevent stale artifact reuse; the PR adds the new generator, shared keys, and translation inputs to that existing mechanism.)
  • Protocol registry owner guard keeps the original intent (94867f9: The base guard requires a unique canonical schema-owner list; increasing its expected count retains the guard while admitting the new owner.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Distinct capability remains absent from main: Current main retains the web-only suggestion list and has no controlUi.welcome.get implementation; the introduced diff adds the schema, descriptor, handler, generator, and shared ordering. (src/gateway/methods/core-descriptors.ts:761, 4d5538094426)
  • Previous findings fixed: The schema guard now expects 76 unique owners, and both launcher and Git-update runtime fixtures include the newly required catalog. (scripts/check-protocol-registry.mts:148, 283312acbf74)
  • Installed-package behavior and upgrade proof: The full PR body supplies exact-head installed-package terminal output for en-US, fr-FR, zh-TW, invalid locale rejection, and an update initiated by installed stable 2026.10.5; session identity, workspace bytes, and settings are checked with individually explained Doctor normalization. (283312acbf74)
  • Bounded read-only implementation: The method requires operator.read, validates the optional locale, and reads only the installed public welcome asset through the existing lazy-promise owner; it introduces no credential, session, or mutation authority. (src/gateway/control-ui-welcome.ts:23, 283312acbf74)
  • Required CI remains unresolved: Live annotations confirm a UI timeout waiting for “Message permissions” and a Feishu cancellation assertion failure at streaming-card.test.ts:474. The former follows the unrelated heading change documented in the body; the latter remains unclassified rather than established as a PR defect or inherited failure. (283312acbf74)
  • Current-head approval gate: The security-sensitive review comment requires maintainer approval for this exact head; no approval appears in the retrieved discussion or submitted reviews. (src/gateway/methods/core-descriptors.ts:761, 283312acbf74)

PR surface

Source +127, Tests +142, Docs +55, Config +2, Other +75. Total +401 across 23 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 13 152 25 +127
Tests 3 142 0 +142
Docs 1 55 0 +55
Config 1 2 0 +2
Generated 0 0 0 0
Other 5 77 2 +75
Total 23 428 27 +401

Review metrics

Metric Value Why it matters
Public RPC addition 1 method; 1 optional locale parameter Adds controlUi.welcome.get under operator.read, with a version-1 result and a locale bounded to 128 characters.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: A useful native-client integration with limited blast radius and no demonstrated urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-15T00:30:39.927Z sha 6726331 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-20T21:38:50.471Z sha 6d027e9 :: needs real behavior proof before merge. :: [P2] Update the protocol registry guard for the added schema owner | [P2] Include the required catalog in shared runtime build fixtures

Reviewed October 21, 2026, 7:20 PM ET / 23:20 UTC (Revision 3).

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Maintainer security review required

This external contributor PR changes sensitive security components. A maintainer must review these changes before merging.

Current SHA: 283312acbf74cd233ac9f61a831cf3f5ba5951d0

These sensitive security changes were made:

  • src/gateway/methods/core-descriptors.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

After reviewing the changes, post a new PR comment containing only approval commands, each on its own line:

/allow-security-sensitive-change

A later push requires a fresh approval comment.

@RomneyDa

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 20, 2026
@clawsweeper clawsweeper Bot removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes extensions: codex labels Oct 21, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed cli CLI command changes extensions: codex size: L labels Oct 21, 2026
@RomneyDa

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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. labels Oct 21, 2026
@RomneyDa

Copy link
Copy Markdown
Member

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.

@RomneyDa RomneyDa closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts security-review-required security-sensitive-changed size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants