Add 'Open in Agents' action and titlebar widget enhancements#312111
Merged
mrleemurray merged 26 commits intomainfrom Apr 23, 2026
Merged
Add 'Open in Agents' action and titlebar widget enhancements#312111mrleemurray merged 26 commits intomainfrom
mrleemurray merged 26 commits intomainfrom
Conversation
…t and color transition on hover/focus
…r open new window based on environment
…oard accessibility and focus handling Co-authored-by: Copilot <copilot@github.com>
… item handling Co-authored-by: Copilot <copilot@github.com>
…ndling Co-authored-by: Copilot <copilot@github.com>
…consistency Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
…r improved clarity and consistency Co-authored-by: Copilot <copilot@github.com>
…ved tooltip handling Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “Open in Agents” command surfaced in the desktop titlebar, plus plumbing to support custom titlebar action rendering and a new leading actions group (before layout controls).
Changes:
- Introduces
workbench.action.openInAgents, a titlebar widget renderer, telemetry, and a backing configuration toggle. - Extends titlebar action rendering to support a “leading” group and custom
IActionViewItemService-provided view items. - Wires
IActionViewItemServicethrough browser + native titlebar parts and adds widget styling via a new CSS file.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/electron-browser/parts/titlebar/titlebarPart.ts | Passes IActionViewItemService through native titlebar part constructors. |
| src/vs/workbench/electron-browser/desktop.contribution.ts | Ensures the new action module is loaded on desktop. |
| src/vs/workbench/electron-browser/actions/openInAgentsAction.ts | Adds the action, titlebar widget, telemetry, toggle action, and configuration registration. |
| src/vs/workbench/electron-browser/actions/media/openInAgents.css | Provides styling for the titlebar widget (icon, hover/focus, quality tinting). |
| src/vs/workbench/browser/parts/titlebar/titlebarPart.ts | Adds IActionViewItemService support + renders a new leading TitleBar group before layout controls. |
| src/vs/workbench/browser/parts/titlebar/titlebarActions.ts | Defines TitleBarLeadingActionsGroup for “before layout controls” actions. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…dget for cleaner implementation Co-authored-by: Copilot <copilot@github.com>
…and correct localization key for the label Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
jrieken
previously approved these changes
Apr 23, 2026
…ext and improve AI features handling Co-authored-by: Copilot <copilot@github.com>
…y restrictions for stable builds Co-authored-by: Copilot <copilot@github.com>
roblourens
previously approved these changes
Apr 23, 2026
osortega
reviewed
Apr 23, 2026
…xt for AI features Co-authored-by: Copilot <copilot@github.com>
…based on user signals and workspace trust Co-authored-by: Copilot <copilot@github.com>
osortega
approved these changes
Apr 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.
This pull request introduces the "Open in Agents" button to the VS Code title bar, allowing users to quickly launch the Agents application for their current workspace. The implementation includes a new titlebar widget, action, configuration setting, and supporting styles, as well as infrastructure changes to support custom titlebar actions. The changes are organized into two main themes: feature implementation and titlebar infrastructure enhancements.
Screen.Recording.2026-04-23.at.11.43.28.mov
Feature: "Open in Agents" Button
Open in Agentstitlebar widget, rendered as an icon-only button that expands on hover/focus, with custom styling and accessibility support. The widget launches the Agents app as a sibling application if available, or opens a new in-process window otherwise. [1] [2]workbench.openInAgents.enabled), and included telemetry for usage tracking.Titlebar Infrastructure Enhancements
TitleBarLeadingActionsGroupto allow certain actions (like "Open in Agents") to appear before layout controls in the title bar, and updated the action filling logic to support this group. [1] [2] [3]IActionViewItemService, enabling injection of custom widgets like the new "Open in Agents" button.IActionViewItemServiceas a dependency, ensuring custom action view items can be provided. [1] [2] [3] [4] [5] [6]These changes collectively enable a more flexible and extensible title bar, while providing users with a convenient entry point to the Agents application.