Repository navigation
fix(plugins): restore Slack onboarding after core updates - #147109
Conversation
Published plugins can compose older Zod roots with newer SDK schema nodes. Generate channel and plugin JSON schemas with the host converter so those nodes receive the current conversion context. Preserve original runtime parsing, conversion modes, metadata, defaults, and Zod 3 compatibility. Update the assertion ratchet for the removed casts. Release note: restore onboarding for published channel plugins after core upgrades.
|
🦞👀 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. Reviewed September 13, 2026, 2:25 PM ET / 18:25 UTC (Revision 5). ClawSweeper reviewWhat this changesUses OpenClaw’s Zod converter to load published plugin configuration schemas after core updates while preserving original validation, defaults, and Zod 3 compatibility. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. No actionable correctness or security findings remain, and the retained package and upgrade evidence supports the changed behavior. The prior log-access limitation does not warrant another merge blocker. Priority: P1 Review scores
Verification
How this fits togetherPlugin configuration schemas describe accepted settings for setup and configuration tools. The shared builders convert those descriptions to JSON Schema while leaving runtime parsing with the original plugin schema. flowchart LR
A[Published plugin schema] --> B[Shared schema builders]
C[Host SDK schema nodes] --> B
B --> D[Host JSON Schema converter]
D --> E[Setup and configuration tools]
B --> F[Original runtime parser]
F --> G[Validated settings and defaults]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -8, Tests +73, Other 0. Total +65 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep conversion with the host’s current Zod implementation while preserving plugin-owned runtime parsing and existing configuration. Do we have a high-confidence way to reproduce the issue? Yes: an older plugin Zod root containing newer SDK record nodes reaches a converter context without deferred, matching the recorded packaged failure. This review verified the source mechanism without executing it locally. Is this the best way to solve the issue? Yes: repairing the two existing builders addresses the conversion owner directly and preserves their documented parsing and configuration contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c72435e19089. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Use the installed Zod entry in the generated native module so the raw-schema test exercises the supported converter contract. Preserve the numeric-property assertion and the complete loader test order. This follow-up changes only the test fixture; runtime source is unchanged.
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* commit '28887b564210326174413d0d8ade72b38268d5f3': (1827 commits) fix(qa): bind coverage IDs to producer assertions (#144000) fix(linux): explain FreeBSD desktop setup prerequisites (#147211) fix(memory): split embedding batches rejected for an input array item cap (#139541) test: isolate timing metadata persistence from inherited settings (#147112) refactor(status): retire test-only helper publication (#147071) improve: reduce workspace agent lookup work for large fleets (#147144) refactor(macos): share connect credential selection (#144214) fix(plugins): restore Slack onboarding after core updates (#147109) refactor: share ANSI compatibility matching (#146998) fix(test): settle Models catalog before picker open (#147215) test(ui): reuse panel tab drag fixture (#147250) fix(install): use system Node for FreeBSD CLI setup (#147204) fix(cli): explain MCP probes with no enabled servers (#147216) docs: require UI screenshots in chat and PR (#147263) docs(skills): clarify remote gog OAuth setup for Gateway hosts (#145945) test: replace idle account catalog waits with synchronization (#147228) feat(qa): preserve maturity decision context (#147219) feat(macos): clarify agent activity in native chat (#147197) fix(runtime): complete Bun compatibility follow-ups (#147085) fix(ui): release closed chat panes after queued updates (#147240) ...
…47109) * fix(plugin-sdk): convert config schemas with host Zod Published plugins can compose older Zod roots with newer SDK schema nodes. Generate channel and plugin JSON schemas with the host converter so those nodes receive the current conversion context. Preserve original runtime parsing, conversion modes, metadata, defaults, and Zod 3 compatibility. Update the assertion ratchet for the removed casts. Release note: restore onboarding for published channel plugins after core upgrades. * test(config): load real Zod in native schema fixture Use the installed Zod entry in the generated native module so the raw-schema test exercises the supported converter contract. Preserve the numeric-property assertion and the complete loader test order. This follow-up changes only the test fixture; runtime source is unchanged.
What Problem This Solves
Fixes non-interactive Slack onboarding rejecting the published plugin as not supporting channel add after core updates.
User Impact
Published channel plugins can load their setup schemas and complete onboarding after core updates. Runtime validation, config defaults, and Zod 3 compatibility are preserved.
Why This Change Was Made
Both shared channel and plugin schema builders now use the host Zod converter. A published plugin can contain an older Zod root schema with newer SDK schema nodes; the older converter creates incompatible traversal state and setup loading fails. Parsing stays with the original schema.
The change removes the two schema-owned converter aliases and eight production lines. The assertion baseline shrinks to match the removed casts. No dependencies or config surfaces change.
Evidence
Fresh exact-head CI passed for
5bf767748771cf617c4e336a0d814f5f52f75663: 180 checks reached terminal state with zero failures or pending checks.The signed main refresh preserved all five non-baseline PR blobs byte-for-byte from
554a0e64497c99835bd9742ac9eb61b8b66f043b. Both production blobs also remain identical to the package-proven candidatebddfbe32195d95c07d413ceaf76d475ccdbeefc1; the assertion baseline retains current-main shrinkage and the PR reductions to 11 and 5 assertions.A pre-fix red probe temporarily reversed exactly the two production hunks. The regression test failed for the intended reason,
schema-owned converter must not run; restoring the patch restored both production blobs exactly. Fresh P0-P2 autoreview of the six-file refreshed delta found no actionable findings.Packaged baseline failure: core
ef9b6d368670688758ee91114a309812a5a810b5, tarball SHA2565d03b2e966e9d928259e9308ed277d9bb2d61347a4864b415d2035d89cfa12bc, fails loading published@openclaw/[email protected]. The captured exception isCannot read properties of undefined (reading 'push')in hostrecordProcessor, reached through the published plugin's Zod converter frombuildChannelConfigSchema.Exact candidate package and runtime proof: embedded commit
bddfbe32195d95c07d413ceaf76d475ccdbeefc1, tarball SHA2569300042c2b651945736279657b3a4135dc2aa7b2361cb8fbbb455fcabbcace58, candidate registry digest4e211a27774f04611a20c60d124dd42fcf59292737290037a0d2a5b077b1931c. Package integrity/import checks and fresh Slack account add, status, doctor, and mock-provider agent passed on Node 24.19.0 / Linux x64. Published Slack remained unchanged from the failing baseline: entry SHA25618ec0c610a9a4b90dd44819969bca108508a47d507122b0ffb44d6045c785983.An independent, source-blind operator verified fresh setup, account-name variation, and an existing-config upgrade on that same candidate artifact. The upgrade replaced published
[email protected](build3a9d69db306cd7f081e06254cb89c4bcc14a7107) through public npm install in the same HOME, without re-onboarding. Config SHA256 stayedad9b989185328bd8fdbdc094347fe083d0af09b64555478786632e79015c01d8before/after replacement; the named Slack account, mode, enabled flag, postAs, and both token values were preserved. Later intentional account edits and a successful fake-provider agent run retained the Slack settings in fresh CLI and direct config readbacks.24 focused tests, 500 channel contract tests, and 1,126 plugin contract tests passed. The selected changed-file gate passed all type, lint, metadata, and runtime guards. An integrity-verified Zod 4.4.3 root containing current Zod 4.5.4 SDK nodes reproduces the old converter failure; both repaired builders pass records, cross-copy metadata, escaped references, input/output defaults, original runtime parsing, and Zod 3 compatibility.
Normal pre-push
pnpm buildpassed on the verified candidate content; the subsequent package build verified the actual published commit above. Local reruns on the refreshed head were not usable as green evidence because the shared install was stale and incomplete: it resolved Zod 4.4.3 instead of locked 4.5.4 and lacked several current workspace dependencies. No install or dependency mutation was performed; exact-head CI above is the authoritative locked-dependency result.The ClawSweeper review of bddfbe3 found no code or security findings and requested packaged fresh-install/upgrade evidence. Those rank-up requests are satisfied above. Its baseline-log download error was an access limitation in the review environment; the recorded failing stack and identities are included here.
Proof used synthetic Slack credentials and a local fake provider; no Slack messages were sent. Adjacent follow-up: investigate 28 non-Slack bundled-plugin manifest-drift warnings emitted by doctor after upgrade.