Skip to content

test(ui): allow Customize sidebar assets in the Skills first-visit window - #203349

Merged
obviyus merged 1 commit into
mainfrom
fix/skills-first-visit-assets
Nov 22, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/skills-first-visit-assets

Conversation

@obviyus

@obviyus obviyus commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

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

@clawsweeper

clawsweeper Bot commented Nov 21, 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 21, 2026
@clawsweeper

clawsweeper Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The test rejects 30 completed assets against a limit of 28.
  • After: The test accepts 30 assets while retaining the separate prohibition on eager skill-reader loading.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is source-supported and has no actionable findings; validation is reported in prose, and hosted build/UI checks were skipped.
Proof confidence 🦐 gold shrimp (3/6) This test-only change needs no shipped-entry-point proof; the body reports targeted before/after runs, while the inspected screenshots concern related PRs and do not validate this adjustment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Contributors encounter intermittent Skills asset-budget failures on otherwise unrelated changes.
Reason: The maintainer-authored change aligns the existing guard with intentional sidebar loading and records the bounded loss of sensitivity.

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
Reviewed head: ddeb6b417ce4da569dd566c205c25828c236e107

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Skills ready-window request budget changes intended behavior with a stated reason (9b8aa39: Prevent the removed eager request wave from returning while independently ensuring that the skill reader loads only on demand.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Tests +1. Total +1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 1 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 1 +1

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:

  • add P2: The reported intermittent failure disrupts unrelated PR and scheduled-main validation without changing shipped runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The reported intermittent failure disrupts unrelated PR and scheduled-main validation without changing shipped runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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

@obviyus
obviyus marked this pull request as ready for review November 22, 2026 02:55
@obviyus
obviyus force-pushed the fix/skills-first-visit-assets branch from ddeb6b4 to 8cb1957 Compare November 22, 2026 02:56
@obviyus
obviyus merged commit 1c6349d into main Nov 22, 2026
72 checks passed
@obviyus
obviyus deleted the fix/skills-first-visit-assets branch November 22, 2026 03:07
@obviyus

obviyus commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

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.

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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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