Skip to content

Preserve repo defaultEnabled through plugin dedupe shadowing - #510

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6716-prevent-later-discovery-origins-from-shadowing-repo
Aug 22, 2026
Merged

Preserve repo defaultEnabled through plugin dedupe shadowing#510
TheGreatAxios merged 1 commit into
mainfrom
cl-6716-prevent-later-discovery-origins-from-shadowing-repo

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Plugin discovery dedupe was last-wins by id, so a later non-repo install sharing a repo defaultEnabled plugin's id would win and lose the origin:repo signal, silently turning the bundled default off. dedupePluginModules now stamps the surviving module with shadowedRepoDefaultEnabled when it shadows a repo defaultEnabled entry, and isPluginModuleEnabled honors that stamp unless settings explicitly disable the id.

Fixes CL-6716. Stacked on #507.
https://linear.app/abklabs/issue/CL-6716

A later non-repo install sharing a repo defaultEnabled plugin's id would
win the last-wins dedupe, and the survivor's non-repo origin then failed
isPluginModuleEnabled's origin check, silently turning off the bundled
default. dedupePluginModules now stamps the surviving module with
shadowedRepoDefaultEnabled when it replaces a repo defaultEnabled entry,
and isPluginModuleEnabled honors that stamp unless settings explicitly
disable the id.
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

CL-6716

@TheGreatAxios
TheGreatAxios changed the base branch from cl-6714-honor-plugin-defaultenabled-for-agents-tools-still-require to main August 22, 2026 20:44
@TheGreatAxios
TheGreatAxios merged commit a21a1c8 into main Aug 22, 2026
2 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.

1 participant