Skip to content

feat(agentHost): implement custom agent picker and refactor related components#317719

Merged
DonJayamanne merged 4 commits into
mainfrom
don/moaning-aardvark
May 21, 2026
Merged

feat(agentHost): implement custom agent picker and refactor related components#317719
DonJayamanne merged 4 commits into
mainfrom
don/moaning-aardvark

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 21, 2026 07:36
@DonJayamanne DonJayamanne self-assigned this May 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Implements a dedicated custom agent picker for Agent Host sessions in the regular workbench chat UI, and refactors Agent Host “custom agents” helper logic so it can be shared across the workbench and Agents Window surfaces.

Changes:

  • Adds a workbench chat-input “Agent” chip/picker for Agent Host sessions (hidden in the Agents Window via context keys).
  • Introduces vs/platform/agentHost/common/customAgents.ts to share agent list + selection resolution utilities and updates call sites/tests accordingly.
  • Consolidates the shared footer menu id for the picker and updates sessions/workbench wiring to avoid duplicate UI.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Wires a new chat-input action view item to render/show the workbench custom agent picker.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomAgentPicker.ts Adds the new workbench custom agent picker UI and registers a footer “Configure Custom Agents…” action.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.ts Contributes OpenAgentHostCustomAgentPickerAction to MenuId.ChatInput for workbench-only rendering.
src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostAgents.test.ts Updates tests to use the new shared getEffectiveAgents helper.
src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostAgentPicker.test.ts Updates tests to use shared storage key + agent resolution helper API.
src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts Switches agent list computation to the shared platform helper.
src/vs/sessions/contrib/providers/agentHost/browser/agentHostAgents.ts Removes now-duplicated sessions-layer implementation of getEffectiveAgents.
src/vs/sessions/contrib/providers/agentHost/browser/agentHostAgentPicker.ts Uses shared helpers and imports the shared footer menu id from workbench code.
src/vs/platform/agentHost/common/customAgents.ts New shared helpers for computing effective agents + resolving selection + shared storage key.

Copilot's findings

  • Files reviewed: 9/9 changed files
  • Comments generated: 3

Comment thread src/vs/platform/agentHost/common/customAgents.ts Outdated
Comment thread src/vs/sessions/contrib/providers/agentHost/browser/agentHostAgentPicker.ts Outdated
DonJayamanne and others added 2 commits May 21, 2026 17:50
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: DonJayamanne <1948812+DonJayamanne@users.noreply.github.com>
@DonJayamanne DonJayamanne marked this pull request as ready for review May 21, 2026 09:07
@DonJayamanne DonJayamanne enabled auto-merge (squash) May 21, 2026 09:07
@DonJayamanne DonJayamanne merged commit c553898 into main May 21, 2026
25 checks passed
@DonJayamanne DonJayamanne deleted the don/moaning-aardvark branch May 21, 2026 10:37
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 21, 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.

4 participants