Repository navigation
fix(ui): restore plugin route performance checks - #202687
Conversation
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR separates installed and discoverable benchmark plugins and moves settings preparation behind existing lazy settings views. Example: Open Plugins with the 1,000-entry benchmark catalog.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it repairs a concrete benchmark failure and removes eager settings imports without an identified correctness or security defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI Plugins page consumes Gateway inventory, discovery results, and runtime configuration, then renders browsing or lazily loaded settings through existing configuration and secret-field owners. flowchart LR
A[Gateway inventory and catalog] --> B[Plugins page]
B --> C[Discovery browsing]
B --> D[Lazy plugin settings]
B --> E[Lazy Advanced settings]
F[Runtime configuration] --> D
F --> E
D --> G[Existing secret field owner]
E --> G
Technical reviewBest possible solution: Keep discovery fixtures distinct from installed inventory and prepare settings through the existing lazy views and configuration owners. Do we have a high-confidence way to reproduce the issue? The installed-entry filter and original fixture establish the readiness failure in source, while fixture-only browser annotations independently establish the 59-versus-56 request failure; no local reproduction was executed. Is this the best way to solve the issue? The patch addresses both causes at their existing boundaries, preserves schema identity memoization and secret-field ownership, and adds no unnecessary production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7af829afeef7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +10, Tests +53, Other -7. Total +56 across 9 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 20, 2026, 3:31 PM ET / 20:31 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix: restore plugin catalog route benchmarks * fix(ui): defer plugin settings preparation until settings loads * test(ui): open Advanced settings group before editing
Related: #202527
What Problem This Solves
The plugin route benchmark cannot reach catalog readiness because its fixture marks every entry installed, and browsing intentionally hides installed entries. After correcting the fixture, the same route makes 59 asset requests against its 56-request budget: discovery eagerly imports settings schema analysis and secret-field preparation.
User Impact
Plugin discovery avoids loading settings-only code. Installed plugin settings keep their existing schema, permission, secret-field, retry, and editing behavior. The benchmark retains its 1,000-item discovery and installed Settings workloads and all existing request budgets.
Why This Change Was Made
Give installed inventory and available catalog entries distinct identities. Move schema analysis, schema selection, and acquisition of the existing secret-field owner into the existing lazy detail and Advanced settings views. The shared page passes raw schema and context; no alternate settings or secret owner is added.
Update the existing settings fixtures to cross that boundary with real root schemas. The permission test also checks that a retained field calls the current patch callback after props change. Schema identity memos retain the existing normalization guard; the same-version schema test now counts analysis calls across unrelated updates and schema replacement. The Advanced focus test uses the supported
plugins.slots.memorypath through the real schema selector and opens the intentionally collapsed Slots group before editing.Evidence
Original readiness failure: the fixture hides all discovery cards. The relevant fixture and assertions are unchanged at this branch's base.
Fixture-only browser proof, head
00f20d124a1c8148f236f98c4d3504a53fda3eeb: production UI builds and plugins reaches its asset assertion, reporting 59 requests against 56. That completed run also reports a skills readiness timeout, skill-settings 33 requests against 31, and unused-export failures. Plugin-settings passes. This is baseline evidence, not proof of the new lazy-import fix.Lazy-import change independently reviewed before commit: no actionable source findings. Static import tracing excludes schema analysis, secret fields, stored-secret source, and settings model from discovery. Current-head browser validation now passes the plugin discovery and plugin-settings asset cases.
Formatting and
git diff --checkpass. Fresh full-range local ClawSweeper review found no actionable correctness or security issues for0e44574217ec7b4ed55c001ddf70a422699a1c01..998f873a7e91203121399cc96f8be758e7d322b9, including the Slots disclosure correction.Simplification: existing lazy boundaries and state owners reused. Full-range production delta: 61 additions, 58 deletions across the fixture and three UI modules; test/fixture delta: 78 additions, 25 deletions across five files.
Prior lazy-import browser proof passes the plugin discovery and plugin-settings asset cases, including the unchanged 56-request discovery limit. Its 2 failures are the separately tracked skills readiness timeout and skill-settings budget. Overall job result remains failed: 17 tests passed, 2 failed.
Prior-head CI completed for
f815f61f7941d7b16e69bb027c1b51adacd43648. The Advanced focus fixture failed because the nested Slots group was never opened; this revision adds that user action and preserves the typing, focus and patch-path assertions. Its other failures are the known Skills cases and unrelated baseline helper/UI exports.Corrected-head browser proof: plugin discovery and plugin-settings both pass their unchanged asset budgets. The only two failures are the separately tracked Skills readiness and asset-budget cases.
Corrected-head UI proof: all 19 settings-editor cases pass, including typing and focus in Advanced settings. The UI shard passes 802 files and 8,557 tests; its WebKit suite passes 78 files and 794 tests.
Local dependency-backed execution remains unavailable. Ready CI has completed; the documented inherited-failure exception is used for the unrelated failures below, with security and other enforced gates retained.
Ready CI, exact head
998f873a7e91203121399cc96f8be758e7d322b9: both plugin asset cases pass again. Remaining failures are the two unchanged Skills cases (repaired by fix(ui): restore Skills first-visit asset limits #202694) andkeeps a saved model and reasoning level the catalog does not list, which fails finding the cron edit button before model assertions. The cron test, mount/wait helpers and lazy detail owner are unchanged from the tested baseline. Types, lint, ratchets and security pass. Overall CI remains failed; no claim that these inherited failures are fixed by this PR.