Conversation
There was a problem hiding this comment.
Pull request overview
Adds a first-class native “Dreams” page to the ClawX renderer so users can inspect OpenClaw dreaming/memory status, preview the dream diary, review phases/recent signals, and run basic maintenance actions—while still allowing a jump-out to the full upstream OpenClaw Dreams UI via the existing Control UI token flow.
Changes:
- Add a new native
/dreamspage (UI + RPC wiring) with maintenance actions and “open full Dreams UI” handoff. - Extend the Host API gateway control-ui route and URL builder to support
view=dreams(mapping to/dreamingwhile keeping tokens in the fragment). - Add unit/e2e coverage and new localized
dreamsstrings (en/zh/ja/ru) plus README updates.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/pages/Dreams/index.tsx |
Implements the native Dreams UI, RPC loading/refresh, and maintenance actions with confirmations. |
src/App.tsx |
Registers the new /dreams route. |
src/components/layout/Sidebar.tsx |
Adds a Dreams nav item and refactors Control UI external-open helper. |
electron/api/routes/gateway.ts |
Adds view=dreams support to /api/gateway/control-ui. |
electron/utils/openclaw-control-ui.ts |
Extends URL builder to support “views” (Dreams → /dreaming) while preserving #token=.... |
src/i18n/index.ts |
Registers the new dreams namespace across supported locales. |
src/i18n/locales/en/dreams.json |
Adds English Dreams strings. |
src/i18n/locales/zh/dreams.json |
Adds Chinese Dreams strings. |
src/i18n/locales/ja/dreams.json |
Adds Japanese Dreams strings. |
src/i18n/locales/ru/dreams.json |
Adds Russian Dreams strings. |
src/i18n/locales/en/common.json |
Adds sidebar label for Dreams. |
src/i18n/locales/zh/common.json |
Adds sidebar label for Dreams. |
src/i18n/locales/ja/common.json |
Adds sidebar label for Dreams. |
src/i18n/locales/ru/common.json |
Adds sidebar label for Dreams. |
tests/unit/openclaw-control-ui.test.ts |
Adds coverage for view=dreams URL building and fragment token behavior. |
tests/unit/gateway-control-ui-route.test.ts |
Adds coverage for /api/gateway/control-ui?view=dreams routing + unknown view fallback. |
tests/e2e/openclaw-dreams.spec.ts |
Adds end-to-end coverage for Dreams page rendering, readiness gating, and a maintenance action. |
README.md / README.zh-CN.md / README.ja-JP.md |
Documents the new native Dreams page and upstream UI handoff. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const openDevConsole = async () => { | ||
| await openControlUi('/api/gateway/control-ui', 'Dev Console'); | ||
| }; |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5349331984
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Summary
view=dreamssupport to the Control UI Host API route and URL builder.Validation
pnpm run typecheckpnpm exec eslint src/pages/Dreams/index.tsx tests/e2e/openclaw-dreams.spec.tspnpm exec vitest run tests/unit/openclaw-control-ui.test.ts tests/unit/gateway-control-ui-route.test.tspnpm run build:vite && pnpm exec playwright test tests/e2e/openclaw-dreams.spec.tsNotes