Skip to content

fix(core): preserve unchanged plugin prefix - #46857

Merged
thdxr merged 1 commit into
v2from
plugin-prefix
Sep 2, 2026
Merged

thdxr merged 1 commit into
v2from
plugin-prefix

Conversation

@thdxr

@thdxr thdxr commented Sep 2, 2026

Copy link
Copy Markdown
Member

Issue for this PR

No linked issue.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Keep the unchanged prefix of plugins running when the activation list changes, comparing IDs and revisions. Dispose the old suffix in reverse order, then load the new suffix in registration order. Appending a plugin no longer restarts earlier plugins.

Preserves metadata-only updates and replacement failure recovery. Includes five simple cases: append, insertion, revision change, trailing removal, and metadata-only changes. Rebased onto the current plugin service; the obsolete startup test already removed upstream stays deleted.

How did you verify your code works?

  • 292 tests passed across the core plugin, state, location-layer, and instance-plugin test selections.
  • Core typecheck and all 33 workspace typecheck tasks passed.
  • Prettier and git diff --check passed. Targeted Oxlint has no errors (two existing consistent-return warnings in unchanged tests).

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@thdxr
thdxr merged commit 36095de into v2 Sep 2, 2026
10 checks passed
@thdxr
thdxr deleted the plugin-prefix branch September 2, 2026 16:50
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
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.

1 participant