Repository navigation
refactor: split plugin loader by responsibility - #108513
Merged
Merged
Conversation
steipete
force-pushed
the
codex/refactor-plugin-loader
branch
from
July 16, 2026 00:33
e6be7b9 to
01ed963
Compare
Contributor
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 01ed963caf
ℹ️ 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".
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 16, 2026
* refactor(plugins): split plugin loader * refactor(plugins): keep loader helpers internal * refactor(plugins): remove unused loader type import * test(plugins): cover split runtime registry boundary
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
* refactor(plugins): split plugin loader * refactor(plugins): keep loader helpers internal * refactor(plugins): remove unused loader type import * test(plugins): cover split runtime registry boundary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The plugin loader had grown into a roughly 3,000-line ownership hotspot spanning cache context, discovery, module loading, runtime registration, activation, and CLI metadata. That made isolated review and maintenance needlessly risky and required a max-lines exemption.
Why This Change Was Made
This maintainer-requested refactor keeps
src/plugins/loader.tsas the stable public facade while moving cohesive responsibilities into focused loader modules. It also centralizes manifest-backed plugin record construction shared by runtime and CLI loaders, preserves the existing security and activation boundaries, and removes the loader max-lines baseline entry.User Impact
No user-visible behavior or public API change. Maintainers get smaller ownership surfaces, clearer dependency seams, and no grandfathered line-count exception for the loader.
AI-assisted: yes. Codex performed the implementation, focused validation, and two clean autoreview passes; the behavior and ownership boundaries were reviewed before submission.
Evidence
pnpm check:changedpassed on Blacksmith Testbox, including core and test typechecks, lint, max-lines ratchet, plugin boundaries, and runtime import-cycle checks.pnpm buildpassed on the rebased branch, including tsdown, runtime postbuild, plugin SDK export checks, and Control UI build guards.