Skip to content

perf(ui): yield Advanced and plugin settings first visits - #189556

Merged
steipete merged 14 commits into
mainfrom
solid2/w-perf-long-tail-round3-1031
Oct 31, 2026
Merged

steipete merged 14 commits into
mainfrom
solid2/w-perf-long-tail-round3-1031

Conversation

@steipete

@steipete steipete commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Plugin Settings and Advanced can block the main thread while mounting their complete inventories and schema forms. This change renders the visible content first and appends the remaining rows in yielded tasks. Plugin Settings starts with 20 rows and appends 200 per task; Advanced starts with one section and appends seven per task. All rows and fields remain mounted after initial completion and available to native Find; keyed rows retain focused edits and drafts. Advanced opts in without changing other Settings form flows.

The plugin inventory also stops publishing a whole-page update for each artwork registration. Schema analysis, detail panels, the Advanced plugin panel, and file preview stay behind their actual use. File preview retains loading, error, Escape, retry, and focus behavior through the owned modal.

The reusable census now measures both first-visible readiness and complete content. Its timing interval stays open until all 1,000 plugin rows or all 303 Advanced rows / 437 controls have arrived. Actions and departures also wait for complete content. The desktop sidebar width correction landed separately in #189450 and is included on both sides here.

Proof

Each measured cell has 20 serial base/head/unchanged-base triplets on the same Mac. Acceptance: readiness and full-content median regression at most 5%, p95 no worse; target tasks at most 50 ms at 1× and 200 ms at 4×. A/A controls and renderer CPU distinguish host noise. These are synthetic catalogs and schemas over the production HTTP bundle and mock Gateway transport, not live Gateway/provider latency.

All times below are median / p95 milliseconds. A/A is the identical base bundle.

The source base is 20cdaea4bb5fc2035949a39643ae2df413ed9f3b; the measurement base includes the isolated sidebar fix from #189450. Final Plugin source is b20d19a332c748b9b9ebc286d8d5c66246e79a43. Advanced uses the identical seven-section implementation measured at bcc2fa987dfb46db7bb9ef9c83d3a717af0cd0bb; the later commit changes only the Plugin batch size. Runtime: Node 26.12.1; Chromium 156.0.8078.4 and WebKit 27.2. Viewports: 1440×1000 and 390×844, headless, localhost network profile. The Mac has 32 logical CPUs. Recorded 1-minute host load ranges were 9.96–22.44 / 7.72–11.38 / 6.35–65.42 for Advanced 1× / WebKit / 4× and 19.26–25.92 / 15.54–23.53 / 13.19–33.00 for the final Plugin runs.

Reproduce each Plugin cell from retained production bundles (B = sidebar base, H = final batch200 bundle), with both variables pointing to bundle directories on the external disk:

B=.artifacts/long-tail-round3/sidebar-base-bundle
H=.artifacts/long-tail-round3/batch200-bundle
NODE_DISABLE_COMPILE_CACHE=1 node --import tsx scripts/bench-control-ui-engines.ts \
  --bundle-dir "$B" --compare-bundle-dir "$H" --control-bundle-dir "$B" \
  --steps page-plugin-settings-visit --engines chromium --cpu-throttle 1 \
  --viewport both --pairs 20 --output .artifacts/long-tail-round3/batch200-1x

Use --engines webkit --cpu-throttle 1 for WebKit and --engines chromium --cpu-throttle 4 for 4×, with distinct output directories. For Advanced, use --steps page-advanced-visit and the batch7 head bundle. Bundle identity and browser versions are recorded in each run's manifest; summaries never pool different bundles.

Chromium 1×

Page / viewport Metric Base Head A/A
advanced desktop Ready 244.9 / 267.4 215.1 / 240.4 216.0 / 251.0
advanced desktop Complete 245.3 / 267.9 215.4 / 240.8 216.2 / 251.4
advanced desktop CPU 267.4 / 282.4 255.4 / 262.3 269.9 / 278.9
advanced mobile Ready 203.9 / 215.5 192.7 / 203.6 206.3 / 211.3
advanced mobile Complete 204.2 / 215.6 192.9 / 203.8 206.5 / 211.5
advanced mobile CPU 261.5 / 273.8 249.4 / 258.8 265.3 / 270.5
plugin-settings desktop Ready 275.7 / 289.7 234.4 / 247.7 272.1 / 291.3
plugin-settings desktop Complete 276.0 / 289.9 234.7 / 247.9 272.3 / 291.6
plugin-settings desktop CPU 279.8 / 291.8 243.9 / 252.5 278.7 / 290.6
plugin-settings mobile Ready 226.8 / 234.7 183.5 / 198.0 225.8 / 238.7
plugin-settings mobile Complete 227.0 / 234.8 183.6 / 198.1 226.0 / 238.9
plugin-settings mobile CPU 274.9 / 280.3 234.4 / 243.6 272.2 / 288.1

All Advanced 1× head observations have no qualifying ≥50 ms task, CLS 0, and all-shift sum 0. This means no observed long task, not zero execution time. Advanced completion trails readiness by at most 0.5 ms. Advanced counts and RPCs stay exact; its whole document has two additional elements. The Advanced desktop A/A wall spread is substantial; head still beats its control in wall time and CPU. Mobile Advanced style/layout p95 increases by about 0.5–0.7 ms while total CPU improves. Plugin 1× also has no observed ≥50 ms task, CLS 0, and all-shift sum 0 across every head observation; all 1,000 rows / 12,024 page elements / three controls and RPC counts remain exact, and completion trails readiness by at most 0.3 ms. Script median/p95 increases 7.45%/8.78% desktop and 8.53%/10.15% mobile against base while overall main-thread task CPU falls 12.83%/13.47% and 14.74%/13.10%, respectively. The yielded batches add script scheduling work while reducing overall blocking work.

WebKit

Page / viewport Metric Base Head A/A
advanced desktop Ready 491.5 / 516.0 426.0 / 445.0 494.0 / 518.0
advanced desktop Complete 491.5 / 516.0 472.0 / 501.0 494.5 / 518.0
advanced mobile Ready 473.5 / 492.0 422.5 / 433.0 476.0 / 506.0
advanced mobile Complete 474.0 / 492.0 456.0 / 480.0 476.5 / 506.0
plugin-settings desktop Ready 790.0 / 822.0 503.0 / 537.0 779.5 / 837.0
plugin-settings desktop Complete 790.5 / 823.0 577.0 / 611.0 779.5 / 837.0
plugin-settings mobile Ready 723.0 / 753.0 372.5 / 395.0 711.5 / 745.0
plugin-settings mobile Complete 724.0 / 753.0 547.0 / 578.0 711.5 / 745.0

Advanced readiness and complete-content median/p95 improve against both references. Its content-completion gap remains visible (median 54 ms desktop, 41 ms mobile), and complete content still finishes faster than both references. WebKit CPU, long-task, and CLS measurements are unavailable in this untraced run. Advanced measurements use the unchanged seven-section implementation; the final Plugin measurements use the 200-row batch.

Plugin WebKit full-content median/p95 improves 27.01%/25.76% desktop and 24.45%/23.24% mobile against base, and also improves against A/A. Progressive content still arrives after first visibility: the maximum gap is 183 ms desktop and 185 ms mobile, included in the reported full-content timings. All 120 observations passed with exact page counts/RPCs and no error events.

Chromium 4×

Page / viewport Metric Base Head A/A
advanced desktop Ready 1047.3 / 1104.4 819.4 / 871.2 998.9 / 1061.6
advanced desktop Complete 1048.3 / 1105.1 1006.0 / 1084.4 1000.2 / 1062.5
advanced desktop CPU 1426.4 / 1478.0 1336.3 / 1437.8 1385.0 / 1438.1
advanced desktop Longest qualifying task 505.5 / 538.0 213.5 / 232.0 492.0 / 532.0
advanced mobile Ready 1033.1 / 1203.9 848.5 / 911.3 1029.0 / 1136.5
advanced mobile Complete 1034.1 / 1205.0 1030.9 / 1079.3 1030.0 / 1137.7
advanced mobile CPU 1423.2 / 1585.1 1372.8 / 1424.6 1407.6 / 1552.2
advanced mobile Longest qualifying task 513.5 / 628.0 223.5 / 248.0 527.0 / 559.0
plugin-settings desktop Ready 1114.4 / 1278.9 937.8 / 1034.9 1122.5 / 1225.4
plugin-settings desktop Complete 1115.4 / 1279.8 961.8 / 1062.2 1123.3 / 1226.8
plugin-settings desktop CPU 1443.1 / 1602.5 1264.2 / 1437.8 1421.8 / 1583.8
plugin-settings desktop Longest qualifying task 588.5 / 686.0 182.0 / 229.0 602.5 / 663.0
plugin-settings mobile Ready 981.2 / 1134.1 736.8 / 799.7 978.5 / 1093.9
plugin-settings mobile Complete 982.1 / 1134.6 847.9 / 905.2 979.9 / 1094.3
plugin-settings mobile CPU 1264.8 / 1458.0 1121.1 / 1252.1 1268.3 / 1380.6
plugin-settings mobile Longest qualifying task 545.5 / 610.0 168.5 / 227.0 537.5 / 602.0

Advanced's remaining 4× tasks exceed the 200 ms target: p95 / maximum is 232 / 237 ms desktop and 248 / 250 ms mobile. The base p95 is 538 ms desktop and 628 ms mobile, so the blocking task is substantially shorter, but the target remains open. Advanced full-content p95 improves against base; desktop is 2.06% slower than the A/A control (1,084.4 vs 1,062.5 ms). The same unchanged base's full-content median moved −4.59% between B and A/A on this loaded host. This is a CPU/task win under the noisy-host rule, not a clean desktop wall-tail win: renderer main-thread task CPU median/p95 improves 6.31%/2.72% against base and 3.52%/0.02% against A/A. Mobile CPU improves 3.54%/10.12% against base and 2.47%/8.22% against A/A. Plugin 4× full-content and first-visible median/p95 improve against both references; all counts and RPCs remain exact, with CLS and all-shift sum 0. Renderer task CPU median/p95 falls 12.40%/10.28% desktop and 11.36%/14.12% mobile against base. Script median/p95 rises 7.37%/8.21% desktop and 10.25%/3.08% mobile. The 200 ms task target remains open: head p95/maximum is 229/366 ms desktop and 227/235 ms mobile, with 6/20 and 3/20 observations above 200 ms. Full content follows first visibility by median 22.8 ms desktop and 92.25 ms mobile, included in the full-content measurements. Two separate diagnostic 4× observations identify the five 200-row append checkpoints at maxima of 43.9 ms desktop / 40.0 ms mobile (193.3 / 170.5 ms combined), with initial teardown/render tasks of 198.6 / 191.1 ms. The traced desktop task above 200 ms was a later shared Settings-sidebar agent/avatar/menu mount: 223.4 ms starting 15.0 ms after full-content readiness; its mobile counterpart was 185.3 ms starting 11.5 ms after readiness. That work remains in the measured interval. Diagnostic trace timings are separate from qualification and do not identify the exact stack of the untraced 366 ms outlier or establish a floor.

The aggregate script distributions above stay below 20% growth, but isolated paired tails are larger: desktop paired-script p95 is +23.08% against base (2/20 pairs over 20%); mobile is +20.14% against A/A (3/20 pairs over 20%, maximum +20.90%). These are disclosed separately from the aggregate distribution and from the improved overall task CPU; the result does not claim every pair is below 20%.

The ≤1.3× WebKit/Chromium target also remains open for these large fixtures. The tables report both engines directly; faster WebKit completion does not imply that the cross-engine target is met.

Source-mapped Advanced traces identify combined shell and first-section work, the first form append, and a separate late Settings-sidebar agent/menu mount. The latter begins after full-content readiness but remains inside the measured route interval. These are identified remaining costs, not an irreducible floor. The traced run was on a heavily loaded host; its inflated durations are used only for attribution, not qualification timings.

Original Advanced p95 investigation

Ten additional triplets used the exact frozen bundles from #189355:

Samples Base ready Head ready A/A ready
Original 20 256.6 / 298.9 250.0 / 326.9 254.7 / 299.8
Additional 10 290.1 / 298.3 237.2 / 286.9 255.0 / 303.9
Pooled 30 272.8 / 298.9 245.5 / 326.9 255.0 / 303.9

The extension improved, but the pooled p95 retained the original outliers; this is not proof that the old regression was noise. The tables above measure the changed implementation independently, including all deferred work. A five-section intermediate candidate also retained a small WebKit mobile completion regression; seven-section batches remove two intervening render/layout phases while keeping the first section unchanged.

CI repair on the landing head

Landing head f2fae44b774a7af1d90aa2a6a0a441ee009d5f92 preserves the measured rendering implementation. CI run 41220745307 exposed four test failures, two test type errors, a partial-mock export guard, a type/runtime import cycle, and two lint errors. These are repaired: lazy-content assertions wait for Advanced, the preview test loads its own fallback namespace, the delayed preview mock preserves real exports, the shared retry display moves unchanged to a leaf module, and cancellation uses an equivalent lint-valid loop. All 25 cases across the five affected test files now pass, along with the UI-pages test typecheck, mock-export guard, Madge cycle check, and targeted lint/format. An independent P0–P2 review of the repair found no actionable findings.

The replacement run 41222681960 passed those unit/type/lint/architecture checks and exposed one E2E assertion that inspected the viewer before its lazy module had mounted. The test now waits for the viewer and preserves the exact two-skeleton, failure, retry, and navigation assertions. That named scenario passes locally in the canonical headless Node/Playwright configuration; its test typecheck and independent P0–P2 review also pass. This final commit changes only the test. The same run's two Board theme failures match both exact names and color-compositing diagnostics on the latest completed scheduled main run 41219638881; they remain attributed separately from our repaired test.

The initial CI run's performance job failed while building its unchanged base 468624a1ff134316df1749ecf4586e7cf1c18de6: total CSS gzip was 309,396 B against a 309,366 B cap. That job never reached the PR-head comparison. This is direct base-build evidence, not a passing head result. The final local production build and strict base/head comparison pass with zero violations: startup JS 89,368 B gzip; startup CSS 33,548 B and one request; total CSS 309,514 B gzip / 1,599,764 B raw, unchanged from the measured batch200 candidate. Census timings above remain the original frozen-bundle measurements, rather than being relabeled as runs of the CI-repair commit.

The final exact-head run 41223771343 passes the repaired Plugin Skills E2E scenario and all unit, type, lint, architecture, and other selected checks. Two jobs remain failed: the same two Board dark/light theme cases, with identical diagnostics to scheduled main 41219638881, and the performance job's unchanged-base build (71a4644c050b2d270ad1674658be87f2ed7e526a, CSS 309,392 B against 309,366 B). The latter again stops before evaluating the PR head. Landing uses the native inherited-failure route with these exact test names, logs, tested merge, unchanged source inputs, and local strict asset evidence; failed CI is not reported as green.

Validation and scope

  • 64 focused browser/unit tests passed across ConfigForm, progressive cancellation, plugin artwork, settings editor, and skill preview; the affected 25 ConfigForm cases also pass with the final batch size. The tests cover retained edits/focus, disposal, and unavailable-file handling during lazy loading.
  • UI/scripts typechecks, targeted lint/format, production Knip, and isolated P0–P2 reviews passed.
  • Strict asset comparison passes with no violations: startup JS 89,379 → 89,368 B gzip; startup CSS 33,548 → 33,548 B, one request. Total CSS +51 B gzip / +1 B raw stays within the 64 B build variance. No budget changes.
  • Production LOC: 4,704 → 4,964 (+260 across 19 files); tests 2,638 → 2,868 (+230 across eight files); benchmark 2,836 → 2,882 (+46). Growth provides the shared cancellable append helper, actual lazy boundaries, and their error/focus behavior; moved renderers retain one implementation. The small route-ID reader remains in the existing route-data module to keep its page owner inside the enforced 700-line cap.
  • Solid checklist: effects 2 → 2, untrack 1 → 1, onSettled 6 → 7, signals 3 → 5, memos 54 → 55, lazy components 11 → 15. Controllers, render effects, manual listeners/queries, flush, owner APIs, and component cleanup remain zero.

Reports, traces, and raw observations stay outside the commit.

Inspected synthetic screenshots

Completed desktop geometry remains unchanged. Crops omit the build footer; fixtures contain synthetic data only.

Page Before After
Advanced Advanced before Advanced after
Plugin Settings Plugin Settings before Plugin Settings after

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T17:05:54.045805Z 7e84e2c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: XL labels Oct 31, 2026
@steipete
steipete enabled auto-merge (squash) October 31, 2026 16:45
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR progressively mounts Advanced settings and plugin inventories while deferring unused detail and preview code.

Example: Open Plugin Settings with 1,000 installed plugins.

  • Before: All 1,000 rows mount synchronously before the page becomes usable.
  • After: The first 20 rows mount immediately, followed by batches of 200, with every row retained after completion.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful, well-measured rendering work with concrete introduced architecture and consumer-test failures still blocking validation.
Proof confidence 🐚 platinum hermit (4/6) The maintainer-authored PR is outside the ordinary contributor proof gate; its production HTTP bundle measurements exercise first visibility and complete inventories in Chromium and WebKit, and inspected current screenshots preserve completed geometry.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Large Advanced and Plugin Settings pages block interaction while constructing content users cannot initially see.
Reason: The maintainer-authored direction has measurable full-content and responsiveness gains while preserving existing configuration, native Find after completion, and editor ownership.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep this PR open: the measured rendering gains justify it, but the introduced import cycle and test failures need repair before merge.

Priority: P2
Reviewed head: b20d19a332c748b9b9ebc286d8d5c66246e79a43

Before merge

  • Break the new settings inventory dependency cycle (P2) - This type import points back to settings-view.tsx, which now imports PluginRetryError from settings-inventory.tsx. The resulting two-file cycle is included by scripts/check-madge-import-cycles.ts because its static graph includes type imports, and the head architecture check fails that guard. Move the shared inventory contract into an existing leaf such as settings-model.ts so the renderer extraction remains acyclic.
  • Update routing tests to await the lazy Advanced panel (P2) - AdvancedSettings now arrives through a dynamic import, but mountAdvanced().settle() in plugins-page.routing.test.ts only awaits config work and a few microtask flushes. Consequently its three existing connection/retry tests inspect the page before this panel exists; head CI fails at lines 668, 699, and 727 with undefined textContent. Await the actual panel, alert, or controls with waitForSolid before asserting, preserving the connection and held-retry checks.
  • Move the bundle-copy test to the lazy preview boundary (P2) - Removing eager file-preview registration changes when its English fallback catalog becomes available, but plugin-bundle-loading.test.ts still expects those keys immediately after importing skill-preview.tsx. Head CI now receives filePreview.bundle.too-large instead of readable copy at line 27. Update that consumer test to exercise loading the preview module before checking fallback messages, retaining its assertions that the active German translation and shared label survive.
  • Explain the delayed preview mock's intentional isolation (P3) - This new factory returns only a replacement FilePreviewModal, with the original module loaded inside the nested lazy callback. The mock-export scanner requires a real-module pass-through at the factory return or an adjacent mock-isolation explanation, so this unallocated factory is rejected and the head mock-exports check fails. Document the narrowly required isolation immediately above this mock, or use a compliant pass-through without defeating the held-module scenario.

Findings

  • [P2] Break the new settings inventory dependency cycle — ui/src/pages/plugins/settings-inventory.tsx:19
  • [P2] Update routing tests to await the lazy Advanced panel — ui/src/pages/plugins/settings-inventory.tsx:185-186
  • [P2] Move the bundle-copy test to the lazy preview boundary — ui/src/pages/plugins/skill-preview.tsx:18-22

Tests

  • Missing end-to-end proof: The supplied shipped-browser evidence covers inventory and Advanced rendering, while lazy detail/preview failure and focus behavior have test-only coverage and no demonstrated base-red run.
Agent review details

How this fits together

The Control UI receives plugin inventories and configuration schemas from existing Gateway owners, then renders searchable settings, editors, and previews.

flowchart TD
  A[Gateway data owners] --> B[Settings route]
  B --> C[Advanced configuration form]
  B --> D[Plugin inventory]
  C --> E[Cancellable progressive rendering]
  D --> E
  D --> F[Lazy details and previews]
Loading

Technical review

Best possible solution:

Retain the measured progressive rendering, move shared settings contracts into an existing leaf owner, and update affected tests for the intentional lazy boundaries.

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

Current-main source mounts complete inventories synchronously, and the supplied paired browser measurements demonstrate the blocking work; this review executed no target code.

Is this the best way to solve the issue?

The shared cancellable append primitive preserves keyed edits and complete content without introducing another config owner, but the module split and affected consumer tests need the listed repairs.

Full review comments:

  • [P2] Break the new settings inventory dependency cycle — ui/src/pages/plugins/settings-inventory.tsx:19
    This type import points back to settings-view.tsx, which now imports PluginRetryError from settings-inventory.tsx. The resulting two-file cycle is included by scripts/check-madge-import-cycles.ts because its static graph includes type imports, and the head architecture check fails that guard. Move the shared inventory contract into an existing leaf such as settings-model.ts so the renderer extraction remains acyclic.
    Confidence: 0.99
  • [P2] Update routing tests to await the lazy Advanced panel — ui/src/pages/plugins/settings-inventory.tsx:185-186
    AdvancedSettings now arrives through a dynamic import, but mountAdvanced().settle() in plugins-page.routing.test.ts only awaits config work and a few microtask flushes. Consequently its three existing connection/retry tests inspect the page before this panel exists; head CI fails at lines 668, 699, and 727 with undefined textContent. Await the actual panel, alert, or controls with waitForSolid before asserting, preserving the connection and held-retry checks.
    Confidence: 0.99
  • [P2] Move the bundle-copy test to the lazy preview boundary — ui/src/pages/plugins/skill-preview.tsx:18-22
    Removing eager file-preview registration changes when its English fallback catalog becomes available, but plugin-bundle-loading.test.ts still expects those keys immediately after importing skill-preview.tsx. Head CI now receives filePreview.bundle.too-large instead of readable copy at line 27. Update that consumer test to exercise loading the preview module before checking fallback messages, retaining its assertions that the active German translation and shared label survive.
    Confidence: 0.99
  • [P3] Explain the delayed preview mock's intentional isolation — ui/src/pages/plugins/skill-preview.browser.test.tsx:15-23
    This new factory returns only a replacement FilePreviewModal, with the original module loaded inside the nested lazy callback. The mock-export scanner requires a real-module pass-through at the factory return or an adjacent mock-isolation explanation, so this unallocated factory is rejected and the head mock-exports check fails. Document the narrowly required isolation immediately above this mock, or use a compliant pass-through without defeating the held-module scenario.
    Confidence: 0.98

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 050238fdbdb0.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:madge-import-cycles
  • pnpm check:test-mock-exports
  • pnpm --dir ui test src/pages/plugins/plugins-page.routing.test.ts src/i18n/plugin-bundle-loading.test.ts src/pages/plugins/skill-preview.browser.test.tsx
  • pnpm --dir ui test src/components/config-form.browser.test.ts src/lib/reactive/progressive-list.test.tsx src/pages/plugins/plugins-page.icons.test.ts src/pages/plugins/settings-editor.browser.test.tsx
  • pnpm tsgo:ui

What I checked:

  • Verified introduction and current-main boundary: The pinned introduced diff adds the shared progressive renderer and replaces eager inventory rendering; fetched main still uses the synchronous inventory path. (ui/src/lib/reactive/progressive-list.ts:4, b20d19a332c7)
  • Browser performance and visual evidence: The complete PR body reports interleaved production-HTTP-bundle measurements through full content completion in Chromium and WebKit. The current desktop before/after attachments were inspected and preserve completed geometry. The maintainer-authored body explicitly discloses increased scheduling/script work, remaining 4× task-budget misses, and noisy Advanced desktop wall timing. (scripts/lib/control-ui-engine-page-scenarios.ts:1514, b20d19a332c7)
  • Introduced dependency cycle: settings-inventory.tsx imports InventoryProps from settings-view.tsx, which now imports PluginRetryError from settings-inventory.tsx. The architecture checker includes static type imports, and the head architecture check reports madge-import-cycles failure. (ui/src/pages/plugins/settings-inventory.tsx:19, b20d19a332c7)
  • Deferred-loading consumer failures: Head CI reports three Advanced routing assertions reading absent content at plugins-page.routing.test.ts:668, :699, and :727; its helper only flushes microtasks. A separate shard reports plugin-bundle-loading.test.ts:27 receiving filePreview.bundle.too-large after importing skill-preview, whose eager catalog registration this PR removes. (ui/src/pages/plugins/plugins-page.routing.test.ts:668, b20d19a332c7)
  • New mock violates the export guard: The delayed preview mock returns a replacement export without a real-module spread or adjacent mock-isolation explanation; the repository scanner rejects that exact factory shape, and head CI reports mock-exports failure. (ui/src/pages/plugins/skill-preview.browser.test.tsx:15, b20d19a332c7)
  • Feature history and inspection limits: History traces the plugin workspace and bundle preview to Patrick Erichsen, followed by Peter Steinberger's Solid migrations, lifecycle consolidation, and recent performance work. Older blob retrieval eventually failed in the partial clone; installed Solid documentation is absent, and CI log downloads redirect to a blocked storage host. Other failing checks remain unattributed rather than assigned to this PR. (ui/src/pages/plugins/skill-preview.tsx:28, b20d19a332c7)

PR surface

Source +258, Tests +228, Other +48. Total +534 across 26 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 18 683 425 +258
Tests 5 230 2 +228
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 60 12 +48
Total 26 973 439 +534

Review metrics

Metric Value Why it matters
Production versus test growth Production +258 LOC; tests +228 LOC The growth supplies shared cancellable mounting and lazy-boundary feedback, with distinct focus, disposal, artwork-publication, and preview regressions.

Labels

Label changes:

  • add P2: This improves responsiveness on large settings inventories; the identified repairs are bounded and do not establish an urgent production outage.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This improves responsiveness on large settings inventories; the identified repairs are bounded and do not establish an urgent production outage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit 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 October 31, 2026, 12:57 PM ET / 16:57 UTC.

@steipete
steipete disabled auto-merge October 31, 2026 17:02
@steipete
steipete merged commit 61411ec into main Oct 31, 2026
121 of 129 checks passed
@steipete
steipete deleted the solid2/w-perf-long-tail-round3-1031 branch October 31, 2026 17:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
…89556)

* test(ui): measure progressive settings through full completion

* perf(ui): yield settings first-visit rendering

* perf(ui): defer plugin detail rendering until requested

* refactor(ui): keep plugin inventory helper private

* perf(ui): defer plugin preview locale registration

* perf(ui): pair progressive Advanced sections per yield

* perf(ui): reduce settings completion scheduling overhead

* style(ui): keep the settings yield executor void

* refactor(ui): make the lazy plugin renderer import explicit

* perf(ui): reduce intermediate Advanced form layouts

* perf(ui): reduce repeated plugin inventory continuations

* fix(ui): align lazy settings checks and remove import cycle

* test(ui): await lazy skill viewer before checking loading state
steipete added a commit that referenced this pull request Nov 2, 2026
Await the settings view introduced as a lazy boundary in #189556 before the autosave fixture starts fake timers. Preserve every mutation-order and config assertion; allocate its single added test line.

Proof: controlled real-import delay fails before and passes after; all 20 candidate tests pass under Bun. pnpm check:changed --staged --base HEAD passes, and Codex autoreview through P2 is scoped-clean.
steipete added a commit that referenced this pull request Nov 2, 2026
…191157)

* fix(ui): keep the Sessions heading visible in native phone layouts

Remove the redundant phone-specific clipping rule introduced in #190367. Native hosts do not use floating page headers, so the rule hid their only visible Sessions title. Shared floating-header styles continue to hide duplicate web headings.

The unchanged 390px native header regression fails on main and passes with the deletion. Twenty affected E2E tests and three Sessions browser tests pass; Codex review through P2 is clean.

* test(ui): await the lazy capability subview before asserting rows

The composer fixture awaited only the outer content module after #189053 introduced a nested lazy skill subview. Await that real module too, preserving every row, focus, and management-link assertion. Record the single added test line.

Proof: all 16 composer-menu tests pass under Bun; controlled actual-import delay fails before and passes after. pnpm check:changed passes; Codex autoreview through P2 is scoped-clean.

* test(ui): load plugin settings before starting autosave timers

Await the settings view introduced as a lazy boundary in #189556 before the autosave fixture starts fake timers. Preserve every mutation-order and config assertion; allocate its single added test line.

Proof: controlled real-import delay fails before and passes after; all 20 candidate tests pass under Bun. pnpm check:changed --staged --base HEAD passes, and Codex autoreview through P2 is scoped-clean.

* test(ui): establish resting pointer state for theme assertions

The inactive tab correctly uses the text color while hovered. Park the pointer on the existing content panel before checking each palette so the fixture consistently measures its asserted resting colors. Preserve every color assertion and timeout.

Proof: controlled tab hover reproduces the exact CI light-theme mismatch; pointer parking passes that diagnostic and the clean WebKit file. pnpm check:changed passes; Codex autoreview through P2 is scoped-clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
…penclaw#191157)

* fix(ui): keep the Sessions heading visible in native phone layouts

Remove the redundant phone-specific clipping rule introduced in openclaw#190367. Native hosts do not use floating page headers, so the rule hid their only visible Sessions title. Shared floating-header styles continue to hide duplicate web headings.

The unchanged 390px native header regression fails on main and passes with the deletion. Twenty affected E2E tests and three Sessions browser tests pass; Codex review through P2 is clean.

* test(ui): await the lazy capability subview before asserting rows

The composer fixture awaited only the outer content module after openclaw#189053 introduced a nested lazy skill subview. Await that real module too, preserving every row, focus, and management-link assertion. Record the single added test line.

Proof: all 16 composer-menu tests pass under Bun; controlled actual-import delay fails before and passes after. pnpm check:changed passes; Codex autoreview through P2 is scoped-clean.

* test(ui): load plugin settings before starting autosave timers

Await the settings view introduced as a lazy boundary in openclaw#189556 before the autosave fixture starts fake timers. Preserve every mutation-order and config assertion; allocate its single added test line.

Proof: controlled real-import delay fails before and passes after; all 20 candidate tests pass under Bun. pnpm check:changed --staged --base HEAD passes, and Codex autoreview through P2 is scoped-clean.

* test(ui): establish resting pointer state for theme assertions

The inactive tab correctly uses the text color while hovered. Park the pointer on the existing content panel before checking each palette so the fixture consistently measures its asserted resting colors. Preserve every color assertion and timeout.

Proof: controlled tab hover reproduces the exact CI light-theme mismatch; pointer parking passes that diagnostic and the clean WebKit file. pnpm check:changed passes; Codex autoreview through P2 is scoped-clean.
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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