Skip to content

Use host-published plugin children in Customizations - #350224

Merged
Martin Aeschlimann (aeschli) merged 6 commits into
mainfrom
aeschli/agents/copilot-sdk-issue-investigation
Nov 25, 2026
Merged

Martin Aeschlimann (aeschli) merged 6 commits into
mainfrom
aeschli/agents/copilot-sdk-issue-investigation

Conversation

@aeschli

Copy link
Copy Markdown
Contributor

Fixes #347955.

Scan plugin directories only for unpublished client drafts. For plugins in the session snapshot, use the host-published children (including an empty list); if children are absent, show the plugin's status without scanning. This preserves rules, agents, and hooks that the host discovered outside the client's fallback scan paths.

Validation:

  • pnpm run build-fast --client-only — passed.
  • ./scripts/test.sh --reporter dot --run src/vs/workbench/contrib/chat/test/browser/agentSessions/agentCustomizationItemProvider.test.ts --run src/vs/workbench/contrib/chat/test/browser/remoteAgentHost/remoteAgentHostCustomizationHarness.test.ts — 85 passed.
  • pnpm run typecheck-client — passed.
  • pnpm run oxlint src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.ts src/vs/workbench/contrib/chat/test/browser/agentSessions/agentCustomizationItemProvider.test.ts src/vs/workbench/contrib/chat/test/browser/remoteAgentHost/remoteAgentHostCustomizationHarness.test.ts — passed.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 18:58
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Base: beaa31d3 Current: 95dbf932

No screenshot changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Published customization handling loses source provenance and rule metadata, exposes non-user-invocable skills in slash-command completion, and drops distinct hook actions that share a file URI.

4 open issues
What changed in this PR

This PR updates Chat Customizations to use host-published plugin children, addressing missing instructions, agents, and hooks described in #347955.

Changes:

  • Uses published children, including empty lists, and limits directory scanning to unpublished client drafts.
  • Preserves child disablement while inheriting plugin status.
  • Adds published-child and status tests, and updates scanning tests to use drafts.
File Description
src/​vs/​workbench/​contrib/​chat/​test/​browser/​remoteAgentHost/​remoteAgentHostCustomizationHarness.test.ts Moves directory-scanning scenarios to unpublished drafts.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​agentSessions/​agentCustomizationItemProvider.test.ts Tests published children, inherited grouping, and status without scanning.
src/​vs/​workbench/​contrib/​chat/​browser/​agentSessions/​agentHost/​agentCustomizationItemProvider.ts Separates drafts from published plugins and projects host-provided children.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Published customizations drop plugin prompt commands and rule applicability metadata, while bundled default-chat extension items are incorrectly assigned User rather than Built-in scope.

3 open issues
4 resolved since last review

Review effort: Balanced

@aeschli
Martin Aeschlimann (aeschli) marked this pull request as ready for review November 24, 2026 21:27
@aeschli
Martin Aeschlimann (aeschli) added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 036980b Nov 25, 2026
37 checks passed
@aeschli
Martin Aeschlimann (aeschli) deleted the aeschli/agents/copilot-sdk-issue-investigation branch November 25, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copilot harness: Agent Plugins 1.0 instructions, custom agent, and plugin hooks are missing from Chat Customizations

4 participants