Skip to content

fix(ui): side panel resize handle ignores presses on its line - #197522

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/gentle-shell-2
Nov 12, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/gentle-shell-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the chat side panel resize handle does not respond when you press on its visible line, or just past it on the panel side.

User Impact

User impact: the side panel (Side chat, Files, and the other panel tabs) can be resized by pressing the divider line itself or a few pixels on either side of it, the same way the sessions sidebar already works. The handle is also the same width along its whole length. The trade-off is that the first 5px of the panel's leading edge now belong to the handle; the first panel tab starts 6px in, so no control is covered.

Why This Change Was Made

The divider paints its line at the trailing edge of its gutter, but the pointer target sat entirely before that line: the desktop side panel is stacked above the divider, so the half of the target meant for the panel side never received input. The target is now centered on the visible line, and only the target is raised above the panel. The line keeps its previous layer, so it stays hidden while the gutter animates in behind an already placed panel.

Evidence

Maintainer validation: all four existing Control UI rail/column browser tests passed on the published source, including the pointer drag from two pixels past the divider. The before/after target overlays and original failing-base result were inspected. No new cross-browser or native-shell proof is claimed.

Measured in the Control UI against the mock Gateway (Chromium, 1600x900, light theme) by pressing and dragging at every pixel across the divider.

Dock Before After
Right, panel body 10px before the line; the line and the panel side do nothing 6px before the line, the line, 5px past it
Right, tab row 5px before the line; the line and the panel side do nothing same as the body
Left 5px before the line, the line, 4px past it 6px before the line, the line, 5px past it
Below 10px above the line; the line and the panel side do nothing 6px above the line, the line, 5px below it

Right dock at 4x zoom. The pink tint is an overlay of the measured grab area and is not part of the UI; the resting appearance is unchanged.

Before:

Before: grab area ends at the divider line

After:

After: grab area centered on the divider line

  • ui/src/e2e/chat-rail-columns.e2e.test.ts now also drags from 2px past the line on the panel side. It fails on the base (expected 730 to be less than 710) and passes with the fix.
  • Stylelint, format check, and oxlint on the changed files, and pnpm tsgo:ui, pass.
  • Opening the panel was checked mid-animation: the line stays behind the panel as before.

Gaps: Chromium only; Firefox, WebKit, and the native macOS shell were not exercised. No local review tool was run on this 27-line change.

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

Maintainer integration

The divider hit-area fix passed all four focused Control UI browser scenarios, including dragging from the previously inactive panel side of the line. The existing before/after target measurements were inspected.

The only remaining CI failure is the total raw CSS growth budget (run 43153197594, job 130967572136). The maintainer explicitly authorized this budget exception; the approved hit area and its visual behavior are retained. Other applicable CI and security checks passed.

roboclaw-bot and others added 2 commits November 12, 2026 03:29
The side panel divider paints its line at the trailing edge of the gutter,
but its pointer target sat entirely before that line: the desktop side panel
is stacked above the divider, so the half of the target meant for the panel
side never received input.

Center the target on the visible line and raise only the target above the
panel. The line keeps its layer, so it stays hidden while the gutter
animates in behind an already placed panel.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 77729273-4752-42ab-9b8f-43068ea22c6d
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR centers the side-panel resize target on its visible divider and raises the target above the panel.

Example: Drag the right-docked panel divider starting 2px past the line.

  • Before: The panel intercepts the press and its width stays unchanged.
  • After: The divider receives the press and dragging changes the panel width.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, useful behavior repair with directly inspected visual evidence, held back by a verified diff-caused performance-gate failure.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show measured grab-area overlays in Chromium Control UI at 1600×900 with a mock Gateway; the accompanying pixel-by-pixel drag results cover right, left, and bottom docking, with the reported regression failing on base and passing after the fix.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Pressing the visible side-panel divider or its panel-side edge does not begin resizing.
Reason: The maintainer-authored direction restores an expected interaction with a small repair and explicitly accepts the narrow panel-edge overlap.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it addresses a concrete resize defect still present on main, but its added CSS causes the performance gate to fail.

Priority: P2
Reviewed head: 5f857d5a7e9e9a31149a4921ea4cb0a173009485

Before merge

  • Reduce CSS growth to satisfy the existing performance gate (P2) - The added rules increase bundled raw CSS from 1,704,586 B to 1,704,841 B. Because the base already exceeds the fixed ceiling, the comparison permits only 64 B of growth; this patch adds 255 B and fails control-ui-performance, which also fails the aggregate CI gate. Reduce the emitted CSS by at least 191 B through behavior-preserving consolidation while retaining the hit-area fix, rather than raising the budget.

Findings

  • [P2] Reduce CSS growth to satisfy the existing performance gate — ui/src/styles/chat/startup-layout.css:1144-1150
Agent review details

How this fits together

Control UI layout CSS determines which element receives pointer input; the existing resizable-divider component converts that input into panel-size updates.

flowchart LR
  A[Pointer press] --> B[Divider hit area]
  B --> C[Resizable divider]
  C --> D[Panel resize callback]
  D --> E[Panel layout]
Loading

Technical review

Best possible solution:

Keep the focused hit-area repair and regression case while reducing bundled CSS enough to satisfy the existing performance allowance.

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

Current-main stacking and target geometry explain the failure, corroborated by the supplied browser measurements and reported base-failing regression; no target code was executed during review.

Is this the best way to solve the issue?

The patch repairs the owning CSS boundary without changing drag handlers or persisted sizing, and keeping the painted line below the panel preserves its animation contract.

Full review comments:

  • [P2] Reduce CSS growth to satisfy the existing performance gate — ui/src/styles/chat/startup-layout.css:1144-1150
    The added rules increase bundled raw CSS from 1,704,586 B to 1,704,841 B. Because the base already exceeds the fixed ceiling, the comparison permits only 64 B of growth; this patch adds 255 B and fails control-ui-performance, which also fails the aggregate CI gate. Reduce the emitted CSS by at least 191 B through behavior-preserving consolidation while retaining the hit-area fix, rather than raising the budget.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3978ab104ee6.

Provenance checked

  • Divider painting and stacking changes intended behavior with a stated reason (f8a97fe: Paint complete theme-specific lines inside the gutter without changing hit areas; the earlier host stacking rule was carried through the stylesheet extraction.)
  • Existing panel browser scenario keeps the original intent (6b12657: Consolidate repeated test setup while preserving distinct behavior coverage.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm exec vitest run ui/src/e2e/chat-rail-columns.e2e.test.ts --maxWorkers=1
  • pnpm lint:ui:styles
  • git diff --check
  • Pass the existing control-ui-performance base-versus-head CI comparison.

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit f8a97fe adds ui/src/styles/chat/startup-layout.css:1138 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f8a97fe87ce2; files: ui/src/styles/chat/startup-layout.css)

PR surface

Source +12, Tests +11. Total +23 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 13 1 +12
Tests 1 14 3 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 27 4 +23

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A visible resize target fails to respond, but users can still resize by grabbing farther into the gutter.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Reduce emitted CSS growth and pass the existing base-versus-head performance comparison.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 11:28 PM ET / November 12, 2026, 04:28 UTC.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 12, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit a91e8bf into main Nov 12, 2026
112 of 115 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/gentle-shell-2 branch November 12, 2026 09:33
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged as a91e8bf16c9922531260c365a4420f67a669b189. The resize target now spans both sides of the visible divider.

Validation and CI exceptions are documented in the PR body. Human coauthorship was verified in the final squash commit.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…aw#197522)

Center the side-panel resize target on its visible divider and preserve the line's animation layer.

Four browser scenarios passed. The approved raw-CSS budget exception is documented in the PR.

Co-authored-by: vyctorbrzezowski <[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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants