Skip to content

agents: add exp settings for default agent selection - #320896

Merged
Sandeep Somavarapu (sandy081) merged 5 commits into
mainfrom
agent-selector-exps
Jun 12, 2026
Merged

Sandeep Somavarapu (sandy081) merged 5 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

Resolve the configured default session type for the New Chat Editor
actions instead of hardcoding a local session.

Co-authored-by: Copilot <[email protected]>
@connor4312
Connor Peet (connor4312) marked this pull request as ready for review June 11, 2026 20:27
@connor4312
Connor Peet (connor4312) enabled auto-merge (squash) June 11, 2026 20:27
# Conflicts:
#	src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts
@sandy081

Copy link
Copy Markdown
Member

I am looking at this PR and merge it when it is ready

# Conflicts:
#	src/vs/sessions/contrib/chat/browser/sessionTypePicker.ts
#	src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts
@sandy081

Copy link
Copy Markdown
Member

This PR is ready to merge

const defaultType = getDefaultNewChatSessionType(accessor.get(IConfigurationService), accessor.get(IChatSessionsService));
return defaultType === localChatSessionType
? LocalChatSessionUri.getNewSessionUri()
: URI.from({ scheme: defaultType, path: `/untitled-${generateUuid()}` });

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can't be right? We've been trying to get rid of the /untitled- Uris

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do not know how chat and session types are managed in editor window.

cc Connor Peet (@connor4312) who originated this change

@sandy081
Sandeep Somavarapu (sandy081) merged commit 55d4342 into main Jun 12, 2026
25 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the agent-selector-exps branch June 12, 2026 15:04
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants