Skip to content

Hide models contributed by background agents#295669

Merged
DonJayamanne merged 3 commits intomainfrom
don/glad-chipmunk
Feb 17, 2026
Merged

Hide models contributed by background agents#295669
DonJayamanne merged 3 commits intomainfrom
don/glad-chipmunk

Conversation

@DonJayamanne
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 17, 2026 00:18
@DonJayamanne DonJayamanne self-assigned this Feb 17, 2026
Copy link
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

This PR aims to hide language models that are contributed for specific (background/contributed) chat session types from general UX surfaces, so users only see “general” models unless they are in the appropriate session context.

Changes:

  • Filter prompt-header model autocompletions to exclude models with targetChatSessionType.
  • Add a canManageModels() capability to the model picker delegate and use it to conditionally show model-management actions in the picker’s action bar.
  • Wire the new delegate capability in ChatInputPart.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.ts Excludes session-targeted models from prompt header model completions.
src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.ts Adds canManageModels() to the delegate and gates the picker action bar provider.
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Implements canManageModels() for the picker delegate based on current session type.

@DonJayamanne DonJayamanne marked this pull request as ready for review February 17, 2026 09:24
@DonJayamanne DonJayamanne enabled auto-merge (squash) February 17, 2026 09:24
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 17, 2026
@DonJayamanne DonJayamanne merged commit aae3af1 into main Feb 17, 2026
18 checks passed
@DonJayamanne DonJayamanne deleted the don/glad-chipmunk branch February 17, 2026 09:34
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