Skip to content

Copilot harness ignores Copilot CLI plugins installed from directory marketplaces #342671

Open

Description

Environment: VS Code 1.142.0 (commit 6d62b1d5dace93a33b3a6d3eca1317bd5e15bcb1), Copilot harness, and Copilot CLI 1.0.98 on Linux, sharing ~/.copilot.

Steps to reproduce

  1. In a repository, add a plugin and a marketplace that lists it:

    plugins/my-plugin/plugin.json:

    { "name": "my-plugin", "version": "0.0.1", "description": "Repro plugin" }

    plugins/my-plugin/skills/hello/SKILL.md:

    ---
    name: hello
    description: Use when the user says hello.
    ---
    Reply with "hello from my-plugin".

    .github/plugin/marketplace.json:

    {
      "name": "local",
      "owner": { "name": "Repro" },
      "plugins": [
        { "name": "my-plugin", "source": "./plugins/my-plugin", "version": "0.0.1", "description": "Repro plugin" }
      ]
    }
  2. Register the repository as a directory marketplace in .github/copilot/settings.json:

    { "extraKnownMarketplaces": { "local": { "source": { "source": "directory", "path": "." } } } }
  3. Start Copilot CLI in the repository, trust the folder, and run /plugin install my-plugin@local. The CLI loads the plugin from the repository without copying it.

  4. In VS Code, open the repository and start a new Copilot harness session.

Expected: The installed plugin is available, as it is in Copilot CLI.

Actual: The plugin is missing. I observed this in a Remote Tunnels window, where #341862 also blocks plugins, but the cause below doesn't depend on the connection. CopilotCliInstalledPluginsStore._readInstalledPlugins keeps only installs whose cache_path, or legacy location, is under ~/.copilot/installed-plugins, and skips the rest ("Skipping plugin cache path outside the installed root"). The CLI never copies installs from directory marketplaces there, so VS Code can't see them.

Suggested fix: Accept installs whose source is a directory marketplace and use the plugin directory that the CLI loads.

Related: #327404 and #341862.

Activity

  1. added
    stale
    on Oct 26, 2026
  2. added and removed
    stale
    on Oct 31, 2026
  3. AyhanSakaryaGOB commented on Nov 17, 2026

    @AyhanSakaryaGOB

    Posting this here as I see that it is related. We recently noticed, that our enterprise plugin marketplaces are only visible via the Customizations or "Manage Plugin marketplaces" window, when the harness is set to local.
    As soon as we switch to the Copilot harness, the marketplaces are not visible anymore. If needed, I can create a different issue for it.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions