Repository navigation
fix(ui): chat background-tasks rail crushes narrow panes and hides below 1120px - #104107
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 10, 2026, 11:21 PM ET / July 11, 2026, 03:21 UTC. Summary PR surface: Source +31, Tests +51, Docs 0. Total +82 across 8 files. Reproducibility: yes. from source inspection. Current-main CSS and pane state deterministically reproduce both the hidden compact-window controls and the narrow split-pane side column, although no test was executed during this read-only review. 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. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Resolve the narrow conflicts while preserving the single pane-width decision path, then rerun the focused responsive browser geometry test and confirm representative wide, medium, narrow, and compact layouts on the exact resolved head. Do we have a high-confidence way to reproduce the issue? Yes from source inspection. Current-main CSS and pane state deterministically reproduce both the hidden compact-window controls and the narrow split-pane side column, although no test was executed during this read-only review. Is this the best way to solve the issue? Yes. Reusing the existing pane-width observer and sibling bottom-dock grid is the narrowest maintainable fix and avoids introducing another responsive source of truth or persisted setting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ffc8051cacb5. Label changesLabel justifications:
Evidence reviewedPR surface: Source +31, Tests +51, Docs 0. Total +82 across 8 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
|
…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
d3c0444 to
3f588da
Compare
…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 #104091
Related: #104033, #104010
What Problem This Solves
Fixes an issue where users opening the chat background-tasks rail in a narrow split-view pane would see the 230-280px side column crush the thread to a sliver, and users in windows narrower than 1120px could not reach background tasks at all — the rail and its toggles were
display: nonebehind a viewport media query. This is the same bug class #104033 fixed for the sibling workspace rail and detail panel; the tasks rail (new in #104010) was left on the old viewport-keyed behavior.Why This Change Was Made
The tasks rail now follows the pane's measured width using the ResizeObserver plumbing #104033 added to
openclaw-chat-pane. When the pane is too narrow for a side column it presents as a full-width bottom strip (chat-workbench--tasks-dock-bottom, mirroring the workspace rail's bottom dock, with Running/Finished as side-by-side scroll columns), and the viewport-keyed hiding is removed. When both rails are open but only one side column fits, the workspace rail keeps first claim on the side slot and the tasks rail yields to the bottom — deterministic and reversible as the pane resizes. The detail-panel stacking calculation now subtracts only side-docked rails (bottom strips don't consume horizontal space), which also corrects a small over-subtraction from #104033 when the tasks rail was open but hidden.User Impact
Background tasks stay usable at every pane and window width: narrow panes keep a readable thread with the tasks strip below it, compact windows regain access to the rail, and wide panes keep the current side-by-side columns. No settings or persisted state change.
Evidence
Verified with the Control UI mock-gateway Playwright harness (chromium + webkit) at 1440/1150/1000/900/800/700/500px windows plus split view, with a rect-intersection probe reporting zero overlaps between the thread, workspace rail, tasks rail, and detail panel at every size.
Tests:
ui/src/pages/chat/chat-view.test.ts:narrowLayoutswapschat-workbench--tasks-openforchat-workbench--tasks-dock-bottomwhile the rail keeps rendering.ui/src/pages/chat/chat-responsive.browser.test.ts: real-CSS geometry — the bottom strip spans the full pane width below both the thread and the workspace strip, bounded to the 160-236px row (replaces the interim ≤1120px hidden-track test, whose media block is deleted).ui/src/pages/chat/components/chat-background-tasks.test.ts: existing rail behavior tests updated for the new prop.pnpm check:changed+ focused Vitest on Testbox; codex autoreview — results posted before merge.