Skip to content

fix(ui): restore plugin route performance checks - #202687

Merged
vincentkoc merged 3 commits into
mainfrom
fix-ci-route-discovery-fixtures-20261121
Nov 20, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix-ci-route-discovery-fixtures-20261121

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

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.memory path 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 --check pass. Fresh full-range local ClawSweeper review found no actionable correctness or security issues for 0e44574217ec7b4ed55c001ddf70a422699a1c01..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) and keeps 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.

@vincentkoc vincentkoc self-assigned this Nov 20, 2026
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 20, 2026
@vincentkoc vincentkoc changed the title fix: restore plugin catalog route benchmarks fix(ui): restore plugin route performance checks Nov 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 20, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M and removed size: XS labels Nov 20, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Every discovery entry is marked installed and hidden; correcting only that fixture exposes 59 asset requests against the 56-request limit.
  • After: Available catalog entries remain visible, while settings-only imports are deferred and browser CI reports the plugin asset cases passing.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Focused implementation with no actionable source defect found, but the required real-behavior evidence is currently test-harness-only.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Plugin discovery loads settings-only assets, and its benchmark cannot reach readiness with the obsolete all-installed fixture.
Reason: The maintainer-authored direction restores existing benchmark expectations and removes unnecessary imports while retaining settings behavior and request limits.

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
Reviewed head: 998f873a7e91203121399cc96f8be758e7d322b9

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide a redacted built-Control-UI browser network trace showing discovery defers settings-only assets and settings still open and edit correctly; the supplied browser CI remains supporting validation.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Catalog benchmark fixture changes intended behavior with a stated reason (406245f: Exercise catalog readiness independently of delayed installed inventory; distinct available entries preserve that purpose after browsing began hiding installed plugins.)
  • Schema analysis identity keeps the original intent (ccd6d07: Avoid normalizing unchanged schemas during unrelated page publications while accepting replacement schemas with unchanged version strings.)
  • Lazy settings views keeps the original intent (61411ec: Keep schema preparation and settings presentation behind actual use while retaining completed inventory and editing behavior.)
  • Secret-field preparation keeps the original intent (716621b: Keep held secret edits outside autosave and send them only through their explicit Save operation; the patch obtains the same existing owner later.)
  • Settings test fixtures keeps the original intent (71717a3: Consolidate matching settings inputs without changing tested behavior; the patch updates callers to the raw-schema boundary and retains distinct editor assertions.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 61411ec adds ui/src/pages/plugins/plugins-page-view.tsx:52 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 61411ec0d309; files: ui/src/pages/plugins/plugins-page-view.tsx)
  • Vyctor H. Brzezowski: Raw commit 716621b adds ui/src/pages/plugins/plugins-page-view.tsx:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 716621b9f55b; files: ui/src/pages/plugins/plugins-page-view.tsx)

PR surface

Source +10, Tests +53, Other -7. Total +56 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 48 38 +10
Tests 5 78 25 +53
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 13 20 -7
Total 9 139 83 +56

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs an owned browser benchmark failure and bounded unnecessary route loading without evidence of a broken core user workflow.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs an owned browser benchmark failure and bounded unnecessary route loading without evidence of a broken core user workflow.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 November 20, 2026, 3:31 PM ET / 20:31 UTC.

@vincentkoc
vincentkoc marked this pull request as ready for review November 20, 2026 20:34
@vincentkoc
vincentkoc merged commit 59b1ce0 into main Nov 20, 2026
282 of 291 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-route-discovery-fixtures-20261121 branch November 20, 2026 21:02
@vincentkoc

Copy link
Copy Markdown
Member 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 21, 2026
* fix: restore plugin catalog route benchmarks

* fix(ui): defer plugin settings preparation until settings loads

* test(ui): open Advanced settings group before editing
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 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: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant