#18418: fix(plugins): improve duplicate plugin ID warning with actionable guidance
channel: mattermost
size: S
## Summary
- Improve duplicate plugin ID warning messages with actionable precedence guidance
- Show both conflicting source paths (not just the later one)
- Include which copy takes precedence and a hint to remove the unintended one
- Add test coverage for same-origin duplicate behavior
## Motivation
As noted in maintainer feedback, the duplicate plugin warning is the **only** debugging signal when users unintentionally install a bundled plugin separately. This PR preserves the warning while making it significantly more actionable.
## Test plan
- [x] Existing tests pass (symlink dedup, same-path dedup, precedence selection)
- [x] New test: different-precedence duplicates include "takes precedence" guidance
- [x] New test: same-origin duplicates warn without precedence hint
- [x] `pnpm build` passes
- [x] `pnpm test -- --run src/plugins/manifest-registry.test.ts` — 5/5 pass
Most Similar PRs
#18730: fix(plugins): suppress duplicate ID warnings for intentional origin...
by cedillarack · 2026-02-17
79.4%
#21871: fix(plugins): suppress false duplicate warning when user-installed ...
by hydro13 · 2026-02-20
74.2%
#12084: fix: prevent false duplicate plugin warning for bundled channel plu...
by shadril238 · 2026-02-08
72.4%
#20889: fix: suppress duplicate warning for virtual auto-enabled entries
by akramcodez · 2026-02-19
70.7%
#20499: test(plugins): add bundled+config duplicate discovery regression
by dcol91863 · 2026-02-19
70.5%
#20822: fix(config): deduplicate config warnings to prevent log spam
by marcodelpin · 2026-02-19
68.6%
#12048: fix: deduplicate config warnings to log once instead of on every re...
by mcaxtr · 2026-02-08
63.8%
#22577: fix(feishu): use senderKey fallback for DM session isolation
by leesonchen · 2026-02-21
63.8%
#18966: fix(config): downgrade unknown bundled plugin references to warnings
by moxunjinmu · 2026-02-17
63.5%
#2556: fix(plugin-install): handle existing plugins and filter workspace deps
by longmaba · 2026-01-27
63.4%