Skip to content

Indicate when all sessions are filtered hidden (fix #296581)#298979

Merged
bpasero merged 5 commits intomainfrom
ben/modest-swordtail
Mar 3, 2026
Merged

Indicate when all sessions are filtered hidden (fix #296581)#298979
bpasero merged 5 commits intomainfrom
ben/modest-swordtail

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Mar 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 15:08
@bpasero bpasero self-assigned this Mar 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the Agent Sessions viewer UX by showing an explicit message when the sessions list becomes empty due to active filtering, and offering a “Clear Filters” action (fixing #296581).

Changes:

  • Extend IAgentSessionsFilter with isDefault() and reset() to support UI-driven filter reset and “filter active” detection.
  • Add a onDidGetChildren event to AgentSessionsDataSource and use it in AgentSessionsControl to toggle an empty-results message when filtering hides all sessions.
  • Update styling and unit tests to align with the new filter/data source behavior and disposal requirements.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

File Description
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts Extends filter API and makes the data source disposable with an event to report filtered child counts.
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.ts Adds and toggles an “empty due to filter” message with a “Clear Filters” action.
src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css Styles the new empty-filter message and its action link.
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentSessionsDataSource.test.ts Updates mocks/disposal to match the new IAgentSessionsFilter and disposable data source.

bpasero and others added 2 commits March 3, 2026 16:27
…tsessionsviewer.css

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

…onsControl.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Mar 3, 2026

@bpasero I've opened a new pull request, #298987, to work on those changes. Once the pull request is ready, I'll request review from you.

@bpasero bpasero merged commit fda9390 into main Mar 3, 2026
30 of 31 checks passed
@bpasero bpasero deleted the ben/modest-swordtail branch March 3, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants