Skip to content

feat(ui): give each rail section its own sidebar - #199825

Merged
vyctorbrzezowski merged 25 commits into
mainfrom
brzezowski/side-rail-05-section-sidebars
Nov 17, 2026
Merged

vyctorbrzezowski merged 25 commits into
mainfrom
brzezowski/side-rail-05-section-sidebars

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Every rail section opens the same Sessions sidebar, so Dashboards, Users, Automations and Customize have no list of their own beside their pages.

User Impact

Pages open from a rail menu (⋯). Dashboards, Users (with Activity), Automations and Customize each show their own sidebar, however their page is reached.

Why This Change Was Made

Introduces per-section sidebars and the pages menu; later PRs in this series fill each section's list.

Evidence

Screenshots come from the Control UI mock at the end of the series, so the after image can show later parts too.

Dashboards before and after (left: main, right: after):

Dashboards before and after

  • pnpm tsgo:ui passes at this PR's head.
  • The unit tests of the files this PR touches pass at its head; the full UI unit suite passes at the end of the series (one failure also on main: a Workboard German relative-time string, "vor 1min", from the local ICU).
  • dashboard-website and sidebar-customization UI e2e pass at this head.
  • Local autoreview (Codex) over the whole series; its three findings are fixed in this series.
  • The full UI e2e suite was not run locally.

Update: Dashboards stays a gallery

Dashboards no longer gets a section sidebar. It stays the gallery (grid or list, search, author filter, display menu), now held in the same 1120px page column as Usage, and the rail's pages menu still opens it.

  • Each card and list row has a three-dots menu with "Pin to the sidebar" / "Unpin from the sidebar", which puts the dashboard on the rail like other pins.
  • With no dashboards, the gallery shows a sample dashboard illustration, "No dashboards yet", and a New session button.
  • The navigation catalog's dashboard list and the boot snapshot's dashboard rows are gone with the sidebar; pinned dashboards resolve their row on their own.
  • E2E run: dashboard-gallery, dashboards-list-demand (one dashboard request per tab), dashboard-website, session-list-row-events.

Side rail series, part 4 of 16. Stacked on #199824; review only this PR's commits.

Update: e2e repair

The full Control UI e2e run on the stack found tests this PR broke or product gaps it introduced; this PR now carries their fixes:

  • test(ui): start recovered-search e2e tests beside the Sessions list
  • test(ui): measure the default rail pins in the rail pitch e2e
  • test(ui): drop the Dashboards case from the sidebar scroll e2e
  • test(ui): expect no Sessions child read beside the Dashboards sidebar in the row-event e2e
  • test(ui): drop the Sessions row check on Activity in the identity links e2e
  • test(ui): reopen the pages menu before reading plugin selection in native navigation e2e
  • test(ui): follow the gallery's own query beside the Dashboards sidebar list
  • test(ui): read the closed pages menu's Dashboards item in the gallery e2e
  • test(ui): reopen the session for its Sessions list in the identity links e2e
  • test(ui): leave Systems through a page without a sidebar in the Systems e2e

Approved navigation-stack JS budget

Vyctor approved the measured JavaScript byte cost for this navigation stack. These cumulative measurements compare this layer with paired main base 1d82bed0a7fef79012c38ea7e6184911aba27e63. Each cap equals the original main cap plus the measured delta, preserving existing headroom without adding another margin.

Metric Cumulative gzip delta Cap
Largest JS asset +3,025 B 575,465 B
Chat boot JS +3,221 B 1,328,801 B
New Session boot JS +3,059 B 819,691 B

CSS ceilings, request counts, startup ceilings and gate logic are unchanged. Byte measurements are delivery-size evidence, not latency measurements.

Removed the retired Pages-session CSS selectors and their obsolete synthetic test variant; Pages no longer renders those session rows. The retained owner-chip and interaction coverage passed 76 browser tests and 8 E2E cases. The highest-CSS later layer was measured at 1,739,930 raw bytes and 337,105 gzip bytes, below the unchanged caps.

Landing validation

Integrated the preceding rail layer while preserving this layer's production change and original human authors. Repaired the stale snapshot fields and benchmark routes, and kept direct-entry and menu-entry Customize coverage distinct.

All currently visible PR-caused CI failures are fixed in af92df120bcca7deb6187c18f2a24d6b9c9c6eeb:

  • Route synchronization shares the existing sidebar commit effect instead of adding another observer. Previous-route semantics, snapshot work and cleanup are preserved.
  • The plugin reconnect test opens and dismisses More without navigating away from the plugin.
  • Inbox scope coverage returns through Sessions before selecting an agent, preserving all scope and bulk-dismissal assertions.

The controller guard, UI types, 263 focused owner cases and eight relevant browser E2E cases passed after these repairs. Focused lint, formatting and diff checks passed. Fresh independent P0–P2 review found no actionable issue in the reactive/reconnect correction.

The owner-approval failure is in an unchanged, isolated main test/owner/protocol path. Its synchronization fix is separate: #200810. It is not a blocker for this navigation change.

The maintainer authorized CI bypass after resolving the visible failures. Hosted CI on the corrected head is still running; these local results are not a claim that full hosted CI has passed.

@clawsweeper

clawsweeper Bot commented Nov 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.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR replaces the Pages sidebar with a rail menu and adds dedicated Dashboards, Users, Automations, and Customize sidebars.

Example: Open Customize and choose Skills.

  • Before: The sidebar remains a Sessions list, and Skills is reached through the page’s header tabs.
  • After: The sidebar lists Plugins, Skills, Skill workshop, and enabled Templates beside the selected page.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful maintainer-directed work, but the draft has concrete defects and no demonstrated behavior or upgrade proof for saved shortcuts and the changed persisted sidebar navigationView field.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 7 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Opening a section page leaves users beside a Sessions list instead of that section’s navigation.
Reason: Dedicated section navigation has clear user value, and the maintainer-authored PR establishes the direction without requiring another product approval.

Merge readiness

⛔ Blocked before merge - 9 items remain

Keep this maintainer-authored draft open: it adds useful section navigation absent from main, but saved-pin compatibility, automation behavior, and incomplete consumer updates need repair.

Priority: P2
Reviewed head: 4e4d523fe44f42d0abd37bbee8f5e8705a6cda7e

Before merge

  • [P1] Preserve Activity’s persisted shortcut representation (P1) - Removing Activity here also removes it from PersistedSidebarRoute and isPersistedSidebarRoute. An existing railShortcuts value such as ["route:activity", "route:usage"] now normalizes to ["route:usage"] through both settings loading and server preference extraction, silently dropping the user’s saved choice. Keep Activity accepted by the persistence parser and exclude it only from the Pages menu.
  • [P2] Allow New automation to reopen after cancellation (P2) - Clicking New automation navigates to ?new and this effect opens the editor. Cancel calls closePanel(), which closes the editor without changing the URL. Clicking the sidebar action again supplies the same routeSearch string, so this effect does not run again and the editor stays closed. Consume or clear the creation query through the existing route/editor owner so every explicit create action works.
  • [P2] Make automations beyond the first page reachable (P2) - With 201 automations, this requests offset 0 and limit 200, then retains only result.jobs. readCronInventory’s selectPage explicitly slices even a complete cached inventory to that limit. Because the sidebar has no pagination control, automation 201 and later never appear. Retain pagination metadata and expose loading more through the existing inventory reader.
  • [P2] Surface sidebar catalog failures with recovery (P2) - A rejected cron.list request is converted to null and then an empty jobs array, so users see an apparently empty automation list without an error or Retry action. SidebarCustomize repeats the same pattern for plugins.list and silently removes Installed. Let these failures reach the existing SidebarViewBoundary, or preserve a visible error and retry through the owning reader.
  • [P2] Migrate the remaining consumers of the removed Pages view (P2) - The narrowed navigationView union leaves direct assignments of "pages" in sidebar-context-controller.test.ts:30, app-sidebar-session-visibility.browser.test.ts:233, and app-sidebar-nav-menus.test.tsx:372. These are no longer assignable to the property type; at runtime they also fall through to Sessions instead of exercising a distinct panel, weakening the scroll and visibility regressions. Update these consumers to an actual replacement view in the same cutover.
  • [P2] Keep route synchronization within the existing effect allowance (P2) - This adds a second createEffect call in app-sidebar.tsx, but config/control-ui-createEffect-baseline.txt permits one and scripts/check-control-ui-controllers.mts enforces the per-file shrink-only count. The UI guide explicitly forbids increasing that allowance. Fold this route handling into the existing owner/effect lifecycle instead of introducing another effect or raising the baseline.
  • [P2] Avoid closing Customize before exercising its sidebar (P2) - After loading /plugins, the new route effect already selects the open Customize sidebar. customize.select() then chooses Customize from the Pages menu; revealDestination sees that same section open and toggles it closed. The subsequent Templates wait and desktop Skills click target a hidden sidebar. Remove the redundant selection or have the helper check the current open state before selecting, including the earlier shared desktop flow.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.
  • Explain or restore the original intent of Persisted Activity shortcuts - fd01817: Personal shortcut preferences survive navigation changes; removing Activity from the menu does not explain rejecting its previously valid stored pin.

Findings

  • [P1] [P1] Preserve Activity’s persisted shortcut representation — ui/src/app-navigation.ts:27-29
  • [P2] [P2] Allow New automation to reopen after cancellation — ui/src/pages/cron/cron-page.tsx:135-140
  • [P2] [P2] Make automations beyond the first page reachable — ui/src/components/app-sidebar-automations.tsx:49-57

Provenance

  • Persisted Activity shortcuts changes intended behavior without addressing why it exists (fd01817: Personal shortcut preferences survive navigation changes; removing Activity from the menu does not explain rejecting its previously valid stored pin.)

Tests

  • Missing end-to-end proof: The author should supply redacted before/after screenshots and real Control UI navigation evidence for section lists, phone drawer navigation, history, repeated creation, and failed reads, plus a latest-stable upgrade retaining shortcuts and handling existing sidebar snapshots.
Agent review details

How this fits together

The Control UI sidebar consumes shell routes, saved personal shortcuts, and Gateway catalogs, then renders navigation links and section lists through the existing sidebar owner.

flowchart LR
  Routes[Shell routes] --> Owner[Sidebar owner]
  Preferences[Saved shortcuts] --> Owner
  Gateway[Gateway catalogs] --> Lists[Section lists]
  Owner --> Rail[Rail and Pages menu]
  Owner --> Lists
  Rail --> Navigation[Shell navigation]
  Lists --> Navigation
Loading

Technical review

Best possible solution:

Keep the existing sidebar and catalog owners, preserve saved shortcuts independently of menu visibility, and repair the new lists and navigation handlers without adding another state manager.

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

Source inspection establishes the pagination, error-handling, repeated-creation, and consumer-cutover failures; runtime reproduction was not performed.

Is this the best way to solve the issue?

The section split fits the existing architecture, but menu visibility must not redefine persisted preferences, and reads and creation actions must retain their existing recovery and lifecycle contracts.

Full review comments:

  • [P1] [P1] Preserve Activity’s persisted shortcut representation — ui/src/app-navigation.ts:27-29
    Removing Activity here also removes it from PersistedSidebarRoute and isPersistedSidebarRoute. An existing railShortcuts value such as ["route:activity", "route:usage"] now normalizes to ["route:usage"] through both settings loading and server preference extraction, silently dropping the user’s saved choice. Keep Activity accepted by the persistence parser and exclude it only from the Pages menu.
    Confidence: 0.99
  • [P2] [P2] Allow New automation to reopen after cancellation — ui/src/pages/cron/cron-page.tsx:135-140
    Clicking New automation navigates to ?new and this effect opens the editor. Cancel calls closePanel(), which closes the editor without changing the URL. Clicking the sidebar action again supplies the same routeSearch string, so this effect does not run again and the editor stays closed. Consume or clear the creation query through the existing route/editor owner so every explicit create action works.
    Confidence: 0.98
  • [P2] [P2] Make automations beyond the first page reachable — ui/src/components/app-sidebar-automations.tsx:49-57
    With 201 automations, this requests offset 0 and limit 200, then retains only result.jobs. readCronInventory’s selectPage explicitly slices even a complete cached inventory to that limit. Because the sidebar has no pagination control, automation 201 and later never appear. Retain pagination metadata and expose loading more through the existing inventory reader.
    Confidence: 0.99
  • [P2] [P2] Surface sidebar catalog failures with recovery — ui/src/components/app-sidebar-automations.tsx:56-57
    A rejected cron.list request is converted to null and then an empty jobs array, so users see an apparently empty automation list without an error or Retry action. SidebarCustomize repeats the same pattern for plugins.list and silently removes Installed. Let these failures reach the existing SidebarViewBoundary, or preserve a visible error and retry through the owning reader.
    Confidence: 0.99
  • [P2] [P2] Migrate the remaining consumers of the removed Pages view — ui/src/components/app-sidebar-base.ts:49
    The narrowed navigationView union leaves direct assignments of "pages" in sidebar-context-controller.test.ts:30, app-sidebar-session-visibility.browser.test.ts:233, and app-sidebar-nav-menus.test.tsx:372. These are no longer assignable to the property type; at runtime they also fall through to Sessions instead of exercising a distinct panel, weakening the scroll and visibility regressions. Update these consumers to an actual replacement view in the same cutover.
    Confidence: 0.99
  • [P2] [P2] Keep route synchronization within the existing effect allowance — ui/src/components/app-sidebar.tsx:92-100
    This adds a second createEffect call in app-sidebar.tsx, but config/control-ui-createEffect-baseline.txt permits one and scripts/check-control-ui-controllers.mts enforces the per-file shrink-only count. The UI guide explicitly forbids increasing that allowance. Fold this route handling into the existing owner/effect lifecycle instead of introducing another effect or raising the baseline.
    Confidence: 0.99
  • [P2] [P2] Avoid closing Customize before exercising its sidebar — ui/src/e2e/plugins-hub-navigation.e2e.test.ts:593-597
    After loading /plugins, the new route effect already selects the open Customize sidebar. customize.select() then chooses Customize from the Pages menu; revealDestination sees that same section open and toggles it closed. The subsequent Templates wait and desktop Skills click target a hidden sidebar. Remove the redundant selection or have the helper check the current open state before selecting, including the earlier shared desktop flow.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Rail and Pages catalog changes intended behavior with a stated reason (fd01817: Separate navigation views and personal shortcuts while preserving profile-scoped preferences.)
  • Lazy sidebar rendering keeps the original intent (e66ae84: Load optional views on selection while retaining the shell and local loading/error recovery.)
  • Plugins and Skills header tabs changes intended behavior with a stated reason (b280237: Unify plugin and skill discovery through a shared workspace and navigation tabs.)
  • MCP catalog placement changes intended behavior with a stated reason (f7a72c7: Keep discovery tied to its mounted consumer after removing the catalog bridge; this PR intentionally leaves discovery on the existing Apps page.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Reviewed scope and discussion: Reviewed the pinned five-commit introduction. The author is MEMBER, the PR remains a draft, and its body explicitly defers validation; the two discussion comments contain review-status messages rather than behavior proof. (4e4d523fe44f)
  • Introduced changes: The introduced diff adds the section renderers and Pages popover while retaining the existing sidebar, navigation, and catalog owners. (ui/src/components/app-sidebar-owner.tsx:594, 4e4d523fe44f)
  • Main retains the previous navigation: Fetched main still exposes Pages, Sessions, and Online views and the earlier Plugins hub; it does not implement these dedicated section sidebars. (ui/src/components/app-sidebar-rail.tsx:55, e693b3323e90)
  • Saved shortcut contract: SIDEBAR_NAV_ROUTES also defines accepted persisted route pins. Removing Activity makes parseSidebarEntry reject route:activity, and both browser settings and server preference extraction use that normalization. (ui/src/app-navigation.ts:23, 4e4d523fe44f)
  • Automation inventory boundary: The sidebar requests only offset 0 with limit 200 and discards pagination metadata. The shared inventory reader explicitly slices its complete inventory to the requested page. (ui/src/components/app-sidebar-automations.tsx:49, 4e4d523fe44f)
  • Creation lifecycle: The new query handler opens creation only when routeSearch changes, while closePanel resets the editor without clearing the query. (ui/src/pages/cron/cron-page.tsx:134, 4e4d523fe44f)

PR surface

Source +607, Tests +93. Total +700 across 69 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 30 831 224 +607
Tests 39 438 345 +93
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 69 1269 569 +700

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: This is a normal-priority navigation feature with bounded Control UI defects.
  • merge-risk: 🚨 compatibility: Removing Activity from the persisted-route catalog causes existing route:activity shortcuts to disappear during preference normalization.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 15, 2026, 6:05 PM ET / 23:05 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-04-rail-layout branch from 7a26c75 to e0655e0 Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from 4e4d523 to e9cd019 Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from e9cd019 to 774c07a Compare November 16, 2026 16:08
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-04-rail-layout branch from 878c01c to 71c8764 Compare November 16, 2026 18:11
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch 2 times, most recently from e6e7635 to b53be76 Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-04-rail-layout branch from 492b611 to 932a889 Compare November 17, 2026 18:31
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch 2 times, most recently from b095c2c to bb87370 Compare November 17, 2026 19:22
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-04-rail-layout branch from 932a889 to a4e10ee Compare November 17, 2026 19:22
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 17, 2026
@vyctorbrzezowski
vyctorbrzezowski changed the base branch from brzezowski/side-rail-04-rail-layout to main November 17, 2026 20:30
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation plugin: workboard extensions: clawrouter Extension: clawrouter labels Nov 17, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from bb87370 to e861165 Compare November 17, 2026 21:17
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 17, 2026 21:21
@vyctorbrzezowski
vyctorbrzezowski merged commit 7701d7e into main Nov 17, 2026
102 of 103 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-rail-05-section-sidebars branch November 17, 2026 21:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
Give each navigation section its own sidebar and preserve the approved Dashboard gallery. Share the existing route/commit observer, retain snapshot isolation and correct navigation setup in the plugin reconnect and Inbox scope tests.

Focused types, lint, controller guard, 263 owner cases and eight relevant browser E2E cases passed. The maintainer approved CI bypass after known PR-caused failures were repaired. The unrelated owner-approval test timing issue is tracked separately in openclaw#200810.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
obviyus added a commit that referenced this pull request Nov 22, 2026
…ndow (#203349)

## Problem

`ui/src/e2e/route-asset-requests.e2e.test.ts` "bounds skills ready-window asset requests" fails intermittently on slow CI runners with `expected 30 to be less than or equal to 28`. It hit unrelated PRs (#203126, #203308) and scheduled `main` (6577f41; the 7 runs after it passed).

## Root cause

No commit added a Skills first-visit chunk. The 30 assets are the same 28 plus `app-sidebar-customize.js` and `presentation.js`: the Customize sidebar, which every Plugins-hub page shows, including Skills (`ui/src/app-navigation.ts:76`, since #199825). It loads lazily (`ui/src/components/app-sidebar-owner.tsx:72`) after the Skills page module arrives (about 560 ms in). On a fast CPU the page reports ready first (28 assets). On a slow runner, rendering the skill rows takes longer than the two sidebar files take to load, so they finish inside the ready window (30 assets).

Keeping 28 needs a chunking change, and each option costs elsewhere: `presentation.tsx` is shared by about 16 chunks (chat cards, command palette). Moving it into `deferred-ui-support` adds bytes to Chat startup. Moving it into catalog or hub chunks makes chat load catalog code. Loading the sidebar earlier makes 30 constant.

## Fix

Raise the Skills ready-window limit to 30 with the reason in a comment. This is the same race #194827 accounted for with its Settings sidebar on `skill-settings` (31). No shipped bytes change.

## Risk

On fast runners the count stays 28, so the limit has 2 slots of slack there: a real regression of 2 assets on the Skills ready path would pass on a fast runner.

## Evidence

- Before, 4x CPU throttle: 28 assets (no reproduction). Before, 10x CPU throttle: 30 assets, the same list as CI; the test fails as in CI.
- After, 10x CPU throttle: 30 ≤ 30, pass. All four route cases pass at normal speed.
- oxfmt and oxlint on the changed file.

## Approval

This raises a performance budget. Maintainer approval (Ayaan, 2026-11-22): "Approved, we can merge past red CI if we can prove we didn't cause it."

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 22, 2026
…ndow (openclaw#203349)

## Problem

`ui/src/e2e/route-asset-requests.e2e.test.ts` "bounds skills ready-window asset requests" fails intermittently on slow CI runners with `expected 30 to be less than or equal to 28`. It hit unrelated PRs (openclaw#203126, openclaw#203308) and scheduled `main` (b8e0d81; the 7 runs after it passed).

## Root cause

No commit added a Skills first-visit chunk. The 30 assets are the same 28 plus `app-sidebar-customize.js` and `presentation.js`: the Customize sidebar, which every Plugins-hub page shows, including Skills (`ui/src/app-navigation.ts:76`, since openclaw#199825). It loads lazily (`ui/src/components/app-sidebar-owner.tsx:72`) after the Skills page module arrives (about 560 ms in). On a fast CPU the page reports ready first (28 assets). On a slow runner, rendering the skill rows takes longer than the two sidebar files take to load, so they finish inside the ready window (30 assets).

Keeping 28 needs a chunking change, and each option costs elsewhere: `presentation.tsx` is shared by about 16 chunks (chat cards, command palette). Moving it into `deferred-ui-support` adds bytes to Chat startup. Moving it into catalog or hub chunks makes chat load catalog code. Loading the sidebar earlier makes 30 constant.

## Fix

Raise the Skills ready-window limit to 30 with the reason in a comment. This is the same race openclaw#194827 accounted for with its Settings sidebar on `skill-settings` (31). No shipped bytes change.

## Risk

On fast runners the count stays 28, so the limit has 2 slots of slack there: a real regression of 2 assets on the Skills ready path would pass on a fast runner.

## Evidence

- Before, 4x CPU throttle: 28 assets (no reproduction). Before, 10x CPU throttle: 30 assets, the same list as CI; the test fails as in CI.
- After, 10x CPU throttle: 30 ≤ 30, pass. All four route cases pass at normal speed.
- oxfmt and oxlint on the changed file.

## Approval

This raises a performance budget. Maintainer approval (Ayaan, 2026-11-22): "Approved, we can merge past red CI if we can prove we didn't cause it."

Co-authored-by: Ayaan Zaidi <[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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL 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.

1 participant