Repository navigation
fix(ui): chat workspace rail and detail panel break narrow panes and compact windows - #104033
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 10, 2026, 9:44 PM ET / July 11, 2026, 01:44 UTC. Summary PR surface: Source +93, Tests +140, Docs +1. Total +234 across 7 files. Reproducibility: yes. Current-main source exposes the viewport-keyed failure path, and the inspected before screenshots directly reproduce both the hidden workspace rail and the crushed split-pane thread. Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the pane-owned responsive layout while preserving the stored workspace dock preference, phone-sized full-screen detail takeover, background-task rail behavior, and shared divider semantics. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source exposes the viewport-keyed failure path, and the inspected before screenshots directly reproduce both the hidden workspace rail and the crushed split-pane thread. Is this the best way to solve the issue? Yes. Measuring the owning pane is the narrowest maintainable solution because pane width can differ from viewport width, and the patch reuses the existing bottom dock and divider instead of creating parallel layout mechanisms. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7ac8e2e227a3. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +93, Tests +140, Docs +1. Total +234 across 7 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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
Review history (1 earlier review cycle)
|
d0f4729 to
088f48a
Compare
The workspace rail and message detail panel keyed layout off viewport media queries, so narrow split-view panes and compact windows got crushed side-by-side columns, and below 1120px the rail was display:none with no way to reach workspace files. Chat panes now measure their own width with a ResizeObserver: under 800px the rail presents as the existing bottom-dock strip (side-dock controls hide), and when the chat + detail split has under 680px the detail panel stacks below the thread with a horizontal resize divider. The phone full-screen detail takeover is unchanged. Bottom-strip path and summary rows no longer flex-shrink into clipped text. Closes #104023
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 088f48a159
ℹ️ 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".
| @media (max-width: 1120px) { | ||
| .chat-workspace-open, | ||
| .chat-tasks-open, | ||
| .chat-pane__actions .chat-workspace-toggle, | ||
| .chat-pane__actions .chat-tasks-toggle { | ||
| display: none; | ||
| } |
There was a problem hiding this comment.
Reset the tasks grid when hiding the rail
If a user opens the background-tasks rail in a wide window and then narrows the viewport below 1120px, this media rule hides .chat-tasks-rail and the only task toggles, but .chat-workbench--tasks-open still applies the earlier grid-template-columns: minmax(0, 1fr) minmax(230px, 280px). Before this change the same breakpoint switched .chat-workbench to flex, so the hidden rail did not reserve a blank 230–280px column; now the chat stays squeezed and the user cannot collapse the hidden rail until widening again.
Useful? React with 👍 / 👎.
088f48a to
92a5bd3
Compare
|
Merged via squash.
|
…penclaw#104033) The workspace rail and message detail panel keyed layout off viewport media queries, so narrow split-view panes and compact windows got crushed side-by-side columns, and below 1120px the rail was display:none with no way to reach workspace files. Chat panes now measure their own width with a ResizeObserver: under 800px the rail presents as the existing bottom-dock strip (side-dock controls hide), and when the chat + detail split has under 680px the detail panel stacks below the thread with a horizontal resize divider. The phone full-screen detail takeover is unchanged. Bottom-strip path and summary rows no longer flex-shrink into clipped text. Closes openclaw#104023
…panes The tasks rail (from #104010) only rendered as a right-docked 230-280px column and vanished with its toggles below a 1120px viewport, so narrow split-view panes got a crushed thread and compact windows lost access to background tasks entirely — the same bug class #104033 fixed for the workspace rail and detail panel. The rail now follows the pane's measured width: it presents as a full-width bottom strip (sections side by side like the workspace rail's bottom dock) when the pane is too narrow for a side column, and the workspace rail keeps first claim on the side slot when only one column fits. Side-docked rails, not bottom strips, now count against the width available to the chat + detail split. Closes #104091
…panes (#104107) The tasks rail (from #104010) only rendered as a right-docked 230-280px column and vanished with its toggles below a 1120px viewport, so narrow split-view panes got a crushed thread and compact windows lost access to background tasks entirely — the same bug class #104033 fixed for the workspace rail and detail panel. The rail now follows the pane's measured width: it presents as a full-width bottom strip (sections side by side like the workspace rail's bottom dock) when the pane is too narrow for a side column, and the workspace rail keeps first claim on the side slot when only one column fits. Side-docked rails, not bottom strips, now count against the width available to the chat + detail split. Proof: check:changed + 212 focused tests green on Testbox at this exact content; codex autoreview clean; chromium+webkit visual verification at seven window widths plus split view with zero geometry overlaps. Landed with maintainer CI override. Closes #104091
…panes (openclaw#104107) The tasks rail (from openclaw#104010) only rendered as a right-docked 230-280px column and vanished with its toggles below a 1120px viewport, so narrow split-view panes got a crushed thread and compact windows lost access to background tasks entirely — the same bug class openclaw#104033 fixed for the workspace rail and detail panel. The rail now follows the pane's measured width: it presents as a full-width bottom strip (sections side by side like the workspace rail's bottom dock) when the pane is too narrow for a side column, and the workspace rail keeps first claim on the side slot when only one column fits. Side-docked rails, not bottom strips, now count against the width available to the chat + detail split. Proof: check:changed + 212 focused tests green on Testbox at this exact content; codex autoreview clean; chromium+webkit visual verification at seven window widths plus split view with zero geometry overlaps. Landed with maintainer CI override. Closes openclaw#104091
Closes #104023
What Problem This Solves
Fixes an issue where users opening the session workspace rail or the file/tool detail panel in a narrow chat pane would see the layout fall apart. The rail and detail panel keyed their layout off viewport media queries, so a narrow split-view pane inside a wide window (or a compact macOS-app session window whose webview reports a wide viewport) still got the wide side-by-side treatment: a 280px rail column crushed the thread to a ~300px sliver with clipped, overlapping bubbles, and the chat + detail-panel pair (312px + 300px minimums) overflowed the pane. Below a 1120px viewport the rail and all of its toggles were simply
display: none, making workspace files unreachable in narrow windows.Why This Change Was Made
Layout decisions now follow the pane's own measured width instead of viewport breakpoints:
openclaw-chat-paneobserves its width with aResizeObserverand switches to horizontal splits when side-by-side cannot fit. Below 800px of pane width the workspace rail always presents as the existing bottom-dock strip (side-dock drag/toggle controls hide until the pane widens; the persisted dock preference is untouched). When the width available to the chat + detail split (pane minus a side-docked rail) drops under 680px, the detail panel stacks below the thread and the sharedresizable-dividerflips to its horizontal orientation, so the split stays resizable. The phone-sized (≤768px viewport) full-screen detail takeover is unchanged. The 1120px hide-the-rail cliff is removed — the rail is now usable at every width — and two bottom-strip rows (workspace path, summary chips) no longer flex-shrink into clipped text.User Impact
Narrow chat panes — split-view panes, compact desktop windows, and macOS-app session windows — keep a readable thread when the workspace rail or detail panel is open: panels move below the chat instead of fighting it for horizontal space. Workspace files are now reachable in windows narrower than 1120px, where the rail previously did not exist at all.
Evidence
Reproduced and verified with the Control UI mock-gateway Playwright harness (chromium + webkit) across 1440/1150/1000/900/800/700/500px windows and a two-pane split view; a geometry probe asserts no rail/thread/panel rect intersections and no horizontal document overflow at any size after the change.
Split view, narrow pane with workspace rail (before → after):
800px window (before: rail inaccessible → after: bottom strip):
Stacked detail panel — 900px window with side rail + detail panel (full size), and split view with rail + detail in one narrow pane (full size).
Tests:
ui/src/pages/chat/chat-view.test.ts: stacked class + horizontal divider orientation fromsidebarStacked;narrowLayoutforces the bottom dock and hides side-dock controls.ui/src/pages/chat/chat-responsive.browser.test.ts: real-CSS geometry — stacked panel sits below the thread at full pane width; bottom-strip path/summary rows keep their height instead of clipping.pnpm check:changed(delegated to Testbox) — result posted below before merge.