Skip to content

feat(ui): redesign Ask OpenClaw — mascot, shared surface, dockable panel - #115123

Merged
steipete merged 6 commits into
mainfrom
steipete/custodian-mascot-dock-surface
Jul 28, 2026
Merged

steipete merged 6 commits into
mainfrom
steipete/custodian-mascot-dock-surface

Conversation

@steipete

@steipete steipete commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

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 (mood thinking while a turn is in flight) and the lobster mark on transcript avatars; (2) one centered column driven by --chat-thread-max-width, with a dedicated content--custodian shell layout replacing the competing settings/chat rules; (3) the chat guts extracted into a module-scoped CustodianSessionStore plus 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 /custodian mid-conversation auto-minimizes the chat into the dock; a lobster toggle joins the workspace rail. The mock dev harness gained openclaw.chat/history/changes support so the whole flow is demoable via pnpm 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:
page
thinking
question
docked
Video: https://raw.githubusercontent.com/steipete/openclaw-pr-assets/main/custodian-dock-2026-07/dock-flow.webm

  • Focused tests: 74/74 across ui/src/pages/custodian and ui/src/components/custodian; the broader post-rebase proof also passed 72/72 across custodian, app-host, dock suppression, and workspace rail tests.
  • i18n: pnpm ui:i18n:verify passes 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 removed OC copy and new custodian panel label.
  • Live verification via pnpm dev:ui:mock: welcome + durable history + divider, thinking mascot, channel question cards, minimize-into-dock on route leave.
  • Autoreview (Codex gpt-5.6-sol, high): the code stack was clean; a later chunk raised a variant-contention concern that was rejected after verifying the dock derives its variant from store.activeVariant and is suppressed on the full-page route.
  • Rebased head proof: feat(system-agent): give Ask OpenClaw ambient page context #114943 page-context coverage passes; git diff --check passes; the i18n diff contains only ui/src/i18n/locales/en.ts and the source-owned ui/src/i18n/.i18n/raw-copy-baseline.json.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts labels Jul 28, 2026
@steipete steipete self-assigned this Jul 28, 2026
@steipete
steipete marked this pull request as ready for review July 28, 2026 09:41
@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Jul 28, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 6:49 AM ET / 10:49 UTC.

ClawSweeper review

What this changes

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

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The proposed architecture and reported focused coverage are useful, but independently verifiable real behavior proof and a human decision on the new persistent-session UX remain necessary before merge.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR body links screenshots and a video that appear relevant, but required local artifact inspection could not start because the read-only command environment failed with bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted; retain redacted current-head proof that directly shows the route-to-dock session transition and persisted layout before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The PR body links screenshots and a video that appear relevant, but required local artifact inspection could not start because the read-only command environment failed with bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted; retain redacted current-head proof that directly shows the route-to-dock session transition and persisted layout before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Shared-session implementation: The proposed branch introduces a process-local Custodian session store that both the full page and dock panel consume, making route changes and surface handoffs part of the user-visible session contract.
Shell and panel integration: The branch adds a lazily loaded dock panel, a shell minimize-on-route-leave path, and panel suppression on the full-page route; those are the central compatibility-sensitive paths for this feature.
Adjacent merged capability: The related ambient-page-context work is already merged at commit 2025c3d, so this PR builds on an existing Ask OpenClaw route-context capability rather than duplicating it.
Findings None None.
Security None None.

How this fits together

Ask OpenClaw is the Control UI’s operator chat, backed by the Gateway’s openclaw.chat capability and a client-side transcript/session lifecycle. This change lets the shell host the same conversation either as its Settings page or as a docked workspace panel while preserving the conversation and dock layout.

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
Loading

Decision needed

Question Recommendation
Should OpenClaw adopt Ask OpenClaw as a persistent cross-page Control UI companion panel, with a shared in-memory conversation and user-persisted dock layout, rather than keeping it scoped to Settings? Sponsor the docked companion direction: Accept the shared-session panel model after exact-head behavior proof covers route transitions, reload, and dock persistence.

Why: This is a user-facing workflow and state-lifetime decision, not only a mechanical refactor; the maintainer label also requires explicit human handling.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR body links screenshots and a video that appear relevant, but required local artifact inspection could not start because the read-only command environment failed with bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted; retain redacted current-head proof that directly shows the route-to-dock session transition and persisted layout before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - A module-scoped shared session changes the lifetime of Ask OpenClaw state: route changes, agent/context changes, and full-page-versus-panel transitions must not retain or associate a conversation incorrectly.
  • Resolve merge risk (P1) - The new persisted dock layout (openclaw.custodian.panel.v1) and shared dock reservations affect existing Control UI workspaces, so exact-head fresh-use and upgrade/reload behavior need direct confirmation before merge.
Agent review details

Security

None.

PR surface

Source +659, Tests +319, Other +169. Total +1147 across 23 files.

View PR surface stats
Area Files Added Removed Net
Source 15 1316 657 +659
Tests 7 323 4 +319
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 171 2 +169
Total 23 1810 663 +1147

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: ui/src/components/custodian/custodian-panel.test.ts. Confirm migration or upgrade compatibility proof before merge.

Mantis proof suggestion

A 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:

@openclaw-mantis web UI chat proof: verify and capture that an Ask OpenClaw conversation moves from its full page into the dock after navigation, remains visible on another route, and returns to the same transcript.

