Skip to content

refactor(plugin-sdk): unify lazy channel config schemas - #120938

Merged
steipete merged 2 commits into
mainfrom
steipete/zealous-varahamihira-64fa1a
Aug 9, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/zealous-varahamihira-64fa1a

Conversation

@steipete

@steipete steipete commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Channel plugin entry helpers resolved config schema factories during entry construction, even though schema consumers may never inspect the schema. This made the channel entry path eager while the generic plugin entry path already supported deferred, memoized schema construction.

Why This Change Was Made

Generic plugin schemas and channel schemas intentionally have different public types, so the two channel helpers now share the narrow cached-lazy value primitive rather than forcing one public schema type through a cast. Both helpers expose the existing configSchema property while deferring a factory until its first read and caching that result.

User Impact

There is no user-visible behavior or configuration change. Plugin entry construction avoids unnecessary schema work, and channel config schema factories remain stable after their first access.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 9, 2026
@steipete
steipete marked this pull request as ready for review August 9, 2026 06:03
@steipete
steipete merged commit 5f14d46 into main Aug 9, 2026
124 checks passed
@steipete
steipete deleted the steipete/zealous-varahamihira-64fa1a branch August 9, 2026 06:36
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
)

* refactor(plugin-sdk): unify lazy channel config schemas

* fix(plugin-sdk): preserve channel schema contract types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant