Skip to content

Conversation

@benibenj
Copy link
Contributor

@benibenj benibenj commented Jan 12, 2026

Copilot Generated Description: Introduce a new chat input picker and session target picker actions, along with necessary UI updates and styling changes. Update relevant imports and class names to reflect the new picker functionality.

#284091

Copilot AI review requested due to automatic review settings January 12, 2026 17:51
@benibenj benibenj self-assigned this Jan 12, 2026
@benibenj benibenj changed the title Add chat input picker and session target picker actions Add Session target picker actions Jan 12, 2026
@benibenj
Copy link
Contributor Author

Code_-_Insiders_XYi8RIJ1Fm.mp4

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 pull request introduces a session target picker for the chat interface, enabling users to switch between different chat session types (Local, Background, Cloud). The PR also refactors code to use a more generic naming convention for input picker components.

Changes:

  • Adds SessionTargetPickerActionItem class and OpenSessionTargetPickerAction to allow users to select chat session targets
  • Renames CSS classes from chat-modelPicker-* to chat-input-picker-* for consistency across all picker types
  • Refactors session opening logic into reusable helper functions to eliminate code duplication

Reviewed changes

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

Show a summary per file
File Description
src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css Updates CSS class name from chat-modelPicker-item to chat-input-picker-item
src/vs/workbench/contrib/chat/browser/widget/media/chat.css Renames CSS classes to use generic chat-input-picker naming and adds disabled state styling for picker items
src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.ts New file implementing the session target picker UI component
src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.ts Updates CSS class references to use new chat-input-picker naming
src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.ts Updates CSS class references to use new chat-input-picker naming
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Integrates session target picker widget and updates imports
src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.ts Adds dynamic action registration for session providers and refactors duplicate session opening code into shared helper functions
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.ts Adds getAgentSessionProvider helper function to convert URI or string to AgentSessionProviders enum
src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.ts Adds OpenSessionTargetPickerAction and exports OpenModelPickerAction class

@benibenj benibenj marked this pull request as ready for review January 13, 2026 23:33
@vs-code-engineering
Copy link

vs-code-engineering bot commented Jan 13, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@jrieken

Matched files:

  • src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css

@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 13, 2026
bpasero
bpasero previously approved these changes Jan 14, 2026
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

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

@benibenj the one feedback I would have is that if the picker is disabled, maybe it should just shrink to only showing the icon and on hover you get some more info why its disabled? It could also shout out to the keybinding for how to create a new Chat of the same type.

@benibenj benibenj merged commit 49cb356 into main Jan 14, 2026
22 checks passed
@benibenj benibenj deleted the benibenj/ideal-mite branch January 14, 2026 09:00
eli-w-king pushed a commit that referenced this pull request Jan 14, 2026
* first round

* icons

* nits

* Agent type picker and improved new chat actions

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
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