Removing enabledPlugins from a project's settings leaves an orphaned project-scoped install that can't be removed from the UI Body
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The scope: "project" entry survives. After the settings change plus a restart it was still present, still pinned to its original older commit (0.3.0 / f41f5b5… while user scope was 0.4.0 / cd44aa8…), and still rendered as a second row in the plugin list.
There is also no UI affordance to remove one scope's install while keeping the other — the plugin list offers no per-row removal, and the plugin's own toggle/controls act on the plugin as a whole.
The only thing that cleared it was uninstalling the plugin entirely and reinstalling it, after which a single correct scope: "user" entry remained.
What Should Happen?
The project-scoped install is pruned once nothing enables it, leaving the single user-scope install.
Prune install entries whose enabling setting no longer applies, or expose per-scope removal so an orphaned install can be cleaned up without uninstalling and reinstalling the plugin.
Error Messages/Logs
Steps to Reproduce
Enable a plugin in ~/.claude/settings.json (enabledPlugins), so a scope: "user" install exists.
Also enable it in a project's .claude/settings.json, so a second scope: "project" install is created for that project.
Decide the project-scoped one was a mistake, and remove enabledPlugins from the project's .claude/settings.json (leaving extraKnownMarketplaces in place).
Restart Claude Code and reopen the project.
Inspect ~/.claude/plugins/installed_plugins.json, and the plugin list.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code 2.1.227 (desktop app)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