Repository navigation
perf(ui): load catalog entry details independently of plugin inventory - #195045
Conversation
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
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| (state.detail || | ||
| result.plugins.some((plugin) => plugin.installed && plugin.catalogId === catalogId)) |
There was a problem hiding this comment.
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 👍 / 👎.
…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.
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.
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.
|
Merged via squash.
|
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
Problem and change
A direct Plugins catalog link could remain blank behind a slow installed-inventory read. Start
plugins.listat 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 against3a25991e37c4bad581b34ebf19f0b9b3e036b5cf. Current mainb32f01abae8d34d14b62f1a6dd9fe4f128cd21e2was 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:522expected oneplugins.inspectbut saw two, andplugins-request-ownership.e2e.test.ts:199expected 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 merged34d5b3fd291repair 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
expectLiveObjectsexport errors reproduced by exact file/error on clean basef436456. The later main fix72110f30e8dis 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.
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%.
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
b32f01abae8against merged runtime5e750d7259db, both with Node 26.12.1 on the same machine: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
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.7457fc58411fdcd7c6456da12f87387c7d35b3bf: success, all 68 jobs successful/skipped. Full UI E2E and real-Gateway coverage passed.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.
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.