`--plugin-dir` skills load but are omitted from `/skills` and `/env`
Describe the bug
Skills supplied by a local plugin loaded with --plugin-dir are discovered by the backend but are omitted from the interactive /skills dashboard and /env output.
The same invocation's non-interactive copilot skill list --json output includes the plugin skills with "source": "plugin" and "enabled": true. Startup diagnostics also report plugin skills loaded with no skill errors or warnings. This suggests the interactive views are using a different or stale skill registry.
Affected version
GitHub Copilot CLI 1.0.86-1
Steps to reproduce the behavior
- Create a local plugin such as
C:\temp\sample-pluginwith a rootplugin.jsoncontaining"skills": "skills/". - Add a valid skill at
skills/sample-skill/SKILL.mdwithnameanddescriptionfrontmatter. - Start an interactive session:
copilot --experimental --plugin-dir "C:\temp\sample-plugin" - Run
/envand/skills listin the interactive session. - In a separate terminal, run:
copilot --experimental --plugin-dir "C:\temp\sample-plugin" skill list --json - Observe that the non-interactive command lists the enabled plugin skill, while
/envand/skills listin the interactive session omit it.
Expected behavior
/env and /skills list should display every enabled plugin skill loaded into the interactive session, matching copilot skill list --json. Plugin-provided skills should also be available for explicit invocation.
Additional context
- Operating system: Windows 11 x64
- The plugin itself is listed as an enabled external plugin by
copilot plugin list. - Other plugin components load successfully.
- Skill diagnostics report no loading errors or warnings.
- This resembles earlier reports where plugin skills were usable or discovered internally but absent from the interactive skill inventory, but this reproduction uses an explicit local
--plugin-dirplugin.
Adding a related macOS reproduction. In this case the failure is not display-only: explicit skill lookup and custom-agent selection both stop working after startup.
Environment and scope
- macOS, Apple Silicon.
- CLI 1.0.85: confirmed delayed loss of all six local-plugin skills and all 11 local-plugin agents.
- An additional 1.0.86-2 comparison reproduced agent-selection failures; this is not a claim that every delayed check was repeated on that version.
- A fresh interactive session using an existing user profile, with a local plugin supplied via
--plugin-dir. The actual child-process arguments were checked, and the plugin directory and files remained present. - No custom skill-directory registration was used.
Observed sequence
- Startup discovers the local plugin. Early
/skills info <skill-name>checks succeed withSource: Plugin, and startup reports the plugin agents loaded. - Background session/plugin/capability refresh activity occurs.
- A delayed check, approximately 90 seconds after the interactive prompt becomes available, fails for every one of the six skills and 11 agents:
Error: Skill not found: <skill-name> Custom agent not found: <plugin-name>:<agent-name> - The plugin is absent from the affected interactive plugin catalog, while persistent/built-in entries remain visible.
The reproduction used inspection and agent-selection commands; no skill workflow execution was needed. The timing is an observation, not a claim that 90 seconds is a required or universal threshold. This was reproduced with an existing profile and other plugin/extension activity, not established as a minimal clean-profile reproduction.
Bounded diagnostic findings
- The on-disk plugin still parses successfully after the failure. Separately resolving the effective plugin set with the explicit directory supplied retains the plugin without warnings.
- In a diagnostic-only copy of the host, a session capability refresh that did not request a plugin-directory, working-directory, or configuration-discovery change supplied a replacement plugin inventory containing only the built-in
computer-useplugin. This dropped the previously loaded local plugin from session state. - An experimental JavaScript-layer preservation guard did not fix the failure: native state was still replaced outside that guarded assignment. The exact native write site and its ordering have not been established. That candidate was not installed as a fix.
- Negative controls matter: a provider-free SDK plugin reload and a same-client SDK resume retained all six skills. Those controls do not reproduce the interactive capability-refresh path.
This appears related to #4886, but I cannot confirm a shared root cause from the issue description alone. It also resembles the startup-versus-active-session discrepancy described in #4882 and #4883.
Could maintainers confirm whether active-session registration loss during capability refresh belongs here, or should be tracked separately? A regression test should verify that capability-only refreshes preserve explicit plugin registrations while still honoring explicit plugin removal/replacement and managed policy changes.
No raw logs, private plugin content, internal identifiers, user paths, credentials, or source-code excerpts are included.
Local plugin skills disappear when extensions attach in experimental mode
We hit this as well so adding more data on what we found in the repro in case it helps. It was impacting more then --plugin-dir paths on our machines.
Describe the bug
A local plugin skill works until a project extension attaches with joinSession.
The extension resume supplies installedPlugins with only the built-in computer-use plugin. The native session replaces its plugin inventory and invalidates plugin caches.
The interactive skill registry then loses the local plugin skill. /plugin list still shows the plugin. A separate copilot skill list --json process still shows the skill.
This failure reproduces with all three local plugin paths:
--plugin-dir- Interactive
/plugin install <local-path> copilot plugin install <local-path>
This overlaps #4886, but the failure is not limited to --plugin-dir.
Affected version
GitHub Copilot CLI 1.0.86
Build commit: 615005b5
The original report used Windows 11 ARM64. The isolated reproduction used Linux ARM64 with a test computer-use built-in entry.
Steps to reproduce the behavior
- Create this local plugin:
plugin/
├── plugin.json
└── skills/
└── three-path-repro/
└── SKILL.md
plugin.json:
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "three-path-skill-repro",
"description": "Minimal local plugin for skill registration tests.",
"version": "1.0.0"
}
skills/three-path-repro/SKILL.md:
---
name: three-path-repro
description: Return a fixed marker for local plugin skill registration tests.
user-invocable: true
---
Reply with exactly `THREE_PATH_REPRO_OK`.
- Create this project extension at
.github/extensions/repro-attach/extension.mjs:
import { joinSession } from "@github/copilot-sdk/extension";
await joinSession({
tools: [
{
name: "repro_attach_marker",
description: "Return a fixed extension marker.",
parameters: { type: "object", properties: {} },
handler: async () => "REPRO_EXTENSION_OK",
},
],
});
- Enable experimental extensions and the built-in
computer-useplugin. - Test each installation path in a new profile:
# Path 1
copilot --experimental --plugin-dir C:\path\to\plugin
# Path 2
copilot --experimental
/plugin install C:\path\to\plugin
# Path 3
copilot plugin install C:\path\to\plugin
copilot --experimental
- Wait for the project extension to attach.
- Run these commands:
/plugin list
/skills list
/skills info three-path-repro
/three-path-repro
The install command reports:
Plugin "three-path-skill-repro" installed successfully.
Installed 1 skill. Use /skills list to see them.
The later commands report:
Found 2 skills.
Error: Skill not found: three-path-repro
Unknown command: /three-path-repro
/plugin list still includes three-path-skill-repro. A separate copilot skill list --json command still includes three-path-repro.
Expected behavior
An extension resume without plugin replacement intent must preserve the session plugin inventory.
All three installation paths must keep the skill visible and invokable.
Workaround
Start Copilot CLI with --no-experimental.
This flag prevented the skill loss in the isolated reproduction. It disables extension attachment and avoids the faulty session.resume.
Additional context
The isolated negative controls passed:
| Plugin path | No built-in-only extension resume | Built-in-only extension resume |
|---|---|---|
--plugin-dir |
Skill works | Skill disappears |
/plugin install |
Skill works | Skill disappears |
copilot plugin install |
Skill works | Skill disappears |
The resume request in each failure contains:
{
"installedPlugins": [
{
"name": "computer-use",
"enabled": false
}
],
"builtinPlugins": ["computer-use"]
}
The native update plan reports:
{
"installedPluginsChanged": true,
"effects": [
"invalidate_plugin_caches",
"external_tool_definitions_updated"
]
}
For /plugin install, the first extension resume occurs before installation. Plugin installation reloads extensions. The second resume replaces the new plugin inventory and invalidates its caches.
PR github/copilot-agent-runtime#21747 addresses the --plugin-dir discovery tier. Its description excludes installed marketplace plugins. This reproduction also fails for persisted direct installations.
This appears to be resolved as of GitHub Copilot CLI v1.0.114. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.