Open in Agents Window should be hideable#319119
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a user-toggleable visibility control for the "Open in Agents Window" title-bar button, addressing issue #319104 where the button could be mistaken for the minimize button. The change introduces a new boolean configuration chat.titleBar.openInAgentsWindow.enabled (default true), gates the title-bar menu contribution on that setting, and registers a context-menu toggle action consistent with the existing Copilot Sign In title-bar toggle pattern.
Changes:
- Add
ChatConfiguration.TitleBarOpenInAgentsWindowEnabledenum entry and its boolean configuration registration (defaulttrue). - Gate
OpenWorkspaceInAgentsWindowAction'sMenuId.TitleBarcontribution on the new setting. - Add and register
ToggleOpenInAgentsWindowTitleBarActionextending the sharedToggleTitleBarConfigActionhelper.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/common/constants.ts | New ChatConfiguration enum member for the title-bar setting. |
| src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts | Registers the new boolean configuration with default true. |
| src/vs/workbench/contrib/chat/electron-browser/agentSessions/agentSessionsActions.ts | Adds setting-based gate on the title-bar contribution and the new toggle action. |
| src/vs/workbench/contrib/chat/electron-browser/chat.contribution.ts | Registers the new toggle action. |
Copilot's findings
- Files reviewed: 4/4 changed files
- Comments generated: 0
dmitrivMS
approved these changes
May 30, 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.
Copilot Generated Description:Introduce a configuration option to toggle the visibility of the "Open in Agents Window" button in the title bar. Add a new action to handle this toggle functionality.closes #319104