Skip to content

fix(registry): isolate deferred plugin loads - #1543

Merged
ricardo-devis-agullo merged 1 commit into
masterfrom
fix/instance-local-plugin-deferred-loads
Aug 9, 2026
Merged

ricardo-devis-agullo merged 1 commit into
masterfrom
fix/instance-local-plugin-deferred-loads

Conversation

@ricardo-devis-agullo

Copy link
Copy Markdown
Collaborator

Summary

  • make deferred plugin loads local to each plugin initialization
  • prevent concurrent registries from sharing deferred plugins
  • add a regression test covering independent concurrent initializations

Validation

  • npm run lint
  • npm run build
  • npx mocha --timeout 20000 test/unit/registry-domain-plugins-initialiser.js
  • npm test --workspace oc (973 passing)

The package-only build was also attempted; it requires the workspace metadata adapter build, while the dependency-aware root build passes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Scopes deferred plugin state to each registry initialization, preventing cross-registration during concurrent initialization.

Changes:

  • Moves deferred plugin storage inside init.
  • Adds a concurrent initialization regression test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/oc/src/registry/domain/plugins-initialiser.ts Isolates deferred plugin queues per initialization.
packages/oc/test/unit/registry-domain-plugins-initialiser.js Verifies concurrent initializations remain independent.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ricardo-devis-agullo
ricardo-devis-agullo merged commit e7c310e into master Aug 9, 2026
4 checks passed
@ricardo-devis-agullo
ricardo-devis-agullo deleted the fix/instance-local-plugin-deferred-loads branch August 9, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants