Repository navigation
test(ui): allow Customize sidebar assets in the Skills first-visit window - #203349
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR raises the Skills first-visit asset limit from 28 to 30 to accommodate two lazy Customize sidebar assets. Example: On a slow runner, both Customize sidebar assets finish before Skills reports readiness.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: the narrowly scoped budget correction matches the sidebar loading path, and no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI browser test observes production-build asset completions between navigation and page readiness, then checks route-specific request budgets. flowchart LR
A[Settled New Session] --> B[Navigate to Skills]
B --> C[Skills page loading]
B --> D[Lazy Customize sidebar]
C --> E[Readiness observation]
D --> E
E --> F[Asset budget assertion]
Technical reviewBest possible solution: Keep the correction in the existing request-budget table while preserving the independent lazy-reader assertions. Do we have a high-confidence way to reproduce the issue? The reported 10x CPU-throttled reproduction fits the lazy sidebar imports and response-completion cutoff; no tests were executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete correction for the reported legitimate asset overlap, with the reduced sensitivity on fast runners explicitly recorded and reader loading still checked separately. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 83b59e37989d. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 21, 2026, 6:42 PM ET / 23:42 UTC. |
…ndow Co-authored-by: obviyus <[email protected]>
ddeb6b4 to
8cb1957
Compare
|
Landed as 1c6349d. The Skills first-visit e2e limit now allows the two lazily loaded Customize sidebar assets that can finish before page readiness on slow runners (the same race #194827 handled for Settings). Reproduced with a 10x CPU throttle (30 assets, the CI list) and verified passing after. Approved by the maintainer as a budget raise. |
…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]>
Problem
ui/src/e2e/route-asset-requests.e2e.test.ts"bounds skills ready-window asset requests" fails intermittently on slow CI runners withexpected 30 to be less than or equal to 28. It hit unrelated PRs (#203126, #203308) and scheduledmain(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.jsandpresentation.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.tsxis shared by about 16 chunks (chat cards, command palette). Moving it intodeferred-ui-supportadds 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
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."