Skip to content

Load a local marketplace plugin only while it is installed and listed - #466

Merged
ilovepixelart merged 1 commit into
mainfrom
fix-local-plugin-install-gate
Nov 16, 2026
Merged

ilovepixelart merged 1 commit into
mainfrom
fix-local-plugin-install-gate

Conversation

@ilovepixelart

Copy link
Copy Markdown
Owner

Plugin discovery (`extensions/internal/plugins.ts`) resolved a local marketplace's `./` entry from its source before consulting the cache.

  • An uninstalled local plugin no longer loads. `claude plugin uninstall kit@localmp` empties `installed_plugins.json` and marks `cache/localmp/kit/1.0.0` with `.orphaned_at`, but leaves the marketplace source in place. Discovery still returned `kit` rooted at the source, enabled by default with no `enabledPlugins` entry, so its commands, hooks and MCP servers kept running. The source now applies only to a plugin that has a live cached version, the same install signal the cache path uses.

  • A plugin the marketplace no longer lists does not load. With `kit` removed from `marketplace.json` but still installed, discovery fell back to the copy cached at install time. Claude Code logs `Plugin kit not found in marketplace localmp` and loads no component; discovery now loads nothing as well.

  • `npm run check` passes (Biome, strict tsc, Vitest)

  • Tests cover the change

A local marketplace's ./ entry was resolved from the source before the
cache was consulted, so a plugin removed with claude plugin uninstall
(empty install record, cached copy marked orphaned) kept loading from
its source, hooks and MCP servers included. The source now applies only
to a plugin with a live cached version. A plugin the marketplace no
longer lists does not load either, as Claude Code reports it not found.
@sonarqubecloud

Copy link
Copy Markdown

@ilovepixelart
ilovepixelart merged commit b653393 into main Nov 16, 2026
13 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