Disable unregistered session types in session type picker#296974
Merged
Disable unregistered session types in session type picker#296974
Conversation
…egistered The session type picker now shows non-local session types as disabled in the dropdown when their provider is not yet registered. Uses getChatSessionContribution to check registration status. Local is always enabled as it's always registered. Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix broken background agent picker
Disable unregistered session types in session type picker
Feb 23, 2026
benibenj
approved these changes
Feb 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes an issue where non-local session types (Background, Cloud, etc.) appeared enabled in the session type picker even when their providers weren't registered yet, particularly on startup before extensions load. Clicking these unregistered session types had no effect, making the picker appear broken.
Changes:
- Modified
_isSessionTypeEnabled()inSessionTypePickerActionItemto check provider registration status before enabling non-local session types - Local session type remains always enabled since it has no external provider dependency
joaomoreno
approved these changes
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Non-local session types (Background, Cloud, etc.) were selectable in the session type picker even when their provider wasn't registered yet (e.g., on startup before extensions load). Selecting them had no effect, making the picker appear broken.
_isSessionTypeEnabledinSessionTypePickerActionItemnow checksgetChatSessionContribution(type)for non-local types, disabling items whose provider isn't registered yetOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.