agent sessions - polish for chat view integration#279448
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds polish for integrating agent sessions into the chat view pane, implementing UI improvements and filtering capabilities to display a curated list of active sessions. The changes enable the chat view to show a limited set of relevant sessions (non-archived, with requests) with proper focus management and styling.
- Added session limiting functionality to show only the top 3 most recent sessions
- Implemented filtering to exclude archived sessions and empty sessions from the chat view
- Enhanced UI with flex-grow layout and rounded borders for better visual integration
- Added focus clearing to improve user experience during empty state transitions
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/media/chatViewPane.css | Updated styling for agent sessions container with flex-grow, padding, and border-radius for list rows |
| src/vs/workbench/contrib/chat/browser/chatViewPane.ts | Added clearFocus call on empty state change and implemented session filtering with limitResults set to 3, excluding archived sessions and sessions without requests |
| src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts | Extended IAgentSessionsFilter interface with optional limitResults property and updated AgentSessionsDataSource to accept sorter and implement sorting/limiting logic |
| src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.ts | Refactored sorter instantiation to reuse same instance in both data source and tree options, and added clearFocus method to clear focus and selection |
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
justschen
approved these changes
Nov 25, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.