Skip to content

agents: add exp settings for default agent selection#320896

Open
connor4312 wants to merge 3 commits into
mainfrom
agent-selector-exps
Open

agents: add exp settings for default agent selection#320896
connor4312 wants to merge 3 commits into
mainfrom
agent-selector-exps

Conversation

@connor4312

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 11, 2026 05:39

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.

Pull request overview

This PR introduces new experimental configuration settings to control the default chat provider selection and to hide/prefer certain agent providers across the VS Code chat picker and the Agents window session type picker.

Changes:

  • Adds new experimental settings for default provider selection (chat.editor.defaultProvider) and for hiding/prefering specific providers in the editor vs Agents window pickers.
  • Updates the VS Code chat session-target picker to filter out hidden providers and react to the new settings.
  • Updates the Agents window session type picker to filter available session types based on the new hiding/preference settings and tracks whether a stored selection was explicit vs implicit.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/constants.ts Adds new ChatConfiguration keys and updates default session-type resolution logic.
src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.ts Updates editor chat picker behavior to filter/hide entries based on new settings.
src/vs/sessions/contrib/chat/browser/sessionTypePicker.ts Filters Agents window session types based on new settings; extends stored preference shape.
src/vs/sessions/contrib/chat/browser/mobile/mobileSessionTypePicker.ts Wires configuration service into the mobile picker subclass.
src/vs/platform/agentHost/common/agentHost.config.contribution.ts Registers the new experimental configuration settings and their descriptions.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 4

Comment thread src/vs/workbench/contrib/chat/common/constants.ts
Comment thread src/vs/workbench/contrib/chat/common/constants.ts
Resolve the configured default session type for the New Chat Editor
actions instead of hardcoding a local session.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@connor4312 connor4312 marked this pull request as ready for review June 11, 2026 20:27
@connor4312 connor4312 enabled auto-merge (squash) June 11, 2026 20:27
# Conflicts:
#	src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts
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.

2 participants