Skip to content

chore(ui): guard bundled plugin Solid views - #182472

Merged
steipete merged 5 commits into
mainfrom
solid2/w-s2-plugins
Oct 24, 2026
Merged

steipete merged 5 commits into
mainfrom
solid2/w-s2-plugins

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Bundled plugin Solid views were outside the Control UI's controller and imperative-rendering guards, so the same regressions could land under extensions/ without failing CI.

User Impact

No runtime behavior changes in this PR. Developers get the same guarded Solid contracts for Workboard, Memory Core, Nostr, WhatsApp, ClawRouter, and X. The companion plugin fixes preserve their appearance while correcting stale handlers, row lifetime, and Workboard state/focus behavior.

Why This Change Was Made

Reuse the existing native AST scan for all six plugin view surfaces, including browser TypeScript helpers. Plugin debt has separate per-file baselines; neither another plugin nor the host can supply an allowance for a new call. The inventory uses the same plugin roots. Real browser/test/ support modules are excluded from the production census.

The existing lint command remains the CI owner. Changed-file selection now retains that guard for plugin view/helper and plugin-baseline changes, including staged and shallow-checkout runs. No new parser, CI job, SDK seam, or runtime dependency.

Evidence

Check Result
pnpm tsgo:ui Passed
Tooling test typecheck Passed
Controller guard tests 53 passed
Changed-lint selection tests 27 passed
Targeted script/test lint and formatting Passed
Final controller guard Passed; plugin allowances: 10 effects, 15 listeners, 0 queries, 3 view cleanup calls
Independent review No actionable P0–P2 findings; baseline pruning reviewed separately
Production Knip Same unused src/gateway/assistant-human-mentions.ts as the exact clean base; no new unused files or dependencies

Landed companion fixes: #182293 (Workboard), #182290 (Memory Core), #182289 (Nostr), and #182364 (WhatsApp). The WhatsApp follow-up preserves fact rows across refreshes. ClawRouter and X were audited and needed no source changes.

Plugin census

Counts are production calls, excluding test support. Each cell is before → after.

Plugin Effects Raw listeners DOM queries View cleanup Production TS/TSX LOC
Workboard 11 → 9 23 → 14 15 → 0 8 → 3 14,130 → 14,238
Memory Core 1 → 1 0 → 0 0 → 0 0 → 0 1,172 → 1,172
Nostr 0 → 0 1 → 1 0 → 0 0 → 0 1,014 → 1,002
WhatsApp 0 → 0 0 → 0 0 → 0 0 → 0 347 → 352
ClawRouter 0 → 0 0 → 0 0 → 0 0 → 0 572 → 572
X 0 → 0 0 → 0 0 → 0 0 → 0 550 → 550

Retired host requestUpdate contracts fall from 13 Workboard files to zero; view-local presentation refresh callbacks remain. Render effects, JSX classList, handwritten component factories, and production Solid flush are zero throughout. Workboard retains two deliberate untracked reads (initial clock and imperative draft snapshot) and one lazy SDK view loader. Its remaining cleanup owns synchronously acquired observers or SDK content; its effects bind timers, measurements, or external views. Memory's one effect and one getOwner/runWithOwner pair bridge host-owned SDK components. Nostr's listener handles AbortSignal cancellation. These retain explicit lifetimes; they are not duplicated state owners.

The checklist also covered async readiness/error presentation, admission and optimistic actions, semantic row keys, clone/snapshot use, and lazy loading. Workboard's two structured clones initialize independent drafts; no Solid snapshot copies were added. Plugin imports remain inside documented SDK and plugin-local boundaries. ClawRouter retains read-only telemetry repaints on refresh: its optional, nonunique row identifiers do not supply a reliable semantic key, and those rows have no local state. X already uses semantic entity keys.

Plugin bundles

Measured by the native plugin builder on the same Mac at each companion PR’s base and head; totals include CSS. All pass 4 MiB/asset, 8 MiB/plugin, and 128-asset limits.

Plugin Assets (JS/CSS) Raw bytes before → after Gzip bytes before → after
Workboard 3 / 2 1,515,061 → 1,514,395 329,485 → 329,674
Memory Core 1 / 1 213,929 → 213,667 56,857 → 56,758
Nostr 1 / 0 149,369 → 148,221 41,487 → 41,124
WhatsApp 1 / 0 76,057 → 76,148 26,376 → 26,406
ClawRouter 1 / 1 83,409 → 83,409 30,181 → 30,181
X 1 / 1 82,740 → 82,740 30,775 → 30,775

Workboard's 189 B gzip increase preserves the new explicit ref/subscription lifetimes; WhatsApp adds 30 B gzip for semantic fact keys. Both remain inside their plugin asset limits. Combined plugin output falls by 1,985 raw bytes and 243 gzip bytes. Host startup modules and requests are unchanged by these plugin-local and tooling changes. Inspected synthetic before/after captures are embedded in the companion visual PRs and delivered in the originating chat.

Tooling production LOC: 3,133 → 3,166. Its two focused test files: 1,032 → 1,093. The production increase shares one AST engine and adds surface-specific baseline routing; it does not add a parallel checker. No host startup code changed, so no host rebuild was needed under the campaign's bounded local-proof policy.

@clawsweeper

clawsweeper Bot commented Oct 24, 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

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 🔄 Running since 2026-10-24T09:26:43.742662Z 3deaa6f PR opened
ℹ️ 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Oct 24, 2026
@steipete
steipete merged commit 963c861 into main Oct 24, 2026
100 checks passed
@steipete
steipete deleted the solid2/w-s2-plugins branch October 24, 2026 09:38
@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 25, 2026
* ci(ui): guard bundled plugin Solid views

* ci(ui): ratchet plugin baselines after Solid repairs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant