Skip to content

[codex] Add native OpenClaw Dreams UI#950

Merged
ashione merged 2 commits intomainfrom
auto/openclaw-dreams-ui
Apr 30, 2026
Merged

[codex] Add native OpenClaw Dreams UI#950
ashione merged 2 commits intomainfrom
auto/openclaw-dreams-ui

Conversation

@ashione
Copy link
Copy Markdown
Contributor

@ashione ashione commented Apr 30, 2026

Summary

  • Add a native ClawX Dreams page for OpenClaw memory status, dream diary preview, phases, recent signals, and basic maintenance actions.
  • Keep the full upstream OpenClaw Dreams UI available from the native page via the existing Control UI token flow.
  • Add view=dreams support to the Control UI Host API route and URL builder.
  • Add localized Dreams strings for en/zh/ja/ru and update README docs.

Validation

  • pnpm run typecheck
  • pnpm exec eslint src/pages/Dreams/index.tsx tests/e2e/openclaw-dreams.spec.ts
  • pnpm exec vitest run tests/unit/openclaw-control-ui.test.ts tests/unit/gateway-control-ui-route.test.ts
  • pnpm run build:vite && pnpm exec playwright test tests/e2e/openclaw-dreams.spec.ts

Notes

  • The Dreams page waits for Gateway readiness before issuing Dreams RPC calls.
  • Maintenance actions are disabled while Gateway is unavailable to avoid startup-time error toasts.

@ashione ashione marked this pull request as ready for review April 30, 2026 16:30
@ashione ashione requested review from Copilot and su8su April 30, 2026 16:30
@ashione
Copy link
Copy Markdown
Contributor Author

ashione commented Apr 30, 2026

image

new feature about dream ui .
@su8su @hazeone

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 /dreams page (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 /dreaming while keeping tokens in the fragment).
  • Add unit/e2e coverage and new localized dreams strings (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.

Comment on lines +177 to +179
const openDevConsole = async () => {
await openControlUi('/api/gateway/control-ui', 'Dev Console');
};
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/pages/Dreams/index.tsx Outdated
Comment thread src/pages/Dreams/index.tsx Outdated
@ashione ashione merged commit 62d83b4 into main Apr 30, 2026
5 checks passed
@ashione ashione deleted the auto/openclaw-dreams-ui branch April 30, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants