Skip to content

fix(ui): chat background-tasks rail crushes narrow panes and hides below 1120px - #104107

Merged
steipete merged 1 commit into
mainfrom
claude/tasks-rail-narrow-panes
Jul 11, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/tasks-rail-narrow-panes

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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: none behind 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.

Wide (1440px): both rails side-docked Medium (1150px): workspace keeps the side slot, tasks strip below
both rails side by side tasks rail as bottom strip
Narrow (900px): side workspace + tasks strip Compact (700px): both rails as stacked strips
900px window 700px window with stacked strips

Tests:

  • ui/src/pages/chat/chat-view.test.ts: narrowLayout swaps chat-workbench--tasks-open for chat-workbench--tasks-dock-bottom while 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.
  • Gates: pnpm check:changed + focused Vitest on Testbox; codex autoreview — results posted before merge.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 11, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot 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. P1 High-priority user-facing bug, regression, or broken workflow. labels Jul 11, 2026
@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 10, 2026, 11:21 PM ET / July 11, 2026, 03:21 UTC.

Summary
The PR makes the chat background-tasks rail follow measured pane width, bottom-docking it in narrow layouts while updating rail composition, geometry tests, and Control UI documentation.

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
Relationship: fixed_by_candidate
Canonical: #104091
Summary: The linked issue is the canonical report; this PR directly fixes it, while the merged related PRs establish introduction and sibling-fix provenance.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

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

Rank-up moves:

  • none.

Risk before merge

  • [P1] The branch conflicts with current main, so conflict resolution could accidentally omit either the new responsive calculation or nearby main-only chat changes.
  • [P1] The screenshots prove the submitted head, not the eventual conflict-resolved head; focused geometry and visual validation should be repeated after resolution.

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] A maintainer should resolve the current conflicts and validate the exact resulting head; no discrete implementation defect was found for an automated repair lane.

Maintainer decision needed

  • Question: Should this protected PR be conflict-resolved and landed with both current-main chat changes and its proven pane-responsive tasks-rail behavior preserved?
  • Rationale: The patch appears correct and product direction is already established by the sibling layout, but the dirty merge state requires maintainer control of the final resolved head.
  • Likely owner: steipete — The merged feature and sibling responsive-layout history make this person the strongest available decision owner.
  • Options:
    • Resolve and validate (recommended): Carry both change sets forward, rerun focused responsive tests, and confirm the same visual states on the exact resolved head.
    • Pause for redesign: Keep the PR open without landing only if conflict resolution reveals that current-main layout direction invalidates the established workspace-first side-slot policy.

Security
Cleared: The UI, CSS, tests, and docs diff introduces no concrete security or supply-chain concern.

Review details

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

Label justifications:

  • P1: The current bug makes background tasks unreachable below 1120px and can crush the primary chat thread in common narrow split panes.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Four linked after-fix Control UI screenshots directly demonstrate the changed responsive layout at representative widths, and the repository proof check passes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Four linked after-fix Control UI screenshots directly demonstrate the changed responsive layout at representative widths, and the repository proof check passes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Four linked after-fix Control UI screenshots directly demonstrate the changed responsive layout at representative widths, and the repository proof check passes.
Evidence reviewed

PR surface:

Source +31, Tests +51, Docs 0. Total +82 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 4 74 43 +31
Tests 3 72 21 +51
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 147 65 +82

What I checked:

  • Current-main defect: Current main still defines the tasks rail as a side-only grid column and retains the media query that hides its opening controls below 1120px. (ui/src/styles/chat/sidebar.css:36, ffc8051cacb5)
  • Missing narrow presentation: Current main explicitly hides the tasks rail below 1120px because no narrow presentation exists, so the central problem is not implemented on main. (ui/src/styles/chat/sidebar.css:1690, ffc8051cacb5)
  • Owner-aligned implementation: The branch extends the existing pane-width calculation so the workspace rail receives first claim on a side slot and the tasks rail bottom-docks when two side rails would leave insufficient chat width. (ui/src/pages/chat/chat-pane.ts:1234, d3c0444eca74)
  • Declarative presentation: The branch maps the prepared narrow-layout fact to mutually exclusive side-rail and bottom-strip classes without adding persisted state or another responsive observer. (ui/src/pages/chat/chat-view.ts:188, d3c0444eca74)
  • Grid composition: The CSS supports a tasks-only bottom row, stacked workspace and tasks rows, and a collapsed-workspace case while keeping each tasks section independently scrollable. (ui/src/styles/chat/sidebar.css:1682, d3c0444eca74)
  • Real behavior proof: Four after-fix screenshots directly show readable, non-overlapping layouts at 1440, 1150, 900, and 700 pixels; GitHub's Real behavior proof check also succeeds on the reviewed head. (d3c0444eca74)

Likely related people:

  • steipete: Introduced the background-tasks rail, implemented the sibling pane-responsive workspace/detail layout, and recently refined the same task rail on current main. (role: feature introducer and recent area contributor; confidence: high; commits: 46692355c903, e6671d9de052, add44b19f155; files: ui/src/pages/chat/components/chat-background-tasks.ts, ui/src/pages/chat/chat-pane.ts, ui/src/pages/chat/chat-view.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.

…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
@steipete
steipete force-pushed the claude/tasks-rail-narrow-panes branch from d3c0444 to 3f588da Compare July 11, 2026 20:39
@steipete
steipete merged commit 0ae3de7 into main Jul 11, 2026
20 checks passed
@steipete
steipete deleted the claude/tasks-rail-narrow-panes branch July 11, 2026 20:40
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 12, 2026
…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
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Chat background-tasks rail crushes narrow panes and is unreachable below 1120px

1 participant