sessions: Update title bar actions and styles for improved navigation#307538
Merged
sessions: Update title bar actions and styles for improved navigation#307538
Conversation
Reorganize the title bar session toolbar for better grouping and navigation: - Reorder toolbar actions: Run Script (8), Open in VS Code (9), Open Terminal (10), Changes toggle (11) - Show Open in VS Code button for all sessions, disabled when no worktree is available (uses existing precondition instead of a separate placeholder action) - Move separator from between toolbar containers to between session actions (Run, VS Code) and fixed toggles (Terminal, Changes) using a broader CSS selector for vscode icon variants - Rename 'Add' category to 'Tasks' in the run script dropdown - Add unit test for run dropdown menu contribution Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Reorganizes the Agent Sessions title bar session toolbar to improve action grouping and navigation, including updates to action ordering, styling separators, and a small labeling tweak in the Run dropdown, plus a new unit test to validate menu contribution order.
Changes:
- Reordered
TitleBarSessionMenuactions to: Run (8) → Open in VS Code (9) → Open Terminal (10) → Changes (11), and adjusted relatedwhenclauses. - Moved the visual separator from between toolbar containers to within the session actions toolbar (between VS Code and Terminal).
- Renamed the Run dropdown category header from “Add” to “Tasks” and added a unit test asserting the Run submenu is contributed at order 8.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/vs/sessions/browser/parts/media/titlebarpart.css | Removed the previous inter-container separator styling. |
| src/vs/sessions/contrib/changes/browser/changesTitleBarWidget.ts | Updated Changes toggle action order to 11. |
| src/vs/sessions/contrib/changes/browser/media/changesTitleBarWidget.css | Added an intra-toolbar separator after the VS Code action. |
| src/vs/sessions/contrib/chat/browser/chat.contribution.ts | Reordered “Open in VS Code” to order 9 and made it always visible (disabled via precondition). |
| src/vs/sessions/contrib/chat/browser/runScriptAction.ts | Renamed dropdown category label to “Tasks” and updated related comments/usages. |
| src/vs/sessions/contrib/terminal/browser/sessionsTerminalContribution.ts | Reordered Terminal action to order 10 and adjusted import ordering. |
| src/vs/sessions/contrib/chat/test/browser/runScriptAction.test.ts | Added unit test verifying Run submenu contribution/order in TitleBarSessionMenu. |
dmitrivMS
approved these changes
Apr 3, 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.
Reorganize the title bar session toolbar for better grouping and navigation.
Changes
IsActiveSessionBackgroundProviderContextfrom the menuwhenclause so the Open in VS Code button is visible for all session types, but disabled when no worktree is available (via the existingprecondition). This avoids a hacky placeholder action.[class*="codicon-vscode"]) for resilience across icon variants.TitleBarSessionMenuat order 8.Files changed
titlebarpart.csschangesTitleBarWidget.tschangesTitleBarWidget.csschat.contribution.tswhenguard so it stays visible but disabledrunScriptAction.tssessionsTerminalContribution.tsrunScriptAction.test.ts