Repository navigation
Sessions: remove the workspaces filter and filter row settings - #351259
Merged
Sandeep Somavarapu (sandy081) merged 3 commits intoNov 30, 2026
Merged
Conversation
The workspace bar now shows only in Inbox and filters the list only; it no longer scopes the window. A folder or multi-root window in Agents mode stays scoped to its own folder, which the user cannot change. - Remove sessions.list.workspacesFilter.enabled and sessions.list.filterChips.enabled, the filter-chips row, its CSS and the menu conditions that switched on it. Filter and search stay in the title. - Remove SessionsAgentsModeStartPick, which only seeded the bar shown in every grouping, and the `resumed` flag of the Agents mode will-change event, which only it read. - Update the tests of the removed code and SESSIONS_LIST.md. Co-authored-by: Copilot <[email protected]>
Contributor
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Toggling Find in the Chat view does not resize the list, causing clipped rows and scrollbar or unused space until another layout occurs.
1 open issue
What changed in this PR
Removes two experimental Sessions list settings and their supporting UI from the shared workbench and Agents window. Inbox filtering remains list-only, while folder windows in Agents mode retain a fixed workspace scope.
Changes:
- Remove the workspace-filter and filter-row settings, row UI, styles, and conditional menus.
- Keep Filter Sessions and Find Session in the title; simplify scope initialization and mode-change events.
- Update documentation, tests, and registration snapshots; remove the obsolete screenshot fixture.
| File | Description |
|---|---|
src/vs/workbench/services/configuration/test/browser/agents/agentsModeWorkspaceService.test.ts |
Remove tests for the retired resumed flag. |
src/vs/workbench/services/configuration/browser/agents/agentsModeWorkspaceService.ts |
Stop emitting resumed in mode-change events. |
src/vs/workbench/services/agentsMode/common/agentsMode.ts |
Simplify the mode-change event contract. |
src/vs/workbench/contrib/sessions/test/browser/views/sessionsWindowScopeController.test.ts |
Cover fixed scope and list-only Inbox filtering. |
src/vs/workbench/contrib/sessions/test/browser/editorWindow/editorWindowSessionsProvidersService.test.ts |
Remove obsolete setting combinations. |
src/vs/workbench/contrib/sessions/test/browser/editorWindow/agentsModeEditorHistory.test.ts |
Update mode-change event fixtures. |
src/vs/workbench/contrib/sessions/test/browser/chatViewSessionsListTitleActions.test.ts |
Update title-action expectations. |
src/vs/workbench/contrib/sessions/test/browser/chatView/chatViewSessionsList.contribution.test.ts |
Simplify provider-listing tests. |
src/vs/workbench/contrib/sessions/common/sessionConfig.ts |
Remove the filter-row setting constant. |
src/vs/workbench/contrib/sessions/common/chatConstants.ts |
Remove the workspace-filter setting alias. |
src/vs/workbench/contrib/sessions/browser/views/sessionsWindowScopeController.ts |
Remove editable window scoping and start-pick contribution. |
src/vs/workbench/contrib/sessions/browser/views/sessionsView.ts |
Remove filter-row integration and simplify Find handling. |
src/vs/workbench/contrib/sessions/browser/views/sessionsListFilters.ts |
Remove obsolete stored-pick helpers and options. |
src/vs/workbench/contrib/sessions/browser/views/sessionsListActions.ts |
Restore consistent title and filter-menu actions. |
src/vs/workbench/contrib/sessions/browser/views/sessionsList.ts |
Remove filter-row search and scope options. |
src/vs/workbench/contrib/sessions/browser/views/sessionsFilterRow.ts |
Delete the filter-row component. |
src/vs/workbench/contrib/sessions/browser/sessionsConfiguration.ts |
Remove both experimental setting definitions. |
src/vs/workbench/contrib/sessions/browser/media/sessionsViewPane.css |
Delete filter-row and search-hint styles. |
src/vs/workbench/contrib/sessions/browser/chatView/chatViewSessionsList.contribution.ts |
Remove start-pick contribution registration. |
src/vs/workbench/contrib/chat/test/browser/agentsMode.test.ts |
Update mode-change event fixtures. |
src/vs/workbench/contrib/chat/common/constants.ts |
Remove the workspace-filter configuration enum member. |
src/vs/sessions/SESSIONS_LIST.md |
Document Inbox-only filtering and fixed scope. |
src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts |
Remove filter-row tests and update menu expectations. |
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts |
Update search, scope, and reveal-message tests. |
src/vs/sessions/contrib/sessions/test/browser/sessionsList.fixture.ts |
Remove the experimental Grouping-menu fixture. |
src/vs/sessions/contrib/sessions/test/browser/pendingSessionsList.test.ts |
Remove chip-scope filtering coverage. |
src/vs/sessions/contrib/sessions/browser/sessions.contribution.ts |
Remove Agents-window setting registrations. |
src/vs/sessions/contrib/providers/agentHost/test/browser/agentsWindowRegistrations.snapshot.ts |
Update menu and configuration registration expectations. |
Review effort: Balanced
# Conflicts: # src/vs/sessions/SESSIONS_LIST.md # src/vs/sessions/contrib/sessions/browser/sessions.contribution.ts # src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts # src/vs/workbench/contrib/sessions/browser/sessionsConfiguration.ts # src/vs/workbench/contrib/sessions/browser/views/sessionsList.ts # src/vs/workbench/contrib/sessions/browser/views/sessionsView.ts # src/vs/workbench/contrib/sessions/browser/views/sessionsWindowScopeController.ts # src/vs/workbench/contrib/sessions/test/browser/views/sessionsWindowScopeController.test.ts
With the header in the view title, the header row shows only while Find is open, so the list must be laid out again on both transitions. Co-authored-by: Copilot <[email protected]>
Sandeep Somavarapu (sandy081)
marked this pull request as ready for review
November 30, 2026 18:35
Ulugbek Abdullaev (ulugbekna)
approved these changes
Nov 30, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 30, 2026
Sandeep Somavarapu (sandy081)
deleted the
sandy081/agents/agents-mode-cleanup
branch
November 30, 2026 19:28
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.

Removes two experimental Sessions list settings and the code that only existed for them.
What's removed and why
sessions.list.workspacesFilter.enabled: showed the workspace and environment bar in every grouping and let its pick scope the window. The bar now shows only in Inbox, and only whilesessions.list.inboxWorkspacesFilter.enabled(from sessions: hide the workspace and environment filters in Inbox by default #351162, off by default) is on; it filters the list only. The accessibility help of the Agents window and of the Chat view's sessions list now follows that setting alone.sessions.list.filterChips.enabled: the separate filter row with workspace and environment pills, filters and inline search. The row, its CSS and the menu conditions that switched on it are removed; Filter Sessions and Find Session stay in the view title.SessionsAgentsModeStartPickand theresumedflag of the Agents mode will-change event: they only seeded the bar's pick as a window entered Agents mode while the bar showed in every grouping, which no longer happens.SESSIONS_LIST.mdis updated to match.A folder or multi-root window in Agents mode (and an empty window opened in the mode for a folder) keeps a fixed pick on its own folder, as it does today with the workspaces filter off, which is the default.
User-visible change
Only for users who turned either setting on:
sessions.list.inboxWorkspacesFilter.enabledon) and no longer scopes the window (Agents window, empty windows, Agents-mode windows).Not in this PR (intentionally)
Kept because the Agents mode toggle still relies on them:
agentsModeScope/startScope).Validation
mainand pass here (insessionsWindowScopeController.test.ts): the bar never scopes the Agents window or empty windows, also with the removed setting still on; a folder window in Agents mode stays fixed on its own folder, also with the removed setting still on.editorWindowSessionsList.test.ts): opening and closing Find lays out the list again after updating the header.resumed, settings), the Agents window registrations snapshot is updated, and the filter row's screenshot fixture is removed (it had no committed baseline).Commands (all with
set -o pipefail):pnpm run build-fast --client-only: passedpnpm run typecheck-client: passedpnpm run valid-layers-check: passedpnpm run check-cyclic-dependencies: passedpnpm run oxlint <29 changed .ts files>: passed./scripts/test.sh --runfor 15 affected suites (sessionsWindowScopeController, sessionsListFilters, chatViewSessionsList.contribution, chatViewSessionsListTitleActions, editorWindowSessionsProvidersService, editorWindowSessionsList, agentsModeEditorHistory, agentsMode, agentsModeService, agentsModeWorkspaceService, sessionsList, sessionsViewMenu, pendingSessionsList, sessionsChatAccessibilityHelp, agentsWindowRegistrations): 992 passingmainand the Find fix.Written by GitHub Copilot on behalf of Sandeep Somavarapu (@sandy081)