Repository navigation
improve(ui): consolidate dashboard chat visibility into one Chat/Split/Dashboard toggle - #120487
Conversation
|
Codex review: found issues before merge. Reviewed August 8, 2026, 7:43 AM ET / 11:43 UTC. ClawSweeper reviewWhat this changesThis PR replaces separate dashboard chat controls with a unified Chat, Split, and Dashboard header switch plus a dock-side picker. Merge readinessThe consolidation is focused, but the read-only fallback can mark Dashboard active while the chat remains visible; resolve that mode meaning before merge. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI resolves each session board’s face and per-tab chat dock, then renders the header control and the board/chat layout. The switch changes local face state and, where permitted, asks the existing board owner to persist dock visibility or position. flowchart LR
A[Session board state] --> B[Board view resolver]
B --> C[Header view switch]
C --> D{Can change dock?}
D -->|Yes| E[Persist dock visibility or side]
D -->|No| F[Two-option fallback]
E --> G[Board and chat surface]
F --> G
Decision needed
Why: The two choices produce different control semantics and documentation; source evidence does not establish which operator experience is intended. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -48, Tests +95, Docs +3. Total +50 across 11 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Make the selected control state match the rendered surface for read-only boards, then cover that permission path alongside the editable Split and Dashboard modes. Do we have a high-confidence way to reproduce the issue? Yes, from source: open a board as a viewer without operator write access while its active tab has a visible dock; the fallback selects Dashboard although the board renderer retains the chat pane. Is this the best way to solve the issue? No; the editable path is coherent, but the read-only fallback must either expose Split truthfully or document a deliberately different Dashboard meaning. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against de9314301f05. 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 (2 earlier review cycles)
|
0baf97b to
5da12fd
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
679a83d to
39dae00
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…t/Dashboard toggle The dashboard face spread chat visibility across three separate affordances: a two-option face toggle, an icon-only dock dropdown among the header actions, and a floating vertically-rotated "Show chat" button on the board edge that users could not discover. One concept, three controls. The header now renders a single segmented control - Chat | Split | Dashboard - where Split is dashboard plus docked chat and Dashboard is board-only (the former "Hide chat"). A compact caret attached to the pill picks the dock side (left/right/bottom) and only appears in Split mode when dock mutation is allowed; read-only sessions keep the plain two-option Chat | Dashboard toggle. The floating reopen button, the standalone dock menu button, and their CSS (including the mobile overrides) are deleted, so the header ends up with fewer buttons than before. Verified in the mock-gateway dev harness: mode mapping, caret dropdown, unhide-to-remembered-side, and hidden dock rendering board-only.
…dk baseline BoardVisibleChatDock lost its last external consumer when the board view switch consolidated dock controls; keep it file-local so the production unused-export scan stays clean. Also regenerate docs/.generated/plugin-sdk-api-baseline.sha256: the session-catalog module hash was stale on main (check fails on clean origin/main after the agent-attribution reverts), which blocks every PR's check-plugin-sdk-api-baseline job.
39dae00 to
ccc2f03
Compare
|
Merged via squash.
|
Rebase onto main moved the board dock to .chat-pane__dock-caret (PR #120487); selector+fixture updated, measured width 793px.
) * fix(ui): keep split-pane close button reachable in narrow panes Pane headers used viewport media queries, so split panes could shrink far below the viewport without adapting their controls. Move header responsiveness to inline-size container queries and apply a priority ladder that sheds split and secondary actions before the close control can be clipped. * test(ui): focus surviving pane action in narrow splits * fix(ui): cover full narrow-pane header composition * fix(ui): shed secondary split-header controls through 640px closes the 521-640px interval where secondary controls returned before the pane could fit them, per ClawSweeper P1 on eb90baa. * fix(ui): prove full split-header fits just above the shed cutoff Measured full-composition width 728px; cutoff raised to 720px accordingly, per ClawSweeper P1 on b3b0b1c. * fix(ui): avoid shadowing split-header fixture variable * fix(ui): hide the dock caret in narrow split headers Rebase onto main moved the board dock to .chat-pane__dock-caret (PR #120487); selector+fixture updated, measured width 793px.
…120605) The visible-dock union existed twice: BoardVisibleChatDock (hand-written literal union in lib/board/settings.ts, persistence layer) and VisibleBoardDock (derived from the protocol BoardTab shape in chat-pane-shared.ts, render layer). Follow-up from #120487. Keep one canonical exported type in lib/board/settings.ts, now derived from BoardTab so persisted settings can never drift from the wire contract, and migrate all render-layer consumers to it. Net -5 LOC, type-only.
…t/Dashboard toggle (openclaw#120487) * improve(ui): consolidate dashboard chat visibility into one Chat/Split/Dashboard toggle The dashboard face spread chat visibility across three separate affordances: a two-option face toggle, an icon-only dock dropdown among the header actions, and a floating vertically-rotated "Show chat" button on the board edge that users could not discover. One concept, three controls. The header now renders a single segmented control - Chat | Split | Dashboard - where Split is dashboard plus docked chat and Dashboard is board-only (the former "Hide chat"). A compact caret attached to the pill picks the dock side (left/right/bottom) and only appears in Split mode when dock mutation is allowed; read-only sessions keep the plain two-option Chat | Dashboard toggle. The floating reopen button, the standalone dock menu button, and their CSS (including the mobile overrides) are deleted, so the header ends up with fewer buttons than before. Verified in the mock-gateway dev harness: mode mapping, caret dropdown, unhide-to-remembered-side, and hidden dock rendering board-only. * fix(ci): unexport board dock settings union and repair stale plugin-sdk baseline BoardVisibleChatDock lost its last external consumer when the board view switch consolidated dock controls; keep it file-local so the production unused-export scan stays clean. Also regenerate docs/.generated/plugin-sdk-api-baseline.sha256: the session-catalog module hash was stale on main (check fails on clean origin/main after the agent-attribution reverts), which blocks every PR's check-plugin-sdk-api-baseline job. * docs(web): describe the Chat/Split/Dashboard switch and dock-side picker
…claw#120460) * fix(ui): keep split-pane close button reachable in narrow panes Pane headers used viewport media queries, so split panes could shrink far below the viewport without adapting their controls. Move header responsiveness to inline-size container queries and apply a priority ladder that sheds split and secondary actions before the close control can be clipped. * test(ui): focus surviving pane action in narrow splits * fix(ui): cover full narrow-pane header composition * fix(ui): shed secondary split-header controls through 640px closes the 521-640px interval where secondary controls returned before the pane could fit them, per ClawSweeper P1 on eb90baa. * fix(ui): prove full split-header fits just above the shed cutoff Measured full-composition width 728px; cutoff raised to 720px accordingly, per ClawSweeper P1 on b3b0b1c. * fix(ui): avoid shadowing split-header fixture variable * fix(ui): hide the dock caret in narrow split headers Rebase onto main moved the board dock to .chat-pane__dock-caret (PR openclaw#120487); selector+fixture updated, measured width 793px.
…penclaw#120605) The visible-dock union existed twice: BoardVisibleChatDock (hand-written literal union in lib/board/settings.ts, persistence layer) and VisibleBoardDock (derived from the protocol BoardTab shape in chat-pane-shared.ts, render layer). Follow-up from openclaw#120487. Keep one canonical exported type in lib/board/settings.ts, now derived from BoardTab so persisted settings can never drift from the wire contract, and migrate all render-layer consumers to it. Net -5 LOC, type-only.
What Problem This Solves
Resolves a problem where hiding the chat on a session dashboard left users stranded: the only way back was a floating, vertically-rotated "Show chat" button pinned to the board edge, which reads as decoration rather than a control. Chat visibility was spread across three separate affordances — the
Chat | Dashboardface toggle, an icon-only dock dropdown buried among ~8 other header action buttons, and the floating reopen button — so "where did my chat go" had no discoverable answer.Why This Change Was Made
One concept (how the chat is shown on the dashboard) deserves one control. The header now renders a single segmented switch:
The floating rotated button, the standalone dock-menu icon button, and their CSS (desktop + mobile overrides) are deleted. Read-only sessions (dock mutation not allowed) keep the plain two-option
Chat | Dashboardtoggle instead of a disabled three-state. ThechatDockboard state, agent-driven dock commands, and reopen-side persistence are untouched — this is purely a control-surface consolidation.User Impact
Chat visibility on dashboards is now always explained by the visible state of one header toggle, and the header has fewer buttons than before. No config, protocol, or board-state changes; the removed i18n keys (
reopenChat,dockHidden) were only used by the deleted controls.Evidence
node scripts/run-vitest.mjs ui/src/pages/chat/board-session-surface.test.ts— 21 passednode scripts/run-vitest.mjs ui/src/pages/chat— 113 files passed, 2567 tests passedpnpm tsgo:ui— clean;pnpm lint:ui:styles— clean; oxfmt check clean;pnpm ui:i18n:baseline— no artifact driftgpt-5.6-sol, high): clean, no actionable findingsscripts/control-ui-mock-dev.ts): mode mapping for all face/dock combos, caret dropdown mutating the dock, Dashboard hiding chat (board-only surface, no stray reopen button), Split restoring the remembered dock sideChat | Split ▾ | Dashboardsegmented control; caret shows Dock chat left/right/bottom