-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Add Session target picker actions #287143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Code_-_Insiders_XYi8RIJ1Fm.mp4 |
There was a problem hiding this 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
SessionTargetPickerActionItemclass andOpenSessionTargetPickerActionto allow users to select chat session targets - Renames CSS classes from
chat-modelPicker-*tochat-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 |
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: @jriekenMatched files:
|
bpasero
left a comment
There was a problem hiding this 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.
* first round * icons * nits * Agent type picker and improved new chat actions --------- Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
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