Skip to content

improve(ui): load Apps without the Chat bundle - #184020

Merged
steipete merged 6 commits into
mainfrom
solid2/w-perf-apps-catalog
Oct 26, 2026
Merged

steipete merged 6 commits into
mainfrom
solid2/w-perf-apps-catalog

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Opening Apps loaded the Chat bundle before the user opened an App.

User Impact

The retained Apps static comparison (d6685f285a1c → 879e229618ee) drops 512,989 B gzip of JavaScript (40.6%) and 40,906 B gzip of CSS (31.1%), with four fewer JS requests and one fewer CSS request, and no static Apps → Chat bundle path. The fresh exact-head budget comparison below keeps startup within build variance and adds no startup request.

Historical corrected-candidate timing improved cold readiness at 100 ms HTTP RTT by 18.77% median / 25.57% p95. Timing accepted under the noisy-host 20-pair affected-CPU rule. This is not a universal latency improvement: localhost first-open p95 rose 47.56% (679.1 → 1002.1 ms), total wall p95 rose 27.17%, and the capture lacks native input/ready timestamps needed to fully attribute those tails. The retained static comparison’s Memory payload grows 2,652 B gzip (0.276%), with no extra request or explicit renderer evaluation/import edge.

Why This Change Was Made

Shared catalog and launch helpers now use the existing shared support chunk, while the conversation stays lazy. The MCP view starts loading alongside conversation demand to avoid a serial first-open waterfall. Keep one native Solid lazy MCP view for Apps, Board and the panel. Panel retains launch admission, post-preload live-target checks and error presentation; Board retains foreign-view teardown ownership. Existing catalog preloading and immediate native Count/Close interactions are preserved. No new manager, state copy, dependency or budget exception is added.

Evidence

The historical static comparison is base d6685f285a1c → integrated head 879e229618ee, built on the same machine. Historical V2 coverage and corrected V3 runtime samples below predate this integration and are not exact-integrated-head runtime proof. A subsequent benchmark-only correction removes an unbound-method lint suppression and adds a socket-contract preservation test; the task-owned production delta is unchanged from that measured integrated head. Runtime and coverage samples were not repeated after the observer correction.

Current exact base/head budget proof

Built ed5a99e0af5fbac18036187413f39afcd810b264 and 7873d4943a4fa1235f29669ec904044921a75af7 once each on the same machine with Node 26.12.1, the same frozen dependencies and a fixed synthetic build identity. Both complete asset snapshots passed source/inventory/copy verification with no missing references. Both strict checks passed with no warnings, violations or budget edits; the launcher restored and verified clean exact-head source. Production pnpm deadcode:knip also passed once on exact 7873d4943a4.

Current exact surface Base gzip B Head gzip B Delta Requests
Startup JS 271,451 271,413 −38 5 → 5
Startup CSS 31,981 31,981 0 1 → 1
Chat boot JS 1,232,706 1,232,657 −49 20 → 20
Chat boot CSS 122,425 122,253 −172 3 → 3
New Session boot JS 749,508 749,511 +3 17 → 17
New Session boot CSS 86,948 87,150 +202 3 → 3
Total CSS 305,110 304,938 −172 111 → 111

The small JS differences are within the checker’s 64 B build-variance allowance. New Session CSS grows 202 B while total CSS falls 172 B; the existing strict budgets pass. No current Apps/Memory closure, V8 coverage, readiness timing, or visual result is inferred from this budget check. An optional manifest-only closure refresh stopped because the historical snapshot has no manifest after a setup-shape correction; the historical Apps/Memory definition could not be revalidated, so those rows remain explicitly historical. No graph scan, browser or rebuild followed.

Historical Apps/Memory static closure

Retained integrated surface (879e229618ee) Base gzip B Head gzip B Delta Requests
Startup JS 271,445 271,445 0 5 → 5
Startup CSS 31,981 31,981 0 1 → 1
Apps JS closure, including admitted mutation runtime 1,262,086 749,097 −512,989 32 → 28
Apps CSS closure 131,644 90,738 −40,906 9 → 8
Memory JS closure 961,179 963,831 +2,652 60 → 60
Chat JS 1,232,823 1,232,937 +114 20 → 20
New Session JS 749,585 749,541 −44 17 → 17
New Session CSS 86,992 87,250 +258 3 → 3
Total CSS 306,618 306,502 −116 112 → 112
Proof Result
Integrated pnpm tsgo:ui Passed
Integrated pnpm deadcode:knip Passed
Integrated pnpm ui:check-performance:base d6685f285a1c Passed; base/head builds and strict comparison; no baseline edits
Integrated independent review No actionable P0–P2 findings
Integrated emitted source/maps All eight assignments verified; no Apps → Chat path; no new mutation-runtime Chat edge; static cycles unchanged (3 → 3)
Integrated Memory source witness No static MCP renderer path; six shared-chunk importers import neither MCP view nor catalog initializer/component exports; added bytes still download/parse
Observer correction Production suppression allowlist 14/14; actual mock socket/response and native passthrough preservation smoke 1/1; scoped type-aware lint passed for both changed files
Observer correction independent review Completed isolated P0–P2 review; no actionable findings; final source verification passed
Retained targeted correctness Apps 2/2, MCP panel 1/1, Board 23/23 passed; type-aware lint passed; retained STRICT_READ_UNTRACKED warnings 20/12/838
Historical corrected V3 behavior 120/120 contexts passed native Count/Close and clock assertions across 20 interleaved A/A/B pairs per profile
Historical V2 coverage Cold Apps unexecuted JS −53.11% local / −52.94% remote; not exact V3/integrated-head coverage

Production/config LOC against merged main ed5a99e0af5f: 1,284 → 1,301 (+17); benchmarks 1,452 → 2,276 (+824); tests 477 → 686 (+209); docs 413 → 430 (+17); total 3,626 → 4,693 (+1,067). Benchmark additions record native iframe/RPC/clock evidence. Solid refactor counts: lazy 3 → 2, createEffect 2 → 2, onSettled 3 → 3; render effects, untrack, direct listeners, DOM queries, flush, owner calls and manual imports stay 0 → 0.

Main integration

Merged main ed5a99e0af5fbac18036187413f39afcd810b264 to resolve a real benchmark conflict with the native Desktop/Portal probes. The combined benchmark keeps both alias sets, propagates the same server URL through the recursive Apps fixture, and retains separate native activation branches and the existing RFB/pixel/Portal/rail/RPC readiness checks. An explicit return type gives both target branches the same optional request contract; it changes no runtime behavior. The automatic chunking merge preserves both the Apps assignments and main's Desktop/inline-rail assignments.

The retained production measurements above remain pinned to their original base/head. They are not exact-main-integrated-head build, coverage or timing proof. A no-browser help smoke and pinned diff/format checks passed. The first external typecheck configuration failed before checking source because its inferred root directory was the proof directory. After correcting that configuration, the scoped check found the merged target's missing optional-field type, which the type-only annotation repairs; scoped tsrs then passed. A fresh isolated twelve-file P0–P2 review completed with no actionable findings and passed final source verification. CI run 40263242801 at this integrated head completed with the two inherited Settings failures described below and a new diagnostic-helper lint failure. Previous passing replays do not establish either original CI failure's cause.

CI follow-up and proof limits

Current exact-head CI (7873d49)

Run 40265865305, attempt 1, completed with no non-E2E failures and three failed test names in two UI E2E jobs. All three also fail the latest completed scheduled main run 40265385313 at a14fa613c678; no failed name is attributed by shard identity alone. retires notification presentation before a held native acknowledgement has the identical strict locator error: both a screen-reader status and visible span match Test notification queued. aligns every mobile settings page with the topbar content has the same missing Approvals-shell error. keeps settings rows, introductions, section headings, and Learn more links on one layout system times out on .page-title in this PR and on /settings/approvals route readiness on main; the assertion differs, but the missing Approvals surface is the same. These three failures are accepted as inherited. The diagnostic-helper lint correction passed. CI is failed, not green.

The exact current merge-base/head build and strict-budget comparison (ed5a99e0af5f → 7873d4943a4) and production Knip now pass as recorded above. The failed current CI run is qualified by the exact-name inherited comparison; it is not relabeled green.

CI run 40263242801 at a82df4005d90 failed aligns every mobile settings page with the topbar content and keeps settings rows, introductions, section headings, and Learn more links on one layout system. Both exact names also fail in the then-latest completed scheduled main run 40260665877 at 1a905c7faa1b: the former reports the Approvals shell missing, while this PR times out waiting for the same route to become ready; the latter has the same .page-title timeout at line 851. These two failures are inherited. The other failure was this PR's missing braces around the diagnostic helper's two listener loops. The correction adds only those braces; focused type-aware lint passed and a fresh isolated P0–P2 delta review found no actionable issues. The prior twelve-file review remains the review of unchanged semantic inputs. No build, UI test, or performance sample was repeated for this syntax-only correction.

Run 40254750785 at published head f337f8a461df failed two exact tests: shows an accepted running session under Involving me before event refresh timers or run completion and keeps the original personal retry after navigating away and back. The first timed out waiting for Chat route readiness under the test's frozen clock; the second timed out opening the initial publication menu, before its retry/navigation scenario. Neither test failed in the latest completed scheduled main run 40255683536 at 188709180b44; both owning UI E2E jobs passed there. These are not claimed as inherited failures.

The sidebar test now checks the accepted row and single create request while the existing 200 ms virtual-time bound remains frozen, then resumes time before its unchanged full Chat-route readiness assertion. This repairs an independently identified test-ordering problem. The original failure did not reproduce locally, so this is not a claim that the CI cause was reproduced or eliminated.

The publication helper retains its original single click and visible-menu assertion. It adds failure-only facts from at most 16 native pointer/click/toggle and overlay events, including cancellation, node replacement, inert ancestry and menu state, with listener and handle cleanup. The exact personal-retry test passed with that proposed helper; no failure trace was emitted. This is diagnostic coverage for a recurrence, not a product fix or proof of the original menu failure's cause.

CI follow-up proof Result
Original failing tests, retained base and head builds Both passed on both sides; inconclusive replays, no inherited-failure inference
Controlled sidebar lazy-entry delay Initial attempt timed out without proving the hold; corrected pre-navigation hold passed; neither reproduced CI's routeReady=false failure
Publication diagnostic helper Exact personal-retry case passed, 1 passed / 19 skipped; tested helper SHA-256 a2a49cbe5549d4343a2503398fd3b33ae4afe87728135c7782fdfa50ad6474a3
Changed E2E files, scoped type checking and format Passed; the initial publication typecheck configuration failed to resolve Node types before checking the helper, then passed with the owning type root
Final two-file isolated review Completed with no actionable P0–P2 findings; final source verification passed; CI reproduction remains unproven
Corrected sidebar test, retained head build Passed once: 1 passed / 1 skipped; accepted row and single-create assertions remain frozen before full route readiness; original runner exited 0 with no remaining process-group members

These local replays use current test/harness source with retained production assets, Node 26.12.1 and the Node Vitest runtime selected to match CI's runtime choice; CI uses Node 24.22.1. They are not an exact whole-source checkout comparison or new performance evidence. The publication replay's original result file recorded the restored original helper hash after the run; the retained manifest and separate reuse receipt identify the proposed helper actually tested and verify that the final helper has the same bytes. No production file, measured build, or performance result changed in this follow-up.

Reproduction commands

Run from the repository root. For the historical runtime matrix, BASE_BUILD and HEAD_BUILD mean the retained original and corrected-V3 build directories; they are distinct from the current integrated static comparison. OUTPUT_DIR is a fresh evidence directory. The recorded dataset used separate ten-pair cohorts; this command runs the equivalent twenty-pair matrix with fresh contexts and the base/base control.

NODE_DISABLE_COMPILE_CACHE=1 node --import ./scripts/tsx.mjs \
  scripts/bench-control-ui-route-leaks.ts \
  --bundle-dir "$BASE_BUILD" --compare-bundle-dir "$HEAD_BUILD" \
  --routes apps-open-immediate --mode timing \
  --profiles local,remote --pairs 20 --output "$OUTPUT_DIR"

The retained focused unit commands were:

pnpm --dir ui test src/pages/apps/apps-page.test.tsx --maxWorkers=1
pnpm --dir ui test src/components/mcp-app-panel.test.tsx --maxWorkers=1
pnpm --dir ui test src/components/board/board-widget-cell-mcp-app.test.tsx --maxWorkers=1

The observer correction checks were:

node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json scripts/route-leaks-apps-pilot.ts
node scripts/run-oxlint.mjs --tsconfig test/tsconfig/tsconfig.test.root.json test/scripts/route-leaks-apps-pilot.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.tooling.config.ts --maxWorkers=1 test/scripts/lint-suppressions.test.ts test/scripts/route-leaks-apps-pilot.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts --maxWorkers=1 test/scripts/route-leaks-apps-pilot.test.ts

The tooling-config invocation executed the suppression file; auto-classification assigns the observer smoke to unit-fast, so only that new file then ran under its owning config. The first CI run (40251832346) failed the production suppression allowlist because the original observer introduced a new unbound-method suppression. The correction removes it without extending the allowlist; the test passes locally.

The retained historical integrated checks were:

pnpm tsgo:ui
pnpm deadcode:knip
pnpm ui:check-performance:base d6685f285a1cd382df3b7d921b4f47a4245efe3d
Historical runtime timing, rejected candidate and limitations

Corrected V3: head/base median / p95 change; positive means slower. These runtime samples use the retained historical build, not the current integrated build.

Profile Cold ready First App ready First App task CPU First App script CPU
Localhost −3.70% / −5.54% +1.10% / +47.56% +1.16% / +1.50% +1.34% / +0.95%
100 ms HTTP RTT −18.77% / −25.57% −1.81% / −4.64% +3.18% / +2.16% +4.37% / +4.58%

Local A/A first-open wall p95 rose 5.89%; host load median/p95/max was 38.80/55.61/56. The pooled affected task/script CPU cells stay within the acceptance band. Remote first-open layout p95 rose 17.31% and local first-open style p95 rose 15.09%. No new V8 coverage, idle or Memory run was made for V3. Native input and native-ready timestamps were not captured, so the adverse wall tails cannot be proved wholly external.

The rejected V2 candidate had remote immediate first-open wall 1,968.30 → 2,401.45 ms (+22.01%), p95 2,068.20 → 2,458.90 ms (+18.89%), while A/A was −0.16% / +0.77%. V3 overlaps the previously serial MCP-view load. The rejected result remains disclosed separately from the cold-load win.

All corrected V3 cohorts and measured subphases:

Cohort / phase Wall Task Script Layout Style
remote-original10 / cold -18.59% / -26.17% -4.94% / -3.32% -2.15% / -4.10% -3.31% / +4.42% -17.02% / -15.26%
remote-original10 / firstOpen -0.54% / -1.15% +3.64% / +2.96% +3.81% / +3.61% +1.80% / +20.17% +4.01% / +1.11%
remote-followup10 / cold -19.21% / -25.40% -4.47% / -6.61% -1.80% / -7.57% -3.01% / -8.23% -15.60% / -14.95%
remote-followup10 / firstOpen -1.76% / -4.34% +3.36% / +2.16% +5.71% / +4.58% -6.01% / +1.46% +2.92% / +0.89%
remote-pooled20 / cold -18.77% / -25.57% -4.74% / -4.90% -2.43% / -4.15% -3.08% / -6.11% -16.79% / -16.51%
remote-pooled20 / firstOpen -1.81% / -4.64% +3.18% / +2.16% +4.37% / +4.58% -2.45% / +17.31% +2.92% / +2.60%
local-followup10 / cold -2.02% / -0.66% -0.88% / -3.99% +0.15% / +1.15% -4.27% / +0.79% -12.28% / -14.92%
local-followup10 / firstOpen +2.03% / +10.46% +5.16% / +1.76% +6.77% / +2.27% +0.08% / +2.81% +4.08% / +15.09%
local-confirmation10 / cold +0.19% / -87.25% -1.47% / -8.56% +4.66% / -1.30% +1.13% / +3.09% -12.11% / -16.55%
local-confirmation10 / firstOpen -1.42% / -29.24% +1.73% / -7.57% +2.13% / -8.73% -2.78% / +6.02% +7.87% / +20.26%
local-pooled20 / cold -3.70% / -5.54% -2.21% / -3.99% +2.11% / -1.23% -2.63% / -1.83% -12.40% / -14.92%
local-pooled20 / firstOpen +1.10% / +47.56% +1.16% / +1.50% +1.34% / +0.95% -3.42% / +4.17% +4.52% / +15.09%

Paired CPU differences retain cohort+pair identity; they are not differences of reduced medians.

Cohort Task ms / % Script ms / % A/A task median/p95 A/A script median/p95 Host load median/p95
remote-original10 +19.317 / +4.357% +8.646 / +4.734% -1.44% / +1.29% -0.16% / +2.61% 29.79 / 36.54
remote-followup10 +10.599 / +2.330% +9.430 / +4.932% -1.16% / +0.03% -1.17% / -1.89% 36.87 / 43.39
remote-pooled20 +13.774 / +3.059% +9.430 / +4.932% -1.34% / +0.03% -1.74% / -1.89% 34.26 / 41.84
local-followup10 +14.159 / +3.353% +9.456 / +4.912% +3.01% / -1.45% +5.41% / -1.82% 38.39 / 41.51
local-confirmation10 -1.214 / -0.299% +4.250 / +2.302% -0.20% / -12.60% -1.25% / -9.32% 45.09 / 56.01
local-pooled20 +12.162 / +2.881% +5.827 / +3.032% +0.03% / -2.85% -0.60% / -1.93% 38.80 / 55.61

Historical V2 cells, retained for comparison; warmup is an automation/idle interval, not user-ready latency:

Profile / route / phase Wall Task Script Layout Style
local / apps-open-immediate / cold -2.65% / -14.63% -3.92% / -1.04% -6.03% / -3.78% -1.94% / -0.19% -16.02% / -9.18%
local / apps-open-immediate / firstOpen -6.24% / +0.91% +3.30% / +2.52% +1.67% / -1.04% +0.40% / -15.70% +7.84% / +7.11%
local / apps-open-immediate / warmup -29.03% / -62.86% +0.00% / -1.22% — — —
local / apps-open-idle / cold -0.34% / +1.44% -1.31% / -1.64% -1.52% / +1.18% +0.56% / +12.15% -11.05% / -13.23%
local / apps-open-idle / firstOpen +0.01% / -6.28% +2.43% / +1.82% +0.10% / +2.27% +3.09% / -7.38% +12.01% / +6.38%
local / apps-open-idle / warmup +0.09% / -0.87% +18.33% / +13.93% -0.38% / -4.09% — -17.91% / +32.63%
local / memory / cold +0.02% / -13.37% -0.49% / -3.93% -0.33% / +0.08% -2.01% / -1.15% -5.74% / -3.73%
remote / apps-open-immediate / cold -19.14% / -18.85% -3.37% / -4.97% -0.59% / -6.87% +1.37% / +7.76% -14.29% / -15.80%
remote / apps-open-immediate / firstOpen +22.01% / +18.89% +3.20% / +3.41% +1.16% / +2.84% -1.11% / -1.15% +4.17% / +0.35%
remote / apps-open-immediate / warmup -62.77% / -44.95% -86.91% / -97.67% -100.00% / -100.00% — —
remote / apps-open-idle / cold -19.16% / -18.84% -6.11% / -3.41% -5.01% / -5.48% +1.35% / +23.96% -17.45% / -15.76%
remote / apps-open-idle / firstOpen +1.91% / -0.10% +0.69% / -0.87% +1.19% / +0.63% +0.48% / -3.96% +8.35% / +9.48%
remote / apps-open-idle / warmup -0.01% / -0.03% +35.23% / +34.58% +16.06% / +6.29% — -22.30% / -19.23%
remote / memory / cold -0.21% / -0.26% +1.21% / +0.35% +0.18% / +2.84% -1.14% / -34.98% +3.91% / -2.50%

Historical Memory controls passed 120/120 contexts and admitted zero MCP App requests. They do not establish exact V3/integrated-head Memory timing. The current emitted-source witness establishes absence of an explicit renderer edge only; payload/parse cost remains.

Inspected synthetic before/after screenshots (historical V2 layout evidence)

These retained frames demonstrate the catalog and native Count0 layout. They are historical V2 captures, not exact V3/integrated-head runtime or visual proof.

Catalog before:

Apps catalog before

Catalog after:

Apps catalog after

Native Count0 before:

Native Count0 before

Native Count0 after:

Native Count0 after

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

clawsweeper Bot commented Oct 26, 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 26, 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-26T03:18:50.074689Z a82df40 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: L labels Oct 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR separates Apps catalog dependencies from Chat and preloads the shared MCP renderer when an app opens.

Example: Open /apps before opening a plugin app.

  • Before: The reported integrated comparison downloads 1,262,086 gzip bytes of JavaScript across 32 requests.
  • After: The reported comparison downloads 749,097 gzip bytes across 28 requests, with conversation code remaining lazy.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused production design is useful and preserves established contracts, but runtime evidence is historical and a directly attributable CI failure remains.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor-proof gate; inspected historical browser screenshots show matching catalog and Count0 layouts, while the body clearly separates historical runtime results from integrated-head static measurements.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Opening the Apps catalog downloads Chat code before the user opens an app.
Reason: The maintainer-directed change reports substantial integrated payload savings, preserves existing interactions, and explicitly accepts its disclosed performance tradeoffs.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this is a useful maintainer-directed bundle reduction, with one narrow, diff-caused CI failure to fix.

Priority: P2
Reviewed head: 879e229618eeab8b4319838d5074c45516ad1c28

Before merge

  • Register the intentional benchmark suppression in the allowlist (P2) - The new directive adds scripts/route-leaks-apps-pilot.ts|typescript/unbound-method|1 to the production suppression inventory, but test/scripts/lint-suppressions.test.ts does not allow it. The exact-head checks-node-compact-small-2 job fails on precisely this added entry, which also blocks the aggregate CI gate. Add the narrowly justified entry alongside the existing native-method probe exceptions; the wrapper correctly supplies the original socket receiver through send.call(this, data).

Findings

  • [P2] Register the intentional benchmark suppression in the allowlist — scripts/route-leaks-apps-pilot.ts:131-132

Tests

  • Missing end-to-end proof: Supplied browser captures and runtime measurements predate the integrated head, and base-red/head-green execution of the changed regression test is not shown.
Agent review details

How this fits together

Control UI chunking assigns browser modules to bundles; Apps consumes catalog data, then loads the conversation and MCP renderer on demand while existing owners retain launch admission and teardown.

flowchart LR
  A[Apps route] --> B[Shared catalog support]
  A --> C[Lazy conversation]
  C --> D[MCP panel]
  A --> E[Shared lazy MCP renderer]
  D --> E
  F[Board content] --> E
Loading

Technical review

Best possible solution:

Retain the focused shared-chunk and lazy-renderer change, and register its justified benchmark suppression in the existing explicit allowlist.

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

Current-main source retains catalog modules in the captured Chat grouping, and the exact-head CI annotation independently demonstrates the new suppression-list failure; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The production change uses the existing chunking owner and replaces duplicate lazy declarations with one shared boundary while preserving launch and teardown contracts.

Full review comments:

  • [P2] Register the intentional benchmark suppression in the allowlist — scripts/route-leaks-apps-pilot.ts:131-132
    The new directive adds scripts/route-leaks-apps-pilot.ts|typescript/unbound-method|1 to the production suppression inventory, but test/scripts/lint-suppressions.test.ts does not allow it. The exact-head checks-node-compact-small-2 job fails on precisely this added entry, which also blocks the aggregate CI gate. Add the narrowly justified entry alongside the existing native-method probe exceptions; the wrapper correctly supplies the original socket receiver through send.call(this, data).
    Confidence: 1

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 97c7f5bc0ac4.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/lint-suppressions.test.ts --maxWorkers=1
  • git diff --check

What I checked:

  • Pinned production change: The introduced diff assigns catalog helpers to the existing shared support chunk, consolidates two MCP lazy declarations, and starts renderer preload alongside conversation demand. (ui/config/control-ui-chunking.ts:137, 879e229618ee)
  • Current main still needs the separation: Fetched main retains the original catalog chunk assignments and separate renderer lazy declarations; the central change is not already implemented there. (ui/config/control-ui-chunking.ts:137, 97c7f5bc0ac4)
  • Diff-caused CI failure: The checks-node-compact-small-2 annotation identifies exactly one unexpected suppression: scripts/route-leaks-apps-pilot.ts|typescript/unbound-method|1; the aggregate CI gate also fails. (scripts/route-leaks-apps-pilot.ts:131, 879e229618ee)
  • Preserved launch authority: The panel still awaits renderer preload and rechecks the live launch target before its tool request; Board retains its acknowledged teardown and generation owner. (ui/src/components/solid/mcp-app-panel.tsx:145, 879e229618ee)
  • Historical browser evidence inspected: All four downloaded screenshots were inspected: catalog and Count0 layouts match visually. The body explicitly identifies them as historical V2 evidence and distinguishes historical V3 runtime results from integrated-head static measurements. (879e229618ee)
  • Owner-accepted performance tradeoffs: The maintainer-authored body accepts the noisy-host CPU rule while explicitly disclosing the historical localhost first-open p95 increase and integrated Memory payload growth; these are not presented as universal latency improvements. (879e229618ee)

Likely related people:

  • Peter Steinberger: Raw commit ce794cb adds ui/config/control-ui-chunking.ts:133 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ce794cb75e5c; files: ui/config/control-ui-chunking.ts)
  • Vincent Koc: Raw commit 8bf4f7d adds ui/build/chunking.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8bf4f7d4a88d; files: ui/build/chunking.ts)

PR surface

Source +17, Tests +12, Docs +17, Other +806. Total +852 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 25 8 +17
Tests 1 13 1 +12
Docs 1 17 0 +17
Config 0 0 0 0
Generated 0 0 0 0
Other 2 817 11 +806
Total 9 872 20 +852

Review metrics

Metric Value Why it matters
Production versus unit-test growth Production/config +17 lines; unit tests +12 lines The small production increase provides shared chunk assignments and one shared lazy renderer without adding domain state.

Labels

Label changes:

  • add P2: This reduces avoidable Apps download cost and has a focused CI repair, without evidence of an urgent user-facing outage.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This reduces avoidable Apps download cost and has a focused CI repair, without evidence of an urgent user-facing outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Capture integrated-head cold Apps and immediate first-open browser network and timing evidence.

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 25, 2026, 9:14 PM ET / October 26, 2026, 01:14 UTC.

…ilures

Assert the accepted sidebar row and single create within the frozen 200 ms window, then resume time before full Chat route readiness. Retain the publication menu single click and visibility assertion while recording bounded failure-only event facts for a recurrence. The original CI failures remain unreproduced and are not classified as inherited.
@steipete
steipete merged commit 33d5e22 into main Oct 26, 2026
117 of 122 checks passed
@steipete
steipete deleted the solid2/w-perf-apps-catalog branch October 26, 2026 04:27
@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 Oct 27, 2026
* perf(ui): keep app catalog dependencies outside chat

* fix(perf): bind Apps probe to its socket

* test(ui): preserve frozen sidebar assertions and trace publication failures

Assert the accepted sidebar row and single create within the frozen 200 ms window, then resume time before full Chat route readiness. Retain the publication menu single click and visibility assertion while recording bounded failure-only event facts for a recurrence. The original CI failures remain unreproduced and are not classified as inherited.

* test(ui): brace publication diagnostic listener loops
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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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