Skip to content

fix(ui): keep the sidebar in one scroll area on every route - #148809

Merged
steipete merged 1 commit into
mainfrom
codex/sidebar-one-scroll-area
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/sidebar-one-scroll-area

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #147519, #109694.

What Problem This Solves

The sidebar scrolls navigation separately from sessions or machines after the Systems workspace change, splitting one continuous list into two regions.

User Impact

Navigation and the active list scroll together on every route, including Systems. The header and footer stay fixed, and switching back restores the destination's scroll position.

Why This Change Was Made

Place navigation back inside the existing sidebar scroller and remove its independent height cap and overflow. Systems replaces the list content inside that same scroller and uses the shared scroll fades.

Evidence

Both new browser regressions failed before the fix: the list moved 160 pixels while Home stayed fixed. Both pass afterward, including scrolling over either navigation or list content.

  • 5 Chromium E2E cases passed, covering both routes, machine selection across navigation, the mobile picker, scrollbar/RTL masks, and focused outlines.
  • 432 focused sidebar/controller/state unit tests passed, including destination restoration and Systems scroll fades.
  • The production UI bundle built for E2E; independent review through P2 found no actionable issues.
  • Changed-file checks passed, including UI/core-test types, formatting, lint, styles, i18n, dependency/ratchet guards, and dead-export scans.
  • Documentation link audit passed (13,784 internal links; zero broken).
  • Exact-head hosted CI passed, including the real-Gateway browser suite; ClawSweeper found no actionable issues.

The following screenshots use only synthetic fixtures at matching 1440 × 900 viewports, cropped to the sidebar. Each shows the result of the same 160-pixel wheel scroll. Full captures were inspected before cropping and upload.

Route Before After
Sessions Sessions before Sessions after
Systems Systems before Systems after

Restore shared scrolling for global navigation and the active session or Systems list after #147519 split them apart. Preserve destination scroll restoration and shared scroll fades. Regression proof fails before the change on both routes and passes afterward; 5 browser cases and 432 focused unit tests pass.
@clawsweeper

clawsweeper Bot commented Sep 15, 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.

@steipete
steipete marked this pull request as ready for review September 15, 2026 05:43
@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 Sep 15, 2026
@clawsweeper clawsweeper Bot added 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: 🐚 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 1:57 AM ET / 05:57 UTC (Revision 2).

ClawSweeper review

What this changes

The PR makes sidebar navigation scroll with the session or machine list, preserves destination scroll positions, and updates documentation and regression coverage.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary on current main. The focused implementation and inspected before/after screenshots support the intended behavior, with no actionable defects found.

Priority: P2
Reviewed head: f4c65b088761530284cf4f31b239890d1a7b5d28

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable repair with strong visual evidence and meaningful regression coverage; no blocking defect was found.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Sessions and Systems before/after screenshots from the production UI browser harness with synthetic Gateway data directly show the changed sidebar layout after scrolling; the paired displacement assertions supplement that visible proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected Sessions and Systems before/after screenshots from the production UI browser harness with synthetic Gateway data directly show the changed sidebar layout after scrolling; the paired displacement assertions supplement that visible proof.
Evidence reviewed 7 items Introduced change and current-main necessity: The pinned merge-base-to-head patch moves navigation into the existing sidebar body. At fetched main, navigation remains outside that body and retains its independent 45% height cap and overflow.
Existing scroll ownership retained: The complete sidebar and context controller retain the mounted session tree and per-destination positions; scroll events now update the existing fade owner for Systems too. No persistent settings, Gateway requests, or plugin API contracts change.
Inspected visual proof: Inspected all four downloaded GitHub images from the supplied manifest. The Sessions and Systems before/after pairs visibly show navigation moving away with list content after the described wheel scroll, while the brand row and footer remain fixed. Captures use synthetic data and are embedded in the captured PR body.
Findings None None.
Security None None.

How this fits together

The Control UI sidebar combines global navigation with sessions or the active route’s machine list. Its existing controllers retain scroll positions and update visual fades while the header and footer remain fixed.

flowchart TD
  A[Active route] --> B[Select sessions or machines]
  C[Global navigation] --> D[Shared sidebar scroller]
  B --> D
  E[Wheel and scroll input] --> D
  D --> F[Destination positions and edge fades]
  G[Fixed header and footer] --- D
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -6, Tests +87, Docs +1. Total +82 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 32 38 -6
Tests 2 143 56 +87
Docs 1 3 2 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 178 96 +82

Review metrics

None.

Technical review

Best possible solution:

Keep one sidebar scroll container for navigation and route content, using the existing destination-position and fade controllers.

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

Yes: current-main markup and CSS establish separate scrollers, and the supplied browser scenario exercises overflow on both session and machine routes. This review did not execute that scenario.

Is this the best way to solve the issue?

Yes: moving navigation into the existing scroller removes the competing overflow region without adding a second state owner or changing saved preferences.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs a bounded sidebar interaction regression without blocking core agent or channel workflows.
  • 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): Inspected Sessions and Systems before/after screenshots from the production UI browser harness with synthetic Gateway data directly show the changed sidebar layout after scrolling; the paired displacement assertions supplement that visible proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected Sessions and Systems before/after screenshots from the production UI browser harness with synthetic Gateway data directly show the changed sidebar layout after scrolling; the paired displacement assertions supplement that visible proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected Sessions and Systems before/after screenshots from the production UI browser harness with synthetic Gateway data directly show the changed sidebar layout after scrolling; the paired displacement assertions supplement that visible proof.

Evidence

What I checked:

  • Introduced change and current-main necessity: The pinned merge-base-to-head patch moves navigation into the existing sidebar body. At fetched main, navigation remains outside that body and retains its independent 45% height cap and overflow. (ui/src/components/app-sidebar.ts:636, c657a10e11da)
  • Existing scroll ownership retained: The complete sidebar and context controller retain the mounted session tree and per-destination positions; scroll events now update the existing fade owner for Systems too. No persistent settings, Gateway requests, or plugin API contracts change. (ui/src/components/sidebar-context-controller.ts:38, f4c65b088761)
  • Inspected visual proof: Inspected all four downloaded GitHub images from the supplied manifest. The Sessions and Systems before/after pairs visibly show navigation moving away with list content after the described wheel scroll, while the brand row and footer remain fixed. Captures use synthetic data and are embedded in the captured PR body. (f4c65b088761)
  • Behavioral regression coverage: The two browser cases compare navigation and list displacement when scrolling over either region. Existing restoration coverage remains, and fade cases now cover both destinations. The PR reports before-fix failures, five passing browser cases, and 432 focused tests; these were inspected but not rerun during this read-only review. (ui/src/e2e/systems-workspace.e2e.test.ts:55, f4c65b088761)
  • Latest-release behavior: The latest supplied release, v2026.9.4, already placed navigation inside the sidebar body. This supports restoration of established behavior; it does not establish that the newer Systems regression is fixed in a release. (ui/src/components/app-sidebar.ts:600, 3a9d69db306c)
  • Relevant merged history: The supplied GitHub context verifies feat(ui): unify sidebar scrolling, move new-thread to brand row, keep Mac titlebar search #109694 as the merged earlier scrolling work and feat: add a desktop-first Systems workspace #147519 as the merged Systems workspace. Local history ties the destination controller to the latter; its raw parent lacks that file. Neither related PR supersedes this remaining repair. (ui/src/components/sidebar-context-controller.ts:34, 0a45707dda5b)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Raw commit 0a45707 adds ui/src/components/sidebar-context-controller.ts:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0a45707dda5b; files: ui/src/components/sidebar-context-controller.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-15T05:49:32.989Z sha f4c65b0 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 5f69fc7 into main Sep 15, 2026
194 checks passed
@steipete
steipete deleted the codex/sidebar-one-scroll-area branch September 15, 2026 06:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…#148809)

Restore shared scrolling for global navigation and the active session or Systems list after openclaw#147519 split them apart. Preserve destination scroll restoration and shared scroll fades. Regression proof fails before the change on both routes and passes afterward; 5 browser cases and 432 focused unit tests pass.
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 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: 🐚 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.

1 participant