Skip to content

Sessions: remove the workspaces filter and filter row settings - #351259

Merged
Sandeep Somavarapu (sandy081) merged 3 commits into
mainfrom
sandy081/agents/agents-mode-cleanup
Nov 30, 2026
Merged

Sandeep Somavarapu (sandy081) merged 3 commits into
mainfrom
sandy081/agents/agents-mode-cleanup

Conversation

@sandy081

@sandy081 Sandeep Somavarapu (sandy081) commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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 while sessions.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.
  • SessionsAgentsModeStartPick and the resumed flag 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.md is updated to match.
  • Find layout: opening or closing Find lays out the list again, since with the header in the view title the header row shows only while Find is open.

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:

  • No filter row: filter and search are back in the Sessions view title.
  • The workspace bar shows only in Inbox (with sessions.list.inboxWorkspacesFilter.enabled on) and no longer scopes the window (Agents window, empty windows, Agents-mode windows).
  • In Agents mode, a folder window always stays on its own folder; revealing a session outside it now says to leave Agents mode instead of pointing to the removed setting.

Not in this PR (intentionally)

Kept because the Agents mode toggle still relies on them:

  • "Open in New Window" on a row in Agents mode opening an empty window scoped to that row (agentsModeScope / startScope).
  • Layout switching as a window enters or leaves Agents mode.
  • Per-window Agents mode memory across reload and restart.

Validation

  • Tests that fail on main and pass here (in sessionsWindowScopeController.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.
  • Test that fails without the Find fix and passes with it (in editorWindowSessionsList.test.ts): opening and closing Find lays out the list again after updating the header.
  • Tests of removed code are deleted or updated (filter row, start pick, 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: passed
  • pnpm run typecheck-client: passed
  • pnpm run valid-layers-check: passed
  • pnpm run check-cyclic-dependencies: passed
  • pnpm run oxlint <29 changed .ts files>: passed
  • ./scripts/test.sh --run for 15 affected suites (sessionsWindowScopeController, sessionsListFilters, chatViewSessionsList.contribution, chatViewSessionsListTitleActions, editorWindowSessionsProvidersService, editorWindowSessionsList, agentsModeEditorHistory, agentsMode, agentsModeService, agentsModeWorkspaceService, sessionsList, sessionsViewMenu, pendingSessionsList, sessionsChatAccessibilityHelp, agentsWindowRegistrations): 992 passing
  • Independent code review on a different model: no findings, on the original change and again on the merge of main and the Find fix.

Written by GitHub Copilot on behalf of Sandeep Somavarapu (@sandy081)

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]>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 17:18
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: b755f682 Current: 0354d625

Removed (1)

sessions/sessionsList/SessionsList_GroupingMenu/Light

baseline

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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]>
@sandy081
Sandeep Somavarapu (sandy081) marked this pull request as ready for review November 30, 2026 18:35
@sandy081
Sandeep Somavarapu (sandy081) added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 6830613 Nov 30, 2026
53 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/agents/agents-mode-cleanup branch November 30, 2026 19:28
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