Skip to content

refactor(ui): render plugin details with native async readiness - #180389

Merged
steipete merged 9 commits into
mainfrom
solid2/w-s2-plugin-read-schema31
Oct 22, 2026
Merged

steipete merged 9 commits into
mainfrom
solid2/w-s2-plugin-read-schema31

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Whole-scope production syntax census at 8b8291fed34662ece78fa6cb17d035de466bdf67 → 5dcdf6ea81ca66282ff37db253cf91e40503a08b. Counts describe syntax, not defects.

Family LOC 1 Handlers 2 Cleanup 3 Async/Loading/Errored 4 Actions/optimistic 5 Import/lazy 6 Structured/store/projection 7 Factories 8 Context 9 Reveal 10 Owner APIs
solid 7935 → 7935 3 → 3 4 → 4 0/3/1 → 0/3/1 2/1/1 → 2/1/1 3/2 → 3/2 0/1/0 → 0/1/0 0 → 0 0 → 0 0 → 0 1/1/1 → 1/1/1
config 4962 → 4962 0 → 0 0 → 0 0/0/0 → 0/0/0 0/0/0 → 0/0/0 0/0 → 0/0 1/1/0 → 1/1/0 0 → 0 0 → 0 0 → 0 0/0/0 → 0/0/0
menus 8313 → 8313 0 → 0 2 → 2 0/2/2 → 0/2/2 1/1/0 → 1/1/0 3/1 → 3/1 0/2/0 → 0/2/0 1 → 1 0 → 0 0 → 0 0/0/0 → 0/0/0
rest 20145 → 20145 4 → 4 16 → 16 2/7/4 → 2/7/4 3/3/0 → 3/3/0 6/1 → 6/1 1/2/0 → 1/2/0 0 → 0 2 → 2 0 → 0 0/0/1 → 0/0/1
pagesA 27072 → 27072 3 → 3 3 → 3 15/35/33 → 15/35/33 17/23/1 → 17/23/1 6/0 → 6/0 1/3/1 → 1/3/1 0 → 0 0 → 0 0 → 0 0/0/0 → 0/0/0
pagesB 44136 → 44136 1 → 1 7 → 7 2/34/24 → 2/34/24 10/11/3 → 10/11/3 22/4 → 22/4 3/7/1 → 3/7/1 0 → 0 1 → 1 1 → 1 0/0/0 → 0/0/0
pagesC 55161 → 55302 4 → 4 26 → 26 1/20/17 → 2/22/19 5/7/0 → 5/7/0 43/4 → 43/4 9/11/0 → 9/11/0 20 → 20 0 → 0 0 → 0 0/0/0 → 0/0/0
app 31657 → 31657 2 → 2 3 → 3 0/9/8 → 0/9/8 0/0/0 → 0/0/0 68/7 → 68/7 0/2/0 → 0/2/0 0 → 0 1 → 1 0 → 0 0/0/0 → 0/0/0
lib 54764 → 54764 0 → 0 5 → 5 0/2/2 → 0/2/2 1/1/0 → 1/1/0 15/1 → 15/1 1/2/0 → 1/2/0 0 → 0 1 → 1 0 → 0 2/0/2 → 2/0/2
plugins 4024 → 4024 0 → 0 3 → 3 0/4/4 → 0/4/4 1/1/0 → 1/1/0 13/1 → 13/1 1/2/0 → 1/2/0 0 → 0 0 → 0 0 → 0 2/2/3 → 2/2/3
api 2104 → 2104 0 → 0 0 → 0 0/0/0 → 0/0/0 0/0/0 → 0/0/0 2/0 → 2/0 0/0/0 → 0/0/0 0 → 0 0 → 0 0 → 0 0/0/0 → 0/0/0
total 260273 → 260414 17 → 17 69 → 69 20/116/95 → 21/118/97 40/48/5 → 40/48/5 181/21 → 181/21 17/33/2 → 17/33/2 21 → 21 5 → 5 1 → 1 5/3/7 → 5/3/7

Supersedes #180231. The reviewed Plugin detail readiness and progress fix are integrated with current main and the current native workflow.

What Problem This Solves

Installed-plugin inspection and selected catalog details now consume the completion of their existing admitted requests through Solid async reads under Loading and Errored. Loaders remain the sole owners of current selection, Gateway authority, and accepted snapshots. Optional tools/catalog enrichment still cannot block installed controls.

The completion slot is separate from accepted editable content. Closing a detail, switching identity, or losing the connection retires its presentation immediately without waiting for transport. The two loader-owned error copies are removed; visible retry actions retry the request and reset the native error boundary. No new RPC, dependency, host, route, or eager import is introduced.

The selected full CI exposed a removal-focus ordering regression: the inventory refresh starts a separate catalog read, so its heading may not exist at the first settled callback. Removal now awaits the current admitted detail receipt before restoring focus; navigating away retires that wait and preserves the new selection. The regression failed on the real focus assertion before the repair and now passes for both completion and navigation. The final review also caught a same-plugin refresh replacing accepted controls with a loading skeleton: the loading key now follows accepted plugin identity, retaining the same live controls during revalidation. The new control-identity regression passes and fails with the original receipt-only key.

Touched-family checklist Before → after
1 Native handler binding defects 0 → 0
2 Component-only cleanup debt 0 → 0; synchronous request/authentication custody retained in the page owner
3 Manual primary read presentations 2 → 0; installed inspection and selected catalog detail
4 Mutations Unchanged existing consent/config settlement owners
5 Lazy boundaries Unchanged plugin route boundary
6 Structured edit copies 0 → 0; accepted snapshots are plain-owner publications
7 Handwritten component factories 0 → 0
8 Redundant context wrappers 0 → 0
9 Sibling reveals needing coordination 0 → 0; details are alternative selections
10 Foreign owner APIs added 0 → 0

Two silent-sample exceptions remain: optional installed tools metadata and remote catalog enrichment. Consent inspection is already native on this base; config/schema remains separately assigned. No isPending or latest probe is needed for a slot whose resolved value is only null; accepted content already lives outside it.

Evidence

Check Result
Focused tests Current integrated head: 30/30 tests passed across catalog-detail (9), page generations (15), and settings lifecycle (6), default pinned Bun, one worker. Prior same-ID/progress fix remains intact.
Types / lint / formatting UI tsrs, focused typed lint, formatting and diff check pass
Regression contracts Retained accepted inspection after failed refresh; visible retry; inspection before optional enrichment; close held installed/catalog details without waiting for transport
Independent review Fresh P0–P2 integration review is scoped-clean; final source integrity verified.
Production builds Both exact-base and integrated-head builds passed.
Strict paired performance Zero violations/warnings. Startup316017 → 316030 B gzip (+13 B), CSS40894 B/1 request unchanged; Chat1437981 → 1437990 B (+9 B), New Session1015196 → 1015202 B (+6 B). All surfaces are below current caps.
Production Knip Exact base and integrated head report the same 13 unused heartbeat files; no UI findings or new ignores.
Visual Eight synthetic 1000×700 screenshots inspected; both detail families in loading/error states; browser page errors []
Broad CI Exact-head full ci:full run 39736373720 is in progress; all UI, Control UI E2E, browser-extension, and real-Gateway shards selected

Production touched-file LOC: 2,239 → 2,377 (+138). The extra production code expresses two native boundaries and one shared presentation adapter while deleting both copied loader errors; request admission and accepted snapshots stay in the existing plain owner.

Synthetic before / after

Installed loading

Before After
Before installed loading After installed loading

Installed error

Before After
Before installed error After installed error

Catalog loading

Before After
Before catalog loading After catalog loading

Catalog error

Before After
Before catalog error After catalog error

Same-plugin refresh regression repair

Full CI exposed plugin install button progress > keeps truthful progress through the final finalization-failure response: replacing the result object re-armed Loading even though its returned plugin ID stayed the same, which unmounted the progress view. The boundary now reads a memo of that ID. The existing regression fixture replaces the result object during the pending receipt.

The strengthened unit test failed against the previous head and all nine catalog-detail tests pass with the fix. The exact failed E2E case also passes (one selected case; four unrelated cases filtered), and UI tsrs, typed lint, formatting, and independent P0–P2 review pass. This was a PR regression, not an inherited failure. A fresh production build's source map matches the repaired source.

The prior head's exact failed progress E2E case passed after the stable plugin-ID fix. Current integration has fresh 30-case unit proof; the new PR runs every UI shard. The eight inspected synthetic images remain representative.

CI fixture repair

Run 39736373720 failed retains focused lifecycle controls across settings reads and uses current mutation state in Chromium and WebKit and its UI-pages type check. The browser fixture still passed the removed inspectionError prop and omitted the required inspectionRead; it now supplies the same resolved-empty read as the existing unit fixture. All focus-retention, disabled-control, and current-handler assertions remain. The exact UI-pages type graph and focused Chromium case pass locally. Independent P0–P2 review found no actionable issue in the one-line repair. Main was merged for the current fixture/tooling context; production changes in this follow-up are zero.

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

clawsweeper Bot commented Oct 22, 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 22, 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-22T07:21:39.746318Z c54d7fa 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.

@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 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR presents plugin-detail request readiness through native Solid loading and error boundaries while retaining accepted content.

Example: Inspection of the installed Workboard plugin fails.

  • Before: The loader stores an error string and the view displays Try again.
  • After: The admitted request reaches Solid’s error boundary, and Try again starts another request and resets the boundary.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful owner-backed refactor with visual evidence and focused regressions, but the missed browser consumer blocks a clean validation result.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored PR is outside the ordinary contributor proof gate; inspected synthetic browser screenshots support installed loading/error parity, and reported regression runs cover retry, retirement, focus, and same-plugin retention.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Plugin details should retain usable controls and accepted content while presenting loading, failures, and retry consistently.
Reason: The maintainer-authored direction follows the established Solid migration and preserves routes, request admission, optional enrichment, and mutation authority.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this maintainer-backed refactor preserves the existing ownership model, but a missed browser-test consumer update causes confirmed CI failures.

Priority: P2
Reviewed head: 5dcdf6ea81ca66282ff37db253cf91e40503a08b

Before merge

  • Migrate the remaining browser fixture to inspectionRead (P2) - The new required prop is not supplied by settings-lifecycle.browser.test.tsx:39, which still constructs DetailProps with inspectionError. PluginInspectionStatus consequently dereferences undefined in source().receipt(), so the lifecycle controls never render. Exact-head checks-ui (1/3) confirms this failure in both Chromium and WebKit. Update that fixture to provide the new read contract, as the changed unit fixture already does, and preserve its focus and current-handler assertions.
  • Complete next step - Have the CI owner obtain and classify the core test-types failure; request a repair only if its diagnostic is attributable to this diff.

Findings

  • [P2] Migrate the remaining browser fixture to inspectionRead — ui/src/pages/plugins/settings-view.tsx:99
Agent review details

How this fits together

The Control UI plugin page admits Gateway reads, retains accepted detail snapshots, and supplies request completion receipts to views that render loading, errors, and lifecycle controls.

flowchart TD
  A[Plugin route and inventory events] --> B[Plugins page owner]
  B --> C[Detail loaders]
  C --> D[Gateway client]
  C --> E[Accepted snapshots]
  C --> F[Read receipt adapter]
  E --> G[Solid detail views]
  F --> G
Loading

Technical review

Best possible solution:

Keep the existing loaders and native presentation adapter, and migrate the remaining browser fixture to the required receipt contract.

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

The browser fixture omits the newly required inspectionRead prop, and exact-head Chromium and WebKit annotations confirm the resulting undefined-receipt failure; no target code was run during this review.

Is this the best way to solve the issue?

Observing existing admitted requests preserves one request owner and separate accepted content; the remaining repair belongs in the missed test consumer rather than a production compatibility fallback.

Full review comments:

  • [P2] Migrate the remaining browser fixture to inspectionRead — ui/src/pages/plugins/settings-view.tsx:99
    The new required prop is not supplied by settings-lifecycle.browser.test.tsx:39, which still constructs DetailProps with inspectionError. PluginInspectionStatus consequently dereferences undefined in source().receipt(), so the lifecycle controls never render. Exact-head checks-ui (1/3) confirms this failure in both Chromium and WebKit. Update that fixture to provide the new read contract, as the changed unit fixture already does, and preserve its focus and current-handler assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 11e719f398d8.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/plugins/settings-lifecycle.browser.test.tsx --maxWorkers=1
  • pnpm tsgo:test:ui
  • pnpm test ui/src/pages/plugins/catalog-detail.test.tsx ui/src/pages/plugins/plugins-page.generations.test.ts ui/src/pages/plugins/plugins-page.test.ts ui/src/pages/plugins/settings-lifecycle.test.tsx --maxWorkers=1
  • git diff --check

What I checked:

PR surface

Source +141, Tests +201. Total +342 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 229 88 +141
Tests 4 206 5 +201
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 435 93 +342

Review metrics

Metric Value Why it matters
Production versus test growth Production +229/-88; tests +206/-5 Growth supplies two native boundaries, shared receipt retirement, and distinct retry, retention, and focus regressions while removing copied loader errors.

Root-cause cluster

Relationship: canonical
Canonical: #180389
Summary: This PR carries the replacement implementation and repairs from the closed predecessor.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: A focused Control UI refactor has a concrete, narrow browser-test compatibility defect.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit 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: A focused Control UI refactor has a concrete, narrow browser-test compatibility defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit 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.

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 22, 2026, 3:08 AM ET / 07:08 UTC.

@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: c54d7fa8e6

ℹ️ 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 +189 to +192
onClick={() => {
props.onRetry();
reset();
}}

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 Reset latched errors when automatic reads supersede them

After a catalog or inspection read enters this fallback, only this button calls reset(). Automatic retries already performed after a same-identity reconnect or plugin-generation refresh replace the receipt through showCatalogDetail/showDetails but never reset the Errored boundary, so even a successful newer request leaves the old error banner visible until the user manually starts another request. Reset or key the boundary when the admitted receipt changes; the same issue exists in PluginInspectionStatus.

AGENTS.md reference: ui/AGENTS.md:L14-L19

Useful? React with 👍 / 👎.

@steipete
steipete merged commit a802dd7 into main Oct 22, 2026
98 of 100 checks passed
@steipete
steipete deleted the solid2/w-s2-plugin-read-schema31 branch October 22, 2026 08:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…claw#180389)

* refactor(ui): use native readiness for plugin details

* test(ui): await initial async outputs readiness

* fix(ui): restore plugin detail focus after catalog refresh

* fix(ui): retain plugin detail across snapshot refresh

* test(ui): provide plugin inspection readiness fixture
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. size: L 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