Merge-risk options

Maintainer options:

  1. Verify session and layout transitions before merge (recommended)
    Provide or preserve redacted current-head evidence that one conversation survives page-to-dock-to-page navigation and reload while the persisted dock layout does not disturb other panels.
  2. Accept the new workspace-state contract
    A Control UI owner may explicitly accept the persisted dock and shared-session behavior after reviewing the intended upgrade impact.
  3. Pause the persistent-panel portion
    Keep the page-level visual refactor but defer the dock/session-lifetime expansion if product ownership does not want this new interaction contract.

Technical review

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

Labels

Label changes:

  • remove proof: 🎥 video: Current real behavior proof evidence kind is none.

Label justifications:

  • P2: This is a meaningful user-facing Control UI feature, but the supplied evidence does not indicate an emergency regression or release-blocking outage.
  • merge-risk: 🚨 compatibility: The PR adds persisted panel layout and new shell reservation behavior that can change existing workspace layout after upgrade.
  • merge-risk: 🚨 session-state: A shared module-scoped conversation owner changes how chat state persists while users move between the full page and docked panel.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • feature: ✨ showcase: ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. A reusable, page-aware operator chat that follows the user through the Control UI is an unusually compelling workflow improvement when the session and upgrade contract are accepted.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body links screenshots and a video that appear relevant, but required local artifact inspection could not start because the read-only command environment failed with bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted; retain redacted current-head proof that directly shows the route-to-dock session transition and persisted layout before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Shared-session implementation: The proposed branch introduces a process-local Custodian session store that both the full page and dock panel consume, making route changes and surface handoffs part of the user-visible session contract. (ui/src/pages/custodian/custodian-session-store.ts:1, ccc0e8ee5420)
  • Shell and panel integration: The branch adds a lazily loaded dock panel, a shell minimize-on-route-leave path, and panel suppression on the full-page route; those are the central compatibility-sensitive paths for this feature. (ui/src/app/app-host.ts:521, ccc0e8ee5420)
  • Adjacent merged capability: The related ambient-page-context work is already merged at commit 2025c3d, so this PR builds on an existing Ask OpenClaw route-context capability rather than duplicating it. (ui/src/pages/custodian/custodian-session-store.ts:1, 2025c3d1b87d)
  • Proof artifact access failure: The required local-proof inspection could not begin: the read-only command intended to read the supplied manifest and review skills failed before execution with bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted. The PR body contains screenshots and a video, but I could not independently assess them at this head.
  • Protected maintainer handling: The supplied live item state includes the maintainer label, which requires explicit maintainer handling rather than automated cleanup or closure.

Likely related people:

  • steipete: Authored the merged ambient-page-context work that this panel depends on and the current branch’s Custodian surface/session integration; this is the strongest available domain-history signal in the supplied context. (role: recent adjacent contributor; confidence: medium; commits: 2025c3d1b87d, 154578b1b670, 7114e5be7e04; files: ui/src/pages/custodian/custodian-session-store.ts, ui/src/components/custodian/custodian-panel.ts, ui/src/app/app-host.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Preserve redacted exact-head proof showing a conversation move from full page to dock, back to full page, and through a reload without session loss or mis-association.
  • Obtain explicit Control UI owner approval for the persistent cross-page conversation and persisted dock-layout contract.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-07-28T09:45:26.243Z sha d716593bb8e694d3aad46c852e3fc9d28e146b37 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-28T09:55:10.956Z sha bb12464 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-28T10:19:01.335Z sha e709053 :: needs real behavior proof before merge. :: none

@steipete
steipete force-pushed the steipete/custodian-mascot-dock-surface branch from d716593 to bb12464 Compare July 28, 2026 09:50
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 28, 2026
@steipete
steipete force-pushed the steipete/custodian-mascot-dock-surface branch from e709053 to ccc0e8e Compare July 28, 2026 10:44
@clawsweeper clawsweeper Bot removed the proof: 🎥 video Contributor real behavior proof includes video or recording evidence. label Jul 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head ccc0e8ee5420c42fc228d4293cb323871935a594:

  • Maintainer decision: accept the persistent cross-page Ask OpenClaw conversation and persisted dock-layout contract.
  • ClawSweeper rank-up proof move: the PR body already contains redacted full-page, thinking, question, docked-conversation screenshots and the route-to-dock flow video. Those captures were recorded from this feature stack; later commits were main integration, generated-locale removal, raw-copy baseline bookkeeping, and lint/type cleanup, with no intended visual behavior change. A duplicate capture was therefore skipped.
  • Local proof: node scripts/run-vitest.mjs ui/src/pages/custodian ui/src/components/custodian (74/74), targeted scripts/run-oxlint.mjs, scripts and UI tsgo lanes, pnpm ui:i18n:verify, and git diff --check.
  • Hosted proof: CI run 30351977378, attempt 3, green at the exact head. Earlier distinct timing flakes did not repeat.
  • Known proof gap: no new exact-head screenshot was captured after the mechanical rebase/lint cleanup; the existing redacted media remains the direct behavior proof.

@steipete
steipete merged commit 699315e into main Jul 28, 2026
243 of 248 checks passed
@steipete
steipete deleted the steipete/custodian-mascot-dock-surface branch July 28, 2026 12:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…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
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 feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant