agentHost: enable SDK skill installation by pwang347 · Pull Request #340762 · microsoft/vscode · GitHub
Skip to content

agentHost: enable SDK skill installation - #340762

Merged
Paul (pwang347) merged 2 commits into
mainfrom
copilot/sdk-skill-install-flags
Oct 13, 2026
Merged

Paul (pwang347) merged 2 commits into
mainfrom
copilot/sdk-skill-install-flags

Conversation

@pwang347

Copy link
Copy Markdown
Contributor

Follow-up to #339896.

Summary

Agent Finder now returns materialized Skills through the SDK, but VS Code sessions did not enable the runtime gates required to install them. This change:

  • enables CATALOG_SEARCH and AGENT_FINDER_SKILL_INSTALL for the hidden customization policy session
  • enables the same flags for normal create and resume sessions, because marketplace operations can use an existing visible session
  • keeps discovery, installation receipts, recovery, and uninstall owned by the SDK/runtime

This does not add a VS Code setting or policy. Model-visible catalog tools remain separately gated by DISCOVER_RESOURCES.

Validation

  • Passed: ./scripts/test.sh --reporter dot --run src/vs/platform/agentHost/test/node/copilotSessionLauncher.test.ts
  • Passed: targeted launcher/auth coverage in copilotSessionLauncher.test.ts and copilotAgent.test.ts (100 tests)
  • Passed (268 tests): ./scripts/test-integration.sh --run src/vs/platform/agentHost/test/node/e2e/providers/copilotAgentHostE2E.integrationTest.ts
  • Passed: npm run typecheck-client
  • Passed: changed-file ESLint
  • Passed: npm run hygiene
  • Passed: npm run valid-layers-check
  • Passed: Dev UI lifecycle with an isolated COPILOT_HOME: search for an installable Skill, review and install through the SDK, verify receipt-owned installed state, then uninstall through the SDK (2/2)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 9, 2026 16:49

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.

🟢 Approval recommended

The focused implementation consistently enables the required runtime gates and includes appropriate regression coverage.

0 open findings

What changed in this PR

Enables SDK-managed Skill discovery and installation in Agent Host sessions.

Changes:

  • Enables catalog search and Skill installation flags for hidden, created, and resumed sessions.
  • Updates launcher and agent tests to verify the flags.
File Description
copilotSessionLauncher.ts Adds required SDK feature flags.
copilotSessionLauncher.test.ts Verifies flags across session configurations.
copilotAgent.test.ts Updates connector-session expectations.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pwang347
Paul (pwang347) marked this pull request as ready for review October 13, 2026 03:22
@pwang347
Paul (pwang347) enabled auto-merge (squash) October 13, 2026 03:22
@pwang347
Paul (pwang347) merged commit f80e974 into main Oct 13, 2026
55 of 56 checks passed
@pwang347
Paul (pwang347) deleted the copilot/sdk-skill-install-flags branch October 13, 2026 03:35
@vs-code-engineering vs-code-engineering Bot added this to the 1.143.0 milestone Oct 13, 2026
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.

3 participants