Repository navigation
feat(ui): redesign Ask OpenClaw — mascot, shared surface, dockable panel - #115123
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 6:49 AM ET / 10:49 UTC. ClawSweeper reviewWhat this changesThis PR refactors Ask OpenClaw into a reusable Control UI chat surface, adds a persistent right-or-bottom docked panel that shares the conversation across routes, and extends mock-gateway and UI coverage for that flow. Merge readiness⛔ Blocked until stronger real behavior proof is added - 4 items remain Keep this PR open for explicit maintainer product review and exact-head behavior verification. The shared session and docked panel are a substantial Control UI capability with persisted layout and cross-route session behavior; the supplied context supports the direction, but the required downloaded-media inspection could not be completed after the read-only command environment failed before opening the manifest or artifacts. Priority: P2 Review scores
Verification
How this fits togetherAsk OpenClaw is the Control UI’s operator chat, backed by the Gateway’s flowchart LR
Gateway[Gateway chat capability] --> Store[Shared Ask OpenClaw session]
Route[Settings or workspace route] --> Shell[Control UI shell]
Shell --> Page[Full Ask OpenClaw page]
Shell --> Panel[Dockable chat panel]
Store --> Page
Store --> Panel
Panel --> Layout[Persisted dock layout]
Page --> Conversation[Transcript and actions]
Panel --> Conversation
Decision needed
Why: This is a user-facing workflow and state-lifetime decision, not only a mechanical refactor; the Before merge
Agent review detailsSecurityNone. PR surfaceSource +659, Tests +319, Other +169. Total +1147 across 23 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Mantis proof suggestionA Mantis web UI chat capture would materially help verify the visible cross-route conversation handoff and docked Ask OpenClaw flow on the reviewed head. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the reusable docked-chat direction only after a Control UI owner explicitly accepts the cross-page persistent-session UX and redacted exact-head proof confirms a send, route leave into the dock, return to the full page, and reload/persisted-layout behavior without losing or mis-associating the conversation. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new persistent Control UI interaction rather than reporting a current-main defect. The supplied tests and mock-flow claims describe validation scenarios, but I could not independently run or inspect them in this read-only review. Is this the best way to solve the issue? Unclear: extracting one reusable surface and store is a plausible maintainable shape, but whether the chat should persist across all routes and retain dock state is a product decision that needs explicit owner approval and direct exact-head proof. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b6bebfa73c38. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
d716593 to
bb12464
Compare
e709053 to
ccc0e8e
Compare
|
Land-ready proof for exact head
|
|
Merged via squash.
|
…nel (openclaw#115123) * refactor(ui): share custodian chat surface * feat(ui): add dockable custodian panel * refactor(ui): drop write-only panel-close latch from custodian store * feat(ui): demo custodian in mock gateway * chore(ui): update raw-copy baseline for custodian strings * fix(ui): clean custodian surface/page/mock lint debris
What Problem This Solves
The Settings > Ask OpenClaw chat rendered a hardcoded "OC" text avatar, its transcript column (860px) and composer (48rem) were misaligned, and the conversation was trapped inside the settings page — navigating anywhere else abandoned it.
Why This Change Was Made
Three coherent moves: (1) real OpenClaw artwork — the animated
<openclaw-mascot>in the header/thinking row (moodthinkingwhile a turn is in flight) and the lobster mark on transcript avatars; (2) one centered column driven by--chat-thread-max-width, with a dedicatedcontent--custodianshell layout replacing the competing settings/chat rules; (3) the chat guts extracted into a module-scopedCustodianSessionStoreplus reusable<openclaw-custodian-surface>, hosted by both the settings page and a new dockable panel (right/bottom, persisted layout, same dock reserve system as the terminal/browser panels). Leaving/custodianmid-conversation auto-minimizes the chat into the dock; a lobster toggle joins the workspace rail. The mock dev harness gainedopenclaw.chat/history/changes support so the whole flow is demoable viapnpm dev:ui:mock.User Impact
Ask OpenClaw looks like OpenClaw and follows you: the same live session renders full-page in Settings or as a dock on any page, with page-context (#114943) resolving "this page" references wherever you are. All existing behavior preserved: session ownership rotation, durable history + "Earlier" divider, question cards, sensitive input masking, hatch/exit handoffs, event nudges.
Evidence
Before/after and flow captures:




Video: https://raw.githubusercontent.com/steipete/openclaw-pr-assets/main/custodian-dock-2026-07/dock-flow.webm
ui/src/pages/custodianandui/src/components/custodian; the broader post-rebase proof also passed 72/72 across custodian, app-host, dock suppression, and workspace rail tests.pnpm ui:i18n:verifypasses with 4,139 English source keys. The strict generated-catalog check reports expected source-only drift and is advisory here; the post-merge locale refresh workflow owns non-English catalog generation. The source-owned raw-copy baseline records the removedOCcopy and newcustodian panellabel.pnpm dev:ui:mock: welcome + durable history + divider, thinking mascot, channel question cards, minimize-into-dock on route leave.store.activeVariantand is suppressed on the full-page route.git diff --checkpasses; the i18n diff contains onlyui/src/i18n/locales/en.tsand the source-ownedui/src/i18n/.i18n/raw-copy-baseline.json.