Repository navigation
sessions: add Inbox workspace and environment filters - #347484
Conversation
Filter every Inbox category, including pinned sessions, by an exact workspace and execution environment. Reuse New Session-style dropdowns, preserve scope across reloads, and keep On hold flat. Co-authored-by: Copilot <[email protected]>
Screenshot ChangesBase: Added (7) |
There was a problem hiding this comment.
🟡 Changes recommended
Scoped comparison summaries still include hidden attempts, and both dropdowns fail to expose their selected option to assistive technology.
2 open issues
What changed in this PR
Adds persistent workspace and environment filters to the Agents Window Inbox, reusing New Session-style dropdowns. Automations remain unscoped, with that work deferred to #347482.
Changes:
- Applies scope across all Inbox categories while keeping filtered-out conversations open.
- Removes On hold workspace subgroups and preserves ordinary filtering outside Inbox.
- Adds keyboard handling, accessibility help, regression tests, and themed fixtures.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/test/browser/views/sessionsListFilters.test.ts |
Tests scope identity, persistence, reset, and metadata hydration. |
src/vs/workbench/contrib/sessions/browser/views/sessionsView.ts |
Integrates scope controls and adjusts filter menus. |
src/vs/workbench/contrib/sessions/browser/views/sessionsListFilters.ts |
Implements scope matching and persistence. |
src/vs/workbench/contrib/sessions/browser/views/sessionsList.ts |
Applies scope to rows and comparisons; removes On hold subgroups. |
src/vs/workbench/contrib/sessions/browser/views/sessionsInboxScope.ts |
Adds workspace and environment dropdown controls. |
src/vs/workbench/contrib/sessions/browser/media/sessionsViewPane.css |
Styles the scope controls. |
src/vs/workbench/contrib/sessions/browser/chat/sessionEnvironmentPicker.ts |
Exports shared environment-picker options. |
src/vs/sessions/SESSIONS_LIST.md |
Documents scope behavior and grouping changes. |
src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts |
Tests picker interaction, focus, and menu behavior. |
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts |
Tests category filtering, hydration, and comparison scope. |
src/vs/sessions/contrib/sessions/test/browser/sessionsInboxScope.fixture.ts |
Adds themed fixtures for scope states and dropdowns. |
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts |
Documents scope controls and keyboard navigation. |
Review effort: Balanced
<!-- Thank you for submitting a Pull Request. Please: * Read our Pull Request guidelines: https://github.com/microsoft/vscode/wiki/How-to-Contribute#pull-requests * Associate an issue with the Pull Request. * Ensure that the code is up-to-date with the `main` branch. * Include a description of the proposed changes and how to test them. --> Follow-up to #347484. ## Summary - Remove the decorative chevrons from the workspace and environment pickers above Inbox to match the New Session composer. - Keep the leading icons, labels, dropdown behavior, keyboard activation, and accessibility attributes unchanged. - Extend the existing regression test to verify neither picker renders a chevron. ## How to test 1. Switch the Sessions list to Inbox Mode. 2. Verify both pickers show their leading icon and label without a trailing chevron. 3. Open and select from each picker with the mouse and keyboard; verify filtering and focus restoration still work. ## Validation - `corepack pnpm run gulp compile-client` - passed with zero compilation errors. - `./scripts/test.sh --reporter dot --run src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts --run src/vs/workbench/contrib/sessions/test/browser/views/sessionsListFilters.test.ts --grep 'Inbox scope'` - passed, 7 tests. - `corepack pnpm run eslint src/vs/workbench/contrib/sessions/browser/views/sessionsInboxScope.ts src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts` - passed. - `git diff --check` - passed. The new assertion failed before the fix (two chevrons) and passes after it (zero). Full-suite and manual visual checks were not run.
|
Megan Rogge (@meganrogge), a heads-up: main CI has been red since this merged, and this PR is one of the suspects. We haven't confirmed it yet. What fails: in 495093 ( Why this PR is on the list: it's the only change in What we don't know yet: the PR's own CI passed, but it runs only affected tests across 4 workers, while main runs the full suite in one renderer.
Timing: the 05:00 UTC releasing insider will include these commits. If the bisect points here, your fix goes first. A revert is staged as a fallback, and it'll go up for approval around 03:30 UTC if no fix lands by then.
|
|
An update to my note above: a local repro now points away from this PR. Running all of
|

Fixes #347488.
Summary
Follow-up to #347385.
Scope boundary and deferred Automations work
These pickers scope Inbox sessions only. They do not scope the Automations catalog or change any automation's workspace, execution environment, schedule, or enabled state.
The Automations entry remains in its existing position below the controls, which can suggest that it is already scoped. Making Automations follow the selected workspace/environment is intentionally deferred and is not part of this PR.
The pickers also do not change the New Session composer's destination or connect remote hosts. Choose All Workspaces and All Environments to clear scope; there is no separate Reset Scope button.
How to test
Validation
After rebasing onto latest main:
corepack pnpm run gulp compile-client— passed, zero compilation/type errors.The following focused regression selection — 7 passed:
./scripts/test.sh --reporter dot \ --run src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts \ --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts \ --run src/vs/workbench/contrib/sessions/test/browser/views/sessionsListFilters.test.ts \ --grep 'Inbox scope'git diff --name-only -z origin/main...HEAD | xargs -0 corepack pnpm run precommit— passed for all applicable changed files.The full test suite and cross-platform UI checks were not run for this final revision.