Repository navigation
feat(plugins): support Solid Control UI views - #168408
Conversation
Compile plugin TSX with the author-owned Solid compiler and bundle the renderer. Validate retained imports after tree-shaking so dead hydration loaders do not reject client-only views while unbundled runtime imports remain forbidden. Port the X replies page behind the existing view contract and document Solid plugin authoring. Security-relevant builder validation requires owner review before landing.
Key account and allowlist rows by stable identities, preserve inline spacing, and record the generated browser asset revision. Exercise the real X bundle and complete the navigation fixture.
|
🦞👀 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 adds opt-in Solid TSX compilation to the plugin builder and converts the X replies page to Solid. Example: A plugin authors view.tsx with /** @jsxImportSource @solidjs/web */.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the previous JSX compatibility finding is resolved, and no new actionable defect was found in the maintainer-directed Solid support. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe plugin builder converts author-owned sources and dependencies into immutable browser assets that the Control UI mounts through its existing view lifecycle contract. flowchart LR
A[Plugin browser sources] --> B[Canonical plugin builder]
B --> C[JSX compiler selection]
C --> D[Emitted import validation]
D --> E[Immutable browser assets]
E --> F[Control UI view host]
F --> G[X replies page]
Technical reviewBest possible solution: Retain the opt-in compiler selection and existing view contract, with normal required gates governing landing. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the missing Solid compiler path; no target code was executed during this read-only review. Is this the best way to solve the issue? Selecting the author's renderer contract in the shared builder addresses the capability gap while preserving existing JSX semantics and synchronous X request ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ac2c756da388. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +165, Tests +377, Docs +39, Config +5, Other +11. Total +597 across 12 files. Added test files: 1. View PR surface stats
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 HistoryReview history (2 earlier review cycles)Reviewed October 10, 2026, 8:22 AM ET / 12:22 UTC (Revision 3). |
Use typed native value and ARIA bindings, keep browser fixtures independent of plugin backend type graphs, and traverse emitted imports without type assertions. Preserve the author-installed compiler API assertion with its safety invariant.
Select the Solid compiler only for an explicit @solidjs/web JSX contract, leaving unmarked TSX on esbuild's existing renderer path. Cover the non-Solid regression and document the Solid pragma. The X asset generation is byte-identical.
|
@clawsweeper re-review The non-Solid JSX compatibility finding is fixed: the native Solid compiler now runs only for an explicit |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* feat(plugins): support Solid Control UI views Compile plugin TSX with the author-owned Solid compiler and bundle the renderer. Validate retained imports after tree-shaking so dead hydration loaders do not reject client-only views while unbundled runtime imports remain forbidden. Port the X replies page behind the existing view contract and document Solid plugin authoring. Security-relevant builder validation requires owner review before landing. * fix(x): retain Solid rows across reply updates Key account and allowlist rows by stable identities, preserve inline spacing, and record the generated browser asset revision. Exercise the real X bundle and complete the navigation fixture. * fix(plugins): satisfy Solid typing and import boundary checks Use typed native value and ARIA bindings, keep browser fixtures independent of plugin backend type graphs, and traverse emitted imports without type assertions. Preserve the author-installed compiler API assertion with its safety invariant. * chore(plugins): place compiler safety invariant beside assertion * fix(plugins): preserve non-Solid JSX compilation Select the Solid compiler only for an explicit @solidjs/web JSX contract, leaving unmarked TSX on esbuild's existing renderer path. Cover the non-Solid regression and document the Solid pragma. The X asset generation is byte-identical. * style(plugins): make compiler fallback return explicit
What Problem This Solves
Native Control UI plugins could not compile Solid TSX through the canonical plugin builder. The X replies page now provides a complete Solid 2 consumer behind the unchanged view contract.
User Impact
Plugin authors can use their own bundled Solid renderer. X replies preserves its controls, administrative access checks, and layout. Solid dependencies use the seven-day-eligible
2.0.0-rc.13pins. Existing non-Solid JSX compilation remains supported.Why This Change Was Made
The shared esbuild adapter selects Solid only when the source's leading
@jsxImportSourcepragma or explicit builder option names@solidjs/web. Other TSX files retain esbuild's existing compiler. This fixes ClawSweeper's P1 compatibility finding; a regression first failed against the unconditional adapter, then passed after the fix. Workboard's mock builder uses the same adapter.Solid's browser entry includes an unused hydration loader. Import validation now checks emitted JavaScript with Acorn and the esbuild metafile: dead loaders can disappear, but every retained browser import must resolve to an emitted asset. Retained non-literal dynamic imports and external browser imports fail. Existing backend builtin/host exceptions and require guards remain.
acornwas already a root dependency.The coordinator reviewed this security contract. This path is not in the CODEOWNERS hard-security tier; the exact-head
openclaw/security-sensitive-reviewandopenclaw/dependency-reviewchecks still gate landing.Evidence
git diff --checkpass.Testbox
tbx_01m4jnf71xhtbejy4dpyf5gyj3never received a runner. AWScbx_9ea7a6b45ea2and Hetznercbx_cf9e22667a19stalled in source synchronization. All three leases are stopped; no test command ran there. Local focused proof follows the campaign's capacity-failure fallback; PR CI supplies the remaining remote gates. No local containers or extra CI reruns were used.Final-head ClawSweeper is ready with no actionable findings;
openclaw/dependency-reviewandopenclaw/security-sensitive-reviewpass on7476c8a7e59e5726e9673acf17f552064874e49a. CI run 38051331563 completed with six inherited failed jobs: UI shards 2, 3, 4, 6 and 8 (native-conversation, collaborator-scroll, mobile-shell-geometry, instant-thread and position-rail), plus the fake-compilerrun-tsgoSIGTERM-during-spawn timeout. The UI cases match independent scheduled-main run 38048680925; the watchdog matches 38038570610. Their tests and relevant host/process owners are unchanged in the actual tested merge. The coordinator approved the native inherited-failure landing path; CI is recorded as failed, with no reruns. Production types, lint, UI unit, changed-node and boundary checks pass. Real-Gateway, performance, WebKit/native-shell and release-only lanes were not selected.Release-note context: support Solid-authored native plugin views and move X replies to Solid without changing the SDK contract.