Agents: Refactor SessionsView UI and improve action order#311330
Merged
mrleemurray merged 4 commits intomainfrom Apr 20, 2026
Merged
Agents: Refactor SessionsView UI and improve action order#311330mrleemurray merged 4 commits intomainfrom
mrleemurray merged 4 commits intomainfrom
Conversation
Co-authored-by: Copilot <copilot@github.com>
…get close button size with toolbar actions Co-authored-by: Copilot <copilot@github.com>
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors the SessionsView header actions to improve UI consistency and action ordering in the Agents Sessions window (vs/sessions), including a small styling tweak to better align the find widget close button with toolbar actions.
Changes:
- Reorders header toolbar actions so Filter appears before Search/Find.
- Extracts the “New Session” header button creation into a dedicated helper for cleaner SessionsView construction.
- Adjusts CSS to size the find widget close action to match header toolbar button dimensions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts | Reorders SidebarSessionsHeader menu items so Filter precedes Find. |
| src/vs/sessions/contrib/sessions/browser/views/sessionsView.ts | Extracts/places the “New” session button before the menu-driven toolbar to achieve intended visual order. |
| src/vs/sessions/contrib/sessions/browser/media/sessionsViewPane.css | Tweaks find widget close action sizing to align with toolbar action button sizing. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
aiday-mar
approved these changes
Apr 20, 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 refactors and improves the Sessions View header in both functionality and visual consistency. The main changes include extracting the "New Session" button logic into a dedicated method for better code organization, updating the header action order, and refining the appearance of the find widget's close button to match other toolbar buttons.
UI/UX Improvements:
sessionsViewPane.css).Code Refactoring & Organization:
createNewSessionButton, simplifying the main constructor and improving maintainability (sessionsView.ts).sessionsView.ts).Menu and Action Ordering:
sessionsViewActions.ts).