Skip to content

sessions: address Inbox mode test feedback - #347385

Merged
Megan Rogge (meganrogge) merged 6 commits into
mainfrom
agents/issue-triage-and-recommendations
Nov 10, 2026
Merged

Megan Rogge (meganrogge) merged 6 commits into
mainfrom
agents/issue-triage-and-recommendations

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Addresses Inbox-mode feedback from #346666:

  • 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.

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

  • 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]>
@meganrogge Megan Rogge (meganrogge) added this to the 1.147.0 milestone Nov 10, 2026
@meganrogge Megan Rogge (meganrogge) added the sessions-list Issues related to sessions list in agents window label Nov 10, 2026
Copilot AI balanced review requested due to automatic review settings November 10, 2026 16:29
@vs-code-engineering

vs-code-engineering Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Sandeep Somavarapu (@sandy081)

Matched files:

  • src/vs/workbench/contrib/sessions/browser/sessionsListModelService.ts
  • src/vs/workbench/contrib/sessions/common/sessionInbox.ts

Ladislau Szomoru (@lszomoru)

Matched files:

  • src/vs/workbench/contrib/sessions/browser/sessionsListModelService.ts
  • src/vs/workbench/contrib/sessions/common/sessionInbox.ts

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 0b29fac4 Current: 5834f0a2

Changed (4)

sessions/sessionsList/SessionsList_Inbox/Light
Before After
before after
sessions/sessionsList/SessionsList_Inbox_Empty/Light
Before After
before after
sessions/sessionsList/SessionsList_Inbox_Expanded/Light
Before After
before after
sessions/sessionsList/SessionsList_Inbox_Long/Light
Before After
before after

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

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.

1 open issue
What changed in this PR

This PR refines Inbox mode in the Agents Window’s sessions list, addressing feedback on navigation, session organization, and triage actions.

Changes:

  • Replaces split scrolling regions with one tree, hides empty secondary categories, and groups held sessions by workspace.
  • Distinguishes dismissal from archiving, honors Created/Updated ordering, and keeps available conversations in Inbox.
  • Adds provider-backed Merge actions, clearer snooze information, and updated tests and accessibility guidance.
File Description
src/​vs/​workbench/​contrib/​sessions/​common/​sessionInbox.ts Updates conversation classification and triage descriptions.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsView.ts Uses configured archive wording in Inbox filters.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsList.ts Unifies the tree and updates grouping, sorting, metadata, and action contexts.
src/​vs/​workbench/​contrib/​sessions/​browser/​media/​sessionsList.css Removes split-region styling and adjusts category styles.
src/​vs/​sessions/​SESSIONS_LIST.md Documents the revised Inbox behavior.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsViewMenu.test.ts Tests triage notices, merge guards, and menu visibility.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsListContextMenu.test.ts Checks that unsupported group creation is hidden.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.test.ts Covers unified scrolling, sorting, classification, snooze labels, and workspace grouping.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsActions.test.ts Updates expected archive toolbar visibility.
src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsViewActions.ts Refines triage actions and adds provider-backed merging.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsChatAccessibilityHelp.ts Updates navigation and triage accessibility guidance.

Review effort: Balanced

@meganrogge
Megan Rogge (meganrogge) marked this pull request as draft November 10, 2026 17:06
@meganrogge Megan Rogge (meganrogge) removed the sessions-list Issues related to sessions list in agents window label Nov 10, 2026

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.

🔵 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

Medium severity Keep the Merge toolbar action in sync with multi-selection

src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsViewActions.ts:1362

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.

Medium severity Archive nudge aborts when its toolbar target is hidden

src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsViewActions.ts:1521

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.

Medium severity Exclude tool and hidden chats from the multi-chat override

src/​vs/​workbench/​contrib/​sessions/​common/​sessionInbox.ts:61

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.

Low severity Place context-menu Merge under state actions, not navigation

src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsViewActions.ts:1365

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.

1 resolved since last review

Review effort: Max

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]>
@meganrogge

Copy link
Copy Markdown
Collaborator Author

Addressed the findings in #347385 (review):

  • 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.

@meganrogge
Megan Rogge (meganrogge) merged commit 691ccb3 into main Nov 10, 2026
52 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/issue-triage-and-recommendations branch November 10, 2026 19:53
Megan Rogge (meganrogge) added a commit that referenced this pull request Nov 10, 2026
<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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment