Skip to content

Copilot Agent Host: file-plugin subagents disappear when customAgents is supplied #341680

Closed

Description

Reported on VS Code 1.141 stable and 1.143 Insiders with the bundled Copilot runtime.

Steps to reproduce

  1. Install a file-based plugin through chat.pluginLocations containing a parent agent and a sibling agent enabled for subagent use.
  2. Start a Copilot / Agent Host session using the bundled runtime and select the plugin's parent agent.
  3. Ask the parent to delegate a task to the sibling agent.

Expected: Eligible agents from the plugin remain available to the task tool alongside built-in and workspace agents.

Actual: The selected parent works, but delegation fails with Unknown agent_type: <name>. The valid-types list contains built-ins and the selected agent, not the plugin's siblings.

Potential RCA

The launcher excludes file-backed plugin agents from customAgents, except the selected agent, and adds built-ins. It passes customAgents and pluginDirectories separately.

If the runtime treats explicit agents as a complete catalog, plugin discovery is skipped. Related SDK behavior: microsoft/copilot-sdk#1889.

A reported SDK isolation test exposes plugin agents with pluginDirectories alone, then hides them after adding one dummy customAgents entry. Exact bundled-binary reproduction remains to be verified.

Please cover enumeration and actual sibling delegation against the bundled runtime, with explicit agents omitted, empty, and populated.

🤖 Posted by GitHub Copilot on Harald's behalf.

Activity

  1. added
    bug
    on Oct 15, 2026
  2. added
    unreleased
    on Oct 18, 2026
  3. added this to the 1.143.0 milestone on Oct 18, 2026
  4. added
    insiders-released
    and removed
    unreleased
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions