Skip to content

perf(ui): load catalog entry details independently of plugin inventory - #195045

Merged
steipete merged 37 commits into
mainfrom
solid2/w-rpc-plugins-independent-1107
Nov 8, 2026
Merged

steipete merged 37 commits into
mainfrom
solid2/w-rpc-plugins-independent-1107

Conversation

@steipete

@steipete steipete commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem and change

A direct Plugins catalog link could remain blank behind a slow installed-inventory read. Start plugins.list at route entry alongside the lazy page import, then let catalog discovery and selected details render before inventory settles. This retains the baseline request/code overlap and removes the previous candidate's Chromium Settings RTT regression.

The coordinator accepted the earlier normalized-byte trade for roughly 2.9 seconds of earlier detail readiness. That decision is coordinator-accepted. After merging the newer main budget repair, this candidate reduces normalized bytes and fits the existing caps; all proposed cap increases have been removed. The current served and normalized measurements are shown together below.

The qualified timing runtime is cf16aa3f11427b93deccf7ad22dabd9341154760, measured against 3a25991e37c4bad581b34ebf19f0b9b3e036b5cf. Current main b32f01abae8d34d14b62f1a6dd9fe4f128cd21e2 was merged normally, including the boot-budget repair and the dedicated retention export repair. The first-visit request order and independent discovery presentation remain unchanged; the repair below affects same-plugin tab navigation. Serial byte builds, focused tests and typechecking were refreshed; the complete first-visit timing matrix is reused.

The first refreshed CI run (42477526948) caught two owned regressions: plugins-settings-admin.e2e.test.ts:522 expected one plugins.inspect but saw two, and plugins-request-ownership.e2e.test.ts:199 expected two but saw three. Adopting inventory on same-plugin search/hash changes unnecessarily repeated inspection. Route adoption now preserves the existing pending, failed or completed inspection receipt; explicit, post-save and generation refreshes still request fresh inspection. The autosave regression now uses real route-loader data for the tab change. Other CI failures were missing retention-helper exports from main; the merged 34d5b3fd291 repair restores them. These failures are not claimed as inherited: the older completed scheduled-main run did not reproduce them. The accepted auto request was cancelled before the replacement push; native replacement recovery will use the reviewed new head.
A second CI pass caught a test-only route-result narrowing error and an allocation receipt one line above the current test growth. The test now rejects a non-page route result before adoption and its allocation equals the measured 351-line growth. The 35 routing tests, the exact UI-page test type leaf, format and test-line ratchet pass. Six unrelated missing expectLiveObjects export errors reproduced by exact file/error on clean base f436456. The later main fix 72110f30e8d is now merged, and both affected typecheck groups pass. The test-only repair changes no runtime or bundle input.

Behavior and ownership

The selected catalog heading and README become readable before inventory settles. Loading remains visible and Install remains disabled until current inventory and permissions establish authority. Installed identity, inspection, authentication and mutations retain their existing authoritative owners. Configuration and Advanced alone activate their config/schema reads.

The early request is transferred once to the existing page request owner, retaining Gateway/generation provenance, abort handling, failure observation and revisit refresh. Accepted edge: a superseded transport can remain pending until route-signal/socket settlement, but cannot publish obsolete state and its rejection is handled. Public legacy URL canonicalization remains owned by the app router.

Timing proof

There are 1,260/1,260 passing observations, plus 36/36 passing behavior captures. Every engine/flow/condition has 20 rotated base/head/identical-base triplets. Application readiness measures the actual selected content in the document through two matching frames. It is not driver latency or CPU time.

Condition / engine Base median / p95 ms Head median / p95 ms Median change A/A median change
3-second inventory delay / Chromium 3040.60 / 3044 92.70 / 100.50 −96.95% +0.06%
3-second inventory delay / WebKit 3051 / 3059 149.50 / 192 −95.10% −0.02%
3-second inventory delay / Firefox 3045 / 3051 101 / 110 −96.68% −0.05%
100 ms RTT Settings / Chromium 1145.70 / 1178 1143.95 / 1160.60 −0.15% +0.16%
100 ms RTT Settings / WebKit 1645 / 1700 1546 / 1572 −6.02% +1.40%
100 ms RTT Settings / Firefox 1301.50 / 1331 1208 / 1230 −7.18% 0%

All 60 delayed head observations show the exact selected heading/README with visible Loading and disabled Install, then enable Install after inventory settlement. Delayed full-wall medians improve by 31–35 ms; the authority wait is retained. Chromium delayed script/task CPU improves 20.48%/14.44%.

Normal flow Chromium median / p95 ms WebKit median / p95 ms Firefox median / p95 ms
Browse 92.35 / 108.40 → 93.40 / 118.50 168 / 266 → 177 / 206 126 / 149 → 126.50 / 151
Detail 94.70 / 108.60 → 93.25 / 95.10 166.50 / 181 → 141 / 178 111 / 132 → 94.50 / 112
Settings 146.75 / 164.20 → 144.95 / 156.90 468 / 496 → 458 / 479 220.50 / 253 → 222.50 / 251

The normal WebKit Browse aggregate median is +5.36%; input is +4.90% and wall +4.25%. Paired visit ratios are +1.19% (paired A/A +0.31%); head minus the mean of its adjacent bases is −0.5 ms, with head slower in 9/20 triplets. Paired wall is −0.15% and native-action time is flat. This is inconclusive scatter, not an established ordinary-use median regression or a claimed Browse win. Chromium Browse p95 increases 9.32% with a +1.14% median, while the A/A tail moves −12.92%; wall median is +0.13% and native action is flat. These costs are disclosed and weighed against the approximately 2.9-second delayed benefit.

At 100 ms RTT, Browse medians change +0.42% / 0% / +0.12%, wall −0.03% to +0.05%. Detail medians improve 1.34% / 1.37% / 0.12%. Settings wall improves 1.36% / 5.44% / 6.25%; Chromium script/task improves 1.07%/3.43%. Independent assessment finds timing qualified under the coordinator's revised weighting. CPU counters are unavailable for WebKit/Firefox.

Delay, normal and complete RTT Browse/Detail were measured on macOS. A local WindowServer/WebKit failure interrupted RTT Settings; all 84 partial Settings rows were excluded. The replacement 180 Settings observations ran on one Linux Testbox, 20 triplets per engine. No cell pools hosts. Both Testbox leases are confirmed stopped. The successful remote proof is run 42475409043; an earlier setup-only run contributed no timing data.

Current-main byte proof and coordinator decision

The coordinator explicitly accepted the earlier normalized growth: Chat +499 B with served −371 B, New Session +598 B with served −279 B, and shared +608 B with served −337 B. This superseded the byte-only closure; it is not attributed to Peter.

Main's subsequent budget repair changes the compressed output. Fresh serial builds compare clean b32f01abae8 against merged runtime 5e750d7259db, both with Node 26.12.1 on the same machine:

Surface Normalized gzip base → head Delta Served gzip base → head Delta JS requests
Startup 90,874 → 90,867 B −7 B 91,514 → 91,497 B −17 B 3 → 3
Chat 1,295,872 → 1,295,655 B −217 B 1,302,955 → 1,303,561 B +606 B 20 → 20
New Session 802,591 → 802,473 B −118 B 807,528 → 807,870 B +342 B 15 → 15
Shared 563,656 → 563,548 B −108 B 567,415 → 567,803 B +388 B 1 → 1

Startup CSS stays 38,690 B normalized, one request. CSS bytes and request counts are unchanged across every measured surface; raw Chat/New/shared JS falls 358/352/363 B. Hash-layout compression now makes served JS rise slightly while normalized JS falls. The approximately 2.9-second delayed benefit is retained; the current result does not claim served-byte savings.

No caps change. Chat remains 1,296,751 B, New Session 803,250 B and shared 564,484 B, exactly current main's values. The strict check passes with zero violations after restoring those original caps. The restoration is tooling-only, so it does not require another asset build.

Refreshed and retained proof

Proof Result
Focused routing/generation tests on merged main 54/54 pass after repair, including actual-loader same-plugin tab adoption; two files, one worker
UI typecheck Pass
Fresh behavior smoke Firefox 6/6 on merged runtime 5e750d7259db: baseline, 3-second hold and forever/release × details/Settings. Native navigation, input, correct loading/Install authority, zero page errors, and 1,000/1,000 inventory rows after recovery.
Fresh Chromium smoke Baseline passes; native display-link/SEGV crash before delayed context; gap disclosed, no product assertion failure
Previous full behavior/timing matrix 1,260/1,260 observations and 36/36 captures; retained because runtime is unchanged
Production Knip and repair format/diff check Refreshed on the merged runtime; pass
Controller guard and earlier source reviews Prior proof retained; repair changes no reactive primitives
Independent review P0–P2 repair review pass; final combined repair/cap review is scoped-clean with full owner source context. The previous cap commit's mistakenly disabled hook was replayed before that push; subsequent commits use the normal hook.
Final-head PR CI 42481055420, exact 7457fc58411fdcd7c6456da12f87387c7d35b3bf: success, all 68 jobs successful/skipped. Full UI E2E and real-Gateway coverage passed.
Production LOC 1,654 → 1,732
Test LOC 4,859 → 5,210
Tooling LOC 4,303 → 4,527
Docs / test-allocation LOC 924 → 926 / 0 → 2

The initial focused-test command contained an extra separator and started the broader UI suite; it was interrupted and not counted as a passing suite. The corrected command selected only the two files above. No new WebKit timing or broad local E2E was run.

Synthetic screenshots

Inspected synthetic-only held/released states; appearance is unchanged in the final revision.

Before: held inventory leaves the selected catalog entry absent

After: selected entry readable with visible loading and disabled Install

After release: selected entry retained and Install enabled

Devices approvals and Debug remain untouched. Inventory/inspection still owns installed identity and mutation permission; config editors still need current values/revisions/schema; authentication, session identity, binding and policy authority retain their existing owners. The implementation does not present those states as ready before their prerequisites settle.

Work in progress: static review preserves catalog task authority and independent discovery, including connection provenance and read admission. Runtime, typecheck, size, and timing proof are pending the shared validation slot; not ready for publication.
Keep route-prepared inventory behind the existing plugin generation authority while it overlaps lazy page delivery. A newer publication keeps the page read pending until a fresh inventory arrives; equivalent metadata clones still reuse the prepared read.

WIP: static review passed. Focused runtime tests and performance acceptance remain pending the shared host slot; this head is not ready for publication.
…independent-1107

# Conflicts:
#	scripts/lib/control-ui-engine-page-scenarios.ts
#	ui/src/pages/route-provenance.test.ts
@clawsweeper

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

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 8, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: L labels Nov 8, 2026
@steipete
steipete marked this pull request as ready for review November 8, 2026 05:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T12:39:21.111023Z 7457fc5 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b59abe6e8

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

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +500 to +501
(state.detail ||
result.plugins.some((plugin) => plugin.installed && plugin.catalogId === catalogId))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reconcile catalog details after successful uninstall

When uninstalling from a discovery detail page, uninstall() clears state.detail before awaiting refreshCatalog(). The returned inventory no longer contains an installed entry for that catalog ID, so both alternatives in this new condition are false and refreshDiscovery() never runs. Consequently, showCatalogDetail() cannot retire a removed local entry or reload an available package: the page retains stale installed metadata (or an empty detail result), with no Install action until the user navigates away and back. Preserve reconciliation for the previously selected installed identity even after its removal from inventory.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug 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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
…independent-1107

# Conflicts:
#	scripts/lib/control-ui-engine-page-scenarios.ts
Preserve both schema recovery controls in one table and remove duplicated setup. Keep installed catalog fixtures consistent with the Gateway producer without weakening mutation authority.
@steipete steipete changed the title perf(ui): keep Plugins discovery usable while inventory loads perf(ui): load catalog entry details independently of plugin inventory Nov 8, 2026
@steipete
steipete marked this pull request as draft November 8, 2026 09:41
@steipete steipete closed this Nov 8, 2026
@steipete steipete reopened this Nov 8, 2026
Record the coordinator-accepted normalized growth against current main while served Chat, New Session, and shared gzip shrink. Set only the required caps to the measured head with no added headroom; include the existing 60-byte New Session cap deficit.
@steipete
steipete marked this pull request as ready for review November 8, 2026 11:50
@steipete
steipete enabled auto-merge (squash) November 8, 2026 11:56
@steipete
steipete disabled auto-merge November 8, 2026 12:14
Preserve admitted inspection receipts when route inventory changes only the selected tab. Explicit refreshes and identity changes still inspect. Refresh coordinator-accepted byte caps to the current measured head with no extra headroom.
@steipete
steipete merged commit 406245f into main Nov 8, 2026
122 of 126 checks passed
@steipete
steipete deleted the solid2/w-rpc-plugins-independent-1107 branch November 8, 2026 13:00
@steipete

steipete commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 9, 2026
openclaw#195045)

* perf(ui): load plugin discovery independently of inventory

* refactor(ui): drop unused Plugins route source metadata

* perf(ui): prepare plugin inventory during lazy page delivery

Work in progress: static review preserves catalog task authority and independent discovery, including connection provenance and read admission. Runtime, typecheck, size, and timing proof are pending the shared validation slot; not ready for publication.

* fix(ui): retain generation admission for prepared plugin inventory

Keep route-prepared inventory behind the existing plugin generation authority while it overlaps lazy page delivery. A newer publication keeps the page read pending until a fresh inventory arrives; equivalent metadata clones still reuse the prepared read.

WIP: static review passed. Focused runtime tests and performance acceptance remain pending the shared host slot; this head is not ready for publication.

* test(ui): verify usable plugin browsing before inventory

* test(ui): account for plugin loading status assertions

* test(ui): use rendered plugin loading and detail selectors

* refactor(ui): adopt the original plugin inventory promise

* refactor(ui): load plugin inventory at page adoption

* fix(ui): retain independent plugin reads during adoption

* refactor(ui): keep plugin schema demand in the lazy page

* refactor(ui): resolve plugin detail paths in the lazy page

* fix(ui): reconcile independent plugin reads at adoption

* fix(ui): retain adopted plugin route during pending loads

* test(ui): align plugin fixtures with catalog identity

Preserve both schema recovery controls in one table and remove duplicated setup. Keep installed catalog fixtures consistent with the Gateway producer without weakening mutation authority.

* perf(ui): defer plugin configuration reads to configuration views

* perf(ui): skip unused canonical plugin location allocation

* refactor(ui): canonicalize plugin routes at the app boundary

* refactor(ui): declare plugin pages without temporary aliases

* fix(bench): avoid shadowing plugin detail readiness

* perf(ui): overlap plugin inventory with route loading

* perf(ui): accept plugin inventory overlap byte trade

Record the coordinator-accepted normalized growth against current main while served Chat, New Session, and shared gzip shrink. Set only the required caps to the measured head with no added headroom; include the existing 60-byte New Session cap deficit.

* fix(ui): retain plugin inspection on same-page navigation

Preserve admitted inspection receipts when route inventory changes only the selected tab. Explicit refreshes and identity changes still inspect. Refresh coordinator-accepted byte caps to the current measured head with no extra headroom.

* test(ui): narrow plugin route results before adoption

* perf(ui): keep existing caps after current-main refresh
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. docs Improvements or additions to documentation 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