Skip to content

Configure Custom Agent picker shows agents unavailable in Copilot harness #332333

Description

  • Copilot Chat Extension Version: 0.64.0 (dev)
  • VS Code Version: 1.135.0-insider (0052619, arm64)
  • OS Version: macOS 15.7.9
  • Feature: Copilot harness agent picker
  • Selected model: N/A
  • Logs: N/A

Steps to Reproduce:

  1. Use the Copilot harness.
  2. Open the Agent dropdown.
  3. Invoke Configure Custom Agent....
  4. Inspect the agents listed in the quick pick.

Actual:

The picker includes provider-backed agents that are not available to Copilot, including Ask, Explore, and Plan.

Explore is also explicitly contributed with user-invocable: false, but still appears in this configuration picker.

Expected:

The picker should only contain custom agents that are available to and configurable for the active Copilot harness. Agents that the harness cannot expose or invoke should be filtered out.

Screenshot:

Configure Custom Agent picker showing unavailable agents

Source context:

The Copilot extension registers AskAgentProvider, PlanAgentProvider, and ExploreAgentProvider with vscode.chat.registerCustomAgentProvider in extensions/copilot/src/extension/agents/vscode-node/promptFileContrib.ts. The quick pick appears to enumerate these provider-backed agents without accounting for their availability in the active harness.

Metadata

Metadata

Labels

insiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions