Skip to content

feat(ui): session dashboard shell β€” board face, chat dock, reset guard - #110728

Merged
steipete merged 4 commits into
mainfrom
claude/dashboard-chat-dock
Jul 18, 2026
Merged

steipete merged 4 commits into
mainfrom
claude/dashboard-chat-dock

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Shell half of the session-dashboard program (design: docs/web/dashboard-architecture.md): sessions get a second "board" face with the chat docked beside it. This PR delivers the host surface β€” Chat|Dashboard face toggle, dockable/hideable chat pane (left/right/bottom/hidden; DockPanelSide gains left), reset-confirm dialog for board-bearing sessions ("context resets, the dashboard stays"), sidebar board glyph on sessions with boards, and per-session face/tab persistence.

Why This Change Was Made

Built against the frozen board contract with a provider seam: NullProvider is the default, so with no board the chat experience is pixel-identical to today. The sibling grid PR (#110644) supplies <openclaw-board-view>; the gateway domain PR wires the real provider later. Mock provider + fixtures cover development and tests until then.

User Impact

None until a board provider exists (NullProvider default renders nothing new). With the mock/dev harness: face toggle, docked chat on all three sides plus hidden with reopen rail, reset warning.

Evidence

  • 477 tests green post-rebase across 13 files (board provider/settings, chat-pane, sidebar, dock-panel suites); i18n verify green (3,574 keys, en.ts only; locale bundles untouched vs main).
  • check-changed green on Blacksmith Testbox pre-rebase; formatting/lint/typecheck clean.
  • Autoreview: one real finding (reset-confirmation race) found and fixed during closeout; final review clean.
  • Terminal/browser panels unchanged (left dock is board-only for now by design).

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 18, 2026

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

Copy link
Copy Markdown
Contributor

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: 8129c6a650

ℹ️ 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 on lines +228 to 232
const confirmation = await confirmConversationResetForCurrentSession(host);
if (confirmation !== "confirmed") {
return confirmation;
}
await opts.sendResetMessage(args ? `/reset ${args}` : "/reset", opts);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Route queued /reset through board confirmation

In a board-bearing session, typing /reset from the composer still bypasses this new guard: handleSendChat queues local reset commands and drainStoredChatOutbox converts localCommandName === "reset" into a plain /reset message before dispatchChatSlashCommand is called (ui/src/pages/chat/chat-send.ts:1772). That means the confirmation added here is only exercised by direct dispatch/non-queued callers, so the main reset path can still clear context without the dashboard-preservation warning.

Useful? React with πŸ‘Β / πŸ‘Ž.

@steipete steipete self-assigned this Jul 18, 2026
@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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 12:55 PM ET / 16:55 UTC.

Summary
This PR adds a Control UI session-dashboard host with a board/chat face switch, board-aware chat docking, reset confirmation, board indicators, and persisted per-session board view state.

PR surface: Source +1560, Tests +938. Total +2498 across 31 files.

Reproducibility: yes. from source with medium confidence: open a board-bearing session on the dashboard face, side-dock chat on a wide window, and open a workspace/tasks/detail rail; the chat’s rail decisions use full-pane rather than dock width. A browser run is still needed to confirm the visible overflow/squeeze on the current head.

Review metrics: 1 noteworthy metric.

  • Persisted dashboard view state: 1 added UI settings field. boardSessionViews introduces durable per-session face, tab, and dock preferences that need upgrade-safe behavior review.

Stored data model
Persistent data-model change detected: serialized state: ui/src/app/settings.node.test.ts, serialized state: ui/src/components/dock-panel-layout.test.ts, serialized state: ui/src/components/dock-panel-layout.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: πŸ§‚ unranked krab
Proof: πŸ§‚ unranked krab
Patch quality: 🦐 gold shrimp
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Fix the side-docked chat sizing defect and add a focused regression test.
  • [P1] Attach redacted after-fix browser proof for face switching, all dock modes, reset confirmation, and the narrow side-dock case.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR describes test, lint, typecheck, and mock/dev-harness results but provides no inspectable after-fix browser evidence for the face switch, dock states, reset guard, or constrained side-dock layout. Add redacted browser recording, screenshots with visible behavior, or live browser output; after updating the body, request @clawsweeper re-review if a fresh review does not start automatically. 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.

Risk before merge

  • [P1] Merging before the side-dock sizing fix can make existing chat rails or detail panels render inside a much narrower embedded chat pane, squeezing or overflowing the composer.
  • [P1] The new persisted boardSessionViews setting stores session-scoped UI preferences; maintainers should see focused fresh-state and stored-preference behavior evidence before landing.

Maintainer options:

  1. Repair embedded-chat sizing before merge (recommended)
    Use the actual side-dock dimensions when choosing chat rail/detail layout, add focused regression coverage, and provide browser evidence for the constrained dock path.
  2. Pause the dashboard host split
    Keep this host PR unmerged until the dashboard program has a single integrated layout path that proves narrow-side-dock behavior.

Next step before merge

  • [P1] This protected, active feature PR needs contributor-owned layout repair and real browser proof; it is not a safe autonomous repair-lane candidate.

Security
Cleared: The reviewed PR surface is Control UI state, layout, and tests; the provided diff context shows no new dependency, workflow, secret, artifact-download, package-resolution, or permission boundary concern.

Review findings

  • [P2] Size embedded chat from the active dock dimensions β€” ui/src/pages/chat/chat-pane.ts:1
Review details

Best possible solution:

Size embedded chat layout decisions from the active dashboard dock dimensions or force its secondary rails into the narrow/bottom presentation while side-docked, then attach redacted browser proof covering left/right/bottom/hidden docks and a narrow side-dock case with an existing rail open.

Do we have a high-confidence way to reproduce the issue?

Yes, from source with medium confidence: open a board-bearing session on the dashboard face, side-dock chat on a wide window, and open a workspace/tasks/detail rail; the chat’s rail decisions use full-pane rather than dock width. A browser run is still needed to confirm the visible overflow/squeeze on the current head.

Is this the best way to solve the issue?

No. The current shell is not the best landing state while side-docked chat still bases responsive layout on the enclosing pane; the narrow embedded surface needs its own measured layout input or a forced narrow rail layout.

Full review comments:

  • [P2] Size embedded chat from the active dock dimensions β€” ui/src/pages/chat/chat-pane.ts:1
    The dashboard side-dock renders chat with responsiveness derived from the full pane width, so a wide shell can retain a side workspace/tasks/detail rail inside a roughly 420px chat dock. That leaves the rail and composer competing for the narrow dock; derive the layout from the dock size or force the secondary rails to their narrow presentation. This re-raises the still-unfixed prior review concern.
    Confidence: 0.86

Overall correctness: patch is incorrect
Overall confidence: 0.78

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 837db49ebb24.

Label changes

Label justifications:

  • P2: This is an active user-facing Control UI feature with a concrete constrained-layout defect but no emergency runtime impact.
  • merge-risk: 🚨 compatibility: The PR adds persisted UI settings and changes shared dock-side semantics, so existing local preferences and dock consumers need upgrade-safe validation.
  • rating: πŸ§‚ unranked krab: Overall readiness is πŸ§‚ unranked krab; proof is πŸ§‚ unranked krab and patch quality is 🦐 gold shrimp.
  • status: πŸ“£ needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR describes test, lint, typecheck, and mock/dev-harness results but provides no inspectable after-fix browser evidence for the face switch, dock states, reset guard, or constrained side-dock layout. Add redacted browser recording, screenshots with visible behavior, or live browser output; after updating the body, request @clawsweeper re-review if a fresh review does not start automatically. 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

PR surface:

Source +1560, Tests +938. Total +2498 across 31 files.

View PR surface stats
Area Files Added Removed Net
Source 23 1601 41 +1560
Tests 8 945 7 +938
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 31 2546 48 +2498

What I checked:

  • Unresolved prior finding: The prior review identifies that the side-docked dashboard chat is rendered using the full pane width, so an open workspace/tasks/detail rail can remain side-docked inside a narrow chat dock and overflow or squeeze the composer. The current head only adds a merge-resolution commit for the sidebar conflict; the review context does not show a repair for this chat-pane concern. (ui/src/pages/chat/chat-pane.ts, 4eea00498b86)
  • Persisted preference surface: The branch adds boardSessionViews to UI settings and persists a per-session face, tab, and dock preference, making upgrade and stored-preference behavior relevant before merge. (ui/src/app/settings.ts:117, 260f6d92839b)
  • Real behavior proof absent: The PR body reports 477 tests, static checks, and mock/dev harness coverage, but the provided body, comments, and timeline contain no inspectable after-fix browser recording, screenshot, terminal output, live output, or linked artifact for the dashboard flow. (4eea00498b86)
  • Related implementation landed: The related board-grid implementation was merged as feat(ui): session board grid engine and board viewΒ #110644, but it is an adjacent rendering component rather than a replacement for this PR’s session-host and dock behavior. (ui/src/components/board-view-placeholder.ts:1, 8a66aa76dd94)

Likely related people:

  • steipete: Authored this branch’s substantive dashboard commits and the previously merged board-grid implementation that this host surface integrates with. (role: session-dashboard feature author and recent area contributor; confidence: medium; commits: 71493e92be37, 8129c6a6501e, 9b3cfc1381cd; files: ui/src/pages/chat/chat-pane.ts, ui/src/pages/chat/board-session-surface.ts, ui/src/lib/board/provider.ts)
What the crustacean ranks mean
  • πŸ¦€ challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • πŸ¦ͺ silver shellfish: thin signal; proof, validation, or implementation needs work.
  • πŸ§‚ unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (2 earlier review cycles)
  • reviewed 2026-07-18T14:57:17.943Z sha 8129c6a :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T16:11:45.421Z sha 9b3cfc1 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added 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 Jul 18, 2026

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

Copy link
Copy Markdown
Contributor

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: 9b3cfc1381

ℹ️ 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".

assistantAttachmentAuthToken: resolveAssistantAttachmentAuthToken(state as never),
basePath: state.basePath,
};
const chat = renderChat(props);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Size dashboard chat layout from the dock

When the dashboard face side-docks chat, this chat template was already built from props whose rail/sidebar decisions use the full pane width (this.paneWidth) rather than the dock width. On a wide window with the default 420px side dock and an open workspace/tasks/detail rail, those rails remain side-docked because paneWidth exceeds the 800px/680px thresholds, so a 280px rail or detail panel is laid out inside the narrow chat dock and squeezes/overflows the composer. Build the chat props from the actual dock size, or force the chat rails/detail panel into their narrow/bottom layout while chat is embedded in a side dock.

Useful? React with πŸ‘Β / πŸ‘Ž.

@steipete

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

…-dock

# Conflicts:
#	ui/src/components/app-sidebar-session-list.ts

Copilot AI commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved and pushed in 4eea004. I merged latest origin/main into this branch and resolved the sidebar-session-list conflict.

@steipete
steipete merged commit e9fe7c7 into main Jul 18, 2026
88 checks passed
@steipete
steipete deleted the claude/dashboard-chat-dock branch July 18, 2026 17:01
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 19, 2026
openclaw#110728)

* feat(ui): add session dashboard shell

* fix(ui): defer confirmed reset during active runs

* fix(ui): align dashboard shell with shared controls

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
openclaw#110728)

* feat(ui): add session dashboard shell

* fix(ui): defer confirmed reset during active runs

* fix(ui): align dashboard shell with shared controls

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
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. P2 Normal backlog priority with limited blast radius. rating: πŸ§‚ unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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.

2 participants