You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sessions: address Inbox mode test feedback - #347385
Use one scrolling tree, hide empty categories, and group On hold sessions by workspace.
Offer Clear from Inbox (checkmark) and Archive Session (archive box) inline, with separate Cleared and Archived sections. Clearing preserves read status.
Fix sorting, visible-chat placement, and provider-supported Merge, including multi-selection.
Preserve explicit grouping and collapse choices; background sends do not persist automatic expansion of Working.
Include historical unread sessions modified today, show snooze deadlines, and reduce notification noise.
Category drag-and-drop (#346934) remains a separate feature request.
Validation
1,062 focused unit tests passed, covering list/menu behavior, archive onboarding, attention classification, grouping, and background sends.
Client compilation/type-check, changed-file hygiene/ESLint, module-layer checks, and whitespace checks passed.
Live provider merges and manual screen-reader testing were not performed.
How to test
Choose Grouping > Inbox Mode. Check scrolling/collapse, Created/Updated ordering, hold/snooze, Clear versus Archive, and inline Merge with a supported test PR. Clear an unread session: it should stay unread under Cleared. Send a new session in the background and check Working stays collapsed unless explicitly expanded. Switch grouping back to verify saved organization is preserved.
Use one scrolling tree with explicit Inbox and Dismissed categories, preserve configured ordering and available parent chats, and clarify triage actions and snooze state. Group held sessions by workspace and offer provider-supported pull request merging.
Co-authored-by: Copilot <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The row toolbar lacks multi-selection context, leaving Merge Pull Request enabled for multiple selected sessions and causing clicks to fail with a misleading error.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Unresolved bugs break archive onboarding, leave invalid multi-selection Merge actions enabled, and incorrectly move running sessions into Inbox based on hidden or tool-spawned chats.
No open issues 🎉
4 previously missed issues
In code that hasn't changed since last review
Keep the Merge toolbar action in sync with multi-selection
Selecting multiple sessions leaves the inline Merge button enabled because sessionItem.isMultiSelection is set only in the context-menu overlay, not the row toolbar's scoped context. Clicking it forwards all selected sessions and fails with “no longer available to merge,” even when the pull request is mergeable. Keep the toolbar's multi-selection key synchronized with selection changes and cover the rendered toolbar in the regression test.
Archive nudge aborts when its toolbar target is hidden
For a non-dismissed session in Inbox mode, the archive nudge still calls revealArchiveAction() before archiving, but this condition removes the toolbar button that the tour targets. The tour waits two seconds for the missing target and aborts. Preserve an onboarding visibility exception, or adapt the tour to the context-menu archive action.
Exclude tool and hidden chats from the multi-chat override
This includes tool-spawned subagents and hidden chats, which getSessionListChats() deliberately excludes from the list. With a running main conversation and one completed subagent, this now moves the session from Working to Inbox even though its only visible conversation is still running. Exclude ChatOriginKind.Tool and ChatInteractivity.Hidden before applying the multi-chat override, and cover those cases alongside the completed-parent test.
Place context-menu Merge under state actions, not navigation
In the context menu, navigation at order 0 puts Merge Pull Request ahead of Open in, although merging changes state rather than opening the session. Keep navigation for the toolbar and use 1_state for the context-menu entry, matching the other Inbox state actions.
Keep Inbox available independently of its default-grouping setting, include unread history modified today, and respect multi-selection for Merge actions. Preserve user collapse choices across automatic session reveals and background sends.
Co-authored-by: Copilot <[email protected]>
Adapt Inbox fixes to the session attention service, preserve archive onboarding, ignore hidden and tool-spawned chats when classifying running sessions, and place Merge with state actions. Keep the existing reactive multi-selection guard.
Restore both inline actions as Clear from Inbox and Archive Session, with distinct icons and Cleared and Archived sections. Clearing preserves read status and remains reversible.
Co-authored-by: Copilot <[email protected]>
The rendered Merge toolbar already followed multi-selection in 141f9b9; its regression still passes.
Restored the inline archive action, including its onboarding spotlight target.
Excluded hidden, tool-spawned, and archived chats from the multi-chat Inbox override.
Moved context-menu Merge into the state-action group; the toolbar remains unchanged.
Also resolved the main-branch conflicts using the new session attention service. The approved action wording is now Clear from Inbox (checkmark) versus Archive Session (archive box), with Cleared and Archived sections. Clearing does not mark sessions read.
Validation: 1,062 focused tests passed, including rendered toolbar and onboarding coverage; client compile/type-check, hygiene/ESLint, layer checks, and whitespace checks passed.
<img width="444" height="326" alt="Screenshot 2026-11-10 at 5 00 50 PM"
src="https://github.com/user-attachments/assets/a37abe57-01a4-49fb-8863-28af286b5a60"
/>
<!-- 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.
-->
Fixes#347488.
## Summary
- Add workspace and environment pickers above the Inbox, using New
Session-style anchored dropdowns rather than Quick Pick. Each supports
All or one selection.
- Apply scope to every session category, including Pinned, Working, On
hold, Cleared, and Archived. Workspace identity includes its exact URI
and execution environment.
- Remember scope across reloads, retain unavailable selections, preserve
other grouping modes, and keep an out-of-scope active conversation open.
- Remove workspace subgroups from On hold. Include keyboard/focus
handling, accessibility help, regression tests, and themed fixtures.
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
1. Switch the Sessions list to Inbox Mode. Open both anchored dropdowns
with the mouse or Enter, Space, or Down Arrow; search workspaces and
verify Escape returns focus.
2. Select a workspace and environment. Verify every category, including
Pinned, contains only matching sessions. Selecting an incompatible
environment resets the workspace to All.
3. Keep a conversation open while choosing a nonmatching scope: its row
should disappear without closing the conversation. An empty scoped Inbox
should explain that no activity matches.
4. Reload and switch grouping modes to verify Inbox scope is remembered
independently. Choose both All options to clear it; verify ordinary
filters still work.
5. Open Automations: its catalog should remain unscoped in this PR.
## Validation
After rebasing onto latest main:
- `corepack pnpm run gulp compile-client` — passed, zero
compilation/type errors.
- The following focused regression selection — **7 passed**:
```sh
./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.
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
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.
Summary
Addresses Inbox-mode feedback from #346666:
Fixes #346927, fixes #347088, fixes #347113, fixes #346939, fixes #346935, fixes #346933, fixes #346937, fixes #346931, fixes #346930, fixes #346932, fixes #347132, fixes #346929, fixes #347140, fixes #346936, fixes #346938.
Category drag-and-drop (#346934) remains a separate feature request.
Validation
How to test
Choose Grouping > Inbox Mode. Check scrolling/collapse, Created/Updated ordering, hold/snooze, Clear versus Archive, and inline Merge with a supported test PR. Clear an unread session: it should stay unread under Cleared. Send a new session in the background and check Working stays collapsed unless explicitly expanded. Switch grouping back to verify saved organization is preserved.