Skip to content

Plugins installed from a local (directory-source) marketplace are being silently uninstalled #3314

Not planned

Description

@zahidma-91

Summary

Plugins installed from a local, directory-backed plugin marketplace are being silently uninstalled — no notification, no error, no log entry. Reinstalling works, but they disappear again within hours, and reliably after an app restart / reboot / update.

Plugins from GitHub-backed marketplaces are unaffected. Only marketplaces registered with "source": "directory" are hit. This setup worked for months and only broke in the last few days.

Environment: Copilot app 2.94.0 (was 2.93.0), CLI 1.0.80, Windows 11. Local marketplace folder is also a local git repo, with ~15 plugins (~11 installed).

Steps to reproduce

  1. Register a local folder as a plugin marketplace ("source": "directory") in settings.json → extraKnownMarketplaces.
  2. Install several plugins from it; confirm they load.
  3. Use the app for a few hours, or restart the app / reboot.
  4. The plugins from the local marketplace are gone.

Expected: they persist across restarts and updates, like GitHub-backed plugins.
Actual: every registry entry for the directory-source marketplace is silently dropped.

Evidence — state is left internally inconsistent

After the plugins "uninstall themselves", the three sources of truth disagree:

  1. settings.json → enabledPlugins still lists them as enabled — 11 entries like "plugin-alpha@my-local-library": true remain.
  2. config.json → installedPlugins has ZERO entries for that marketplace. Every surviving entry belongs to a source: "github" marketplace.
  3. The plugin payloads are still on disk under installed-plugins/my-local-library/ — files were never cleaned up, only the registry entry was dropped. This looks like registry pruning, not a real uninstall.
  4. Timing correlates with startup/update — config.json's mtime matches the app update timestamp to the minute (same minute as data.db.pre-update-backup-<version>-<ts>).

Hypothesis

At startup/migration the app seems to reconcile installedPlugins against marketplace sources. source: "github" resolves fine; source: "directory" appears to fail or be skipped, so those entries are treated as orphaned and pruned.

Two hints this is a recent regression: newer installedPlugins entries carry a source_sha field older ones lack — if integrity is now verified against the source, a local marketplace that is an actively developed git repo legitimately changes content and would be invalidated on every restart. And the behavior began only after a recent app update.

Impact

Locally developed plugins become unusable several times a day. Their skills/agents/commands silently vanish mid-workflow, so sessions relying on them fail or behave differently with no indication why. Manually reinstalling ~11 plugins repeatedly is not a workable workaround. Because enabledPlugins still says true, the UI misrepresents what is actually loaded.

Activity

  1. changed the title [-]Plugins installed from a local (directory-source) marketplace are silently uninstalled on restart[/-] [+]Plugins installed from a local (directory-source) marketplace are being silently uninstalled[/+] on Sep 2, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    This issue has been marked as stale because it has had no activity for 60 days. It will be closed in 7 days unless there is new activity. If this still affects you, please comment with the latest app version, whether the problem is still reproducible, and any updated details.

  3. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor

    This issue has been automatically closed after 7 additional days without activity since being marked stale. If this still affects you, please provide updated details and ask a maintainer to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions