Skip to content

Keep project plugin installs additive across config layers - #592

Merged
ericdallo merged 1 commit into
masterfrom
fix/additive-plugin-installs
Sep 10, 2026
Merged

Keep project plugin installs additive across config layers#592
ericdallo merged 1 commit into
masterfrom
fix/additive-plugin-installs

Conversation

@zikajk

@zikajk zikajk commented Sep 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Append plugins.install across config layers, preserving source definitions and later-plugin precedence. Other config arrays keep their current behavior.
  • Add layer-local plugins.installMode: "replace" to preserve the previous exclusion behavior, including an empty list.
  • Remove only global declarations on plugin uninstall, rather than reporting inherited plugins as removed. Include focused regression tests and migration documentation.

Compatibility

This changes the default: global plugins previously hidden by a project install list will now load, including their hooks and tools. Users who relied on exclusion must set installMode: "replace" beside that list. Existing direct hook definitions are unchanged.

Verification

  • 69 tests, 630 assertions passed across config, plugins, commands, and handlers.
  • Focused Clojure lint, editor diagnostics, and whitespace checks passed.
  • Isolated from the separate hook-feedback work and unrelated local changes.

🤖 Generated with ECA (openai/gpt-6-astra - medium)

@zikajk
zikajk force-pushed the fix/additive-plugin-installs branch 6 times, most recently from efbca82 to 9c7ed8c Compare September 10, 2026 13:51
@zikajk
zikajk marked this pull request as ready for review September 10, 2026 14:38
@zikajk
zikajk force-pushed the fix/additive-plugin-installs branch 4 times, most recently from 350ee43 to 08a35dc Compare September 10, 2026 15:09
Preserve inherited plugins when a project adds its own, with an explicit
installMode replacement option for users who need the previous behavior.
Limit uninstall to global declarations so inherited plugins are not
reported as removed when they remain active.
@zikajk
zikajk force-pushed the fix/additive-plugin-installs branch from 08a35dc to 93c085e Compare September 10, 2026 15:11

@ericdallo ericdallo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah I was aware of this gap, this looks good, and the default makes sense

@ericdallo
ericdallo merged commit c191885 into master Sep 10, 2026
9 checks passed
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