Fix chat pickers not opening in auxiliary windows#305047
Closed
Fix chat pickers not opening in auxiliary windows#305047
Conversation
… window support When the ActionWidgetService shows a picker without an explicit container, it now derives the container from the anchor element's window via ILayoutService.getContainer(). This ensures pickers (model picker, mode picker, etc.) render in the correct window when used in auxiliary windows, fixing the issue where chat pickers in new windows failed to open. Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/d6150146-30eb-4c8e-a86d-9417a253dd3e Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issue with chats in new windows not opening any pickers
Fix chat pickers not opening in auxiliary windows
Mar 26, 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.
Chat pickers (model, mode, context, etc.) fail to open when a chat editor is in an auxiliary window. The
ActionWidgetService.show()always receivesundefinedfor the container parameter, causingContextViewServiceto fall back tolayoutService.activeContainer— which may not resolve to the correct window at call time.ILayoutServiceintoActionWidgetServiceHTMLElement, derive the container from the anchor's window vialayoutService.getContainer(getWindow(anchor))This ensures the context view is always parented to the same window as the clicked element.
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.