Skip to content

sessions: add an opt-in Inbox mode to the sessions list - #346659

Merged
Megan Rogge (meganrogge) merged 7 commits into
mainfrom
agents/t3-sessions-inbox-mode-implementation
Nov 7, 2026
Merged

Megan Rogge (meganrogge) merged 7 commits into
mainfrom
agents/t3-sessions-inbox-mode-implementation

Conversation

@meganrogge

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

Copy link
Copy Markdown
Collaborator

Summary

Adds an opt-in Inbox mode to the Agents window's Sessions list so users can triage attention separately from organizing or archiving sessions.

  • Gate Inbox grouping behind sessions.list.inboxEnabled (default off), and reuse the existing Inbox's attention classification without enabling its canvas.
  • Keep Pinned and the primary Inbox above independently scrolling, resizable Working, Ready to merge, On hold, and Done categories. Expanded categories reclaim unused space; empty categories have no disclosure control.
  • Persist undoable dismissal, hold, and snooze decisions. New activity can bring dismissed items back; historical completions start in Done.
  • Keep ✓ Mark Session as Done for archiving and × Dismiss from Inbox as the rightmost row action for triage only. Dismissal retains Undo without a countdown bar.
  • Preserve custom organization, Automations/Customizations placement, and ordinary grouping. Search, keyboard navigation, comparisons, and archived inventory work across both list regions; phone retains one grouped tree.
  • Support Cmd/Ctrl+Enter alongside Alt+Enter for background submission, retaining composer focus and showing a successful-send confirmation with Open Session.

How to test

  1. Open the Agents window, enable sessions.list.inboxEnabled, and choose Grouping → Inbox Mode.
  2. Exercise sessions awaiting input, running sessions, completed sessions, and pull requests with passing/failing checks. Expand the bottom categories and resize with the divider or its keyboard controls.
  3. Use Dismiss from Inbox, Return to Inbox, Put on Hold, and Snooze, including multi-selection and Undo. Confirm dismissal does not archive; Mark Session as Done does.
  4. Search across both regions, reload, and switch grouping. Confirm triage/collapse state persists and custom organization and navigation placement are preserved.
  5. Disable the setting and verify ordinary grouping returns. Reenable it to restore Inbox unless another grouping was selected.
  6. Submit a new session with Cmd/Ctrl+Enter or Alt+Enter and verify the composer remains available, then use Open Session.

Validation

  • corepack pnpm run gulp compile-client — passed, including client type checking with zero errors.

  • corepack pnpm run build-fast --client-only — passed before the focused test runs.

  • The following focused action/list regression command passed 32 tests:

    ./scripts/test.sh --reporter dot \
      --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts \
      --run src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts \
      --run src/vs/sessions/contrib/sessions/test/browser/sessionsActions.test.ts \
      --grep 'inbox|Inbox|swaps the primary|onboarding|context menu'
  • After the final action-order/countdown changes, the following command passed 27 tests:

    ./scripts/test.sh --reporter dot \
      --run src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts \
      --run src/vs/workbench/contrib/sessions/test/browser/views/sessionsListNotification.test.ts \
      --grep 'inbox|Inbox|List notification'
  • Final changed-file lint command — passed:

    corepack pnpm run eslint \
      src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts \
      src/vs/workbench/contrib/sessions/browser/views/sessionsListNotification.ts \
      src/vs/sessions/contrib/sessions/test/browser/sessionsViewMenu.test.ts \
      src/vs/workbench/contrib/sessions/test/browser/views/sessionsListNotification.test.ts
  • git diff --check — passed.

  • Live Code OSS verification covered adaptive category sizing, navigation placement, empty-category alignment, distinct row actions and shortcut hints, and rightmost dismissal with Undo but no countdown bar. Inbox component fixtures were also checked in light, dark, and high-contrast themes.

  • Full integration/smoke suites were not run.

Fixes #346662

Add attention-based grouping and an adaptive two-region layout with persistent, undoable triage distinct from session archival. Preserve existing organization and navigation, and support background submissions with confirmation.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 6, 2026 21:47
@vs-code-engineering

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/inboxNotificationsService.ts
  • src/vs/workbench/contrib/sessions/common/sessionConfig.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/inboxNotificationsService.ts
  • src/vs/workbench/contrib/sessions/common/sessionConfig.ts
  • src/vs/workbench/contrib/sessions/common/sessionInbox.ts

Preserve upstream session identity and configurable background-send routing while retaining Inbox triage, confirmation, and focus behavior.

Co-authored-by: Copilot <[email protected]>
Apply the repository TypeScript formatter to the three files rejected by CI hygiene. No behavior changes.

Co-authored-by: Copilot <[email protected]>
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: c8aa95cf Current: b5072f2c

Changed (10)

sessions/inbox/inboxNotificationsView/Evidence/Light
Before After
before after
sessions/inbox/inboxNotificationsView/EvidenceNarrow/Light
Before After
before after
sessions/sessionsList/SessionsList_ArchiveOnboarding/Light
Before After
before after
sessions/sessionsList/SessionsList_MarkAsDoneOnboarding/Light
Before After
before after
sessions/blockedSessionsList/BlockedSessionsList_OneApproval/Light
Before After
before after
sessions/blockedSessionsList/BlockedSessionsList_TwoApprovals/Light
Before After
before after
sessions/blockedSessionsList/BlockedSessionsList_FiveApprovals/Light
Before After
before after
sessions/blockedSessionsList/BlockedSessionsList_FixCIAndApproval/Light
Before After
before after
sessions/sessionChatInputToolbar/SessionChatView_ArtifactPillAndPermission/Light
Before After
before after
sessions/sessionChatInputToolbar/SessionChatView_StackedInputSurfaces/Light
Before After
before after

Added (4)

sessions/sessionsList/SessionsList_Inbox/Light

current

sessions/sessionsList/SessionsList_Inbox_Empty/Light

current

sessions/sessionsList/SessionsList_Inbox_Expanded/Light

current

sessions/sessionsList/SessionsList_Inbox_Long/Light

current

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

Unresolved issues disrupt cross-region selection with the configured modifier, produce stale search results after renames, and send keyboard focus to an empty tree instead of matching footer results.

3 open issues
What changed in this PR

Adds an opt-in Inbox presentation to the Agents window’s existing Sessions list, separating attention triage from archiving and custom organization.

Changes:

  • Introduces gated Inbox grouping with split desktop regions and a single grouped tree on phone.
  • Adds persistent, undoable dismissal, hold, and snooze decisions backed by shared attention tracking.
  • Extends background-send shortcuts and confirmations, with regression tests, fixtures, and accessibility guidance.

Review validation used source tracing and a standalone logic check; project tests were not run.

File Description
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​views/​testSessionsList.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​views/​sessionsListNotification.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​sessionsListModelService.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​test/​browser/​chat/​sharedChatInputComposer.test.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionInbox.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​sessionConfig.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​common/​inboxNotificationsService.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsView.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsListSearch.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsListNotification.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsList.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​sessionsListModelService.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​media/​sessionsViewPane.css Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​media/​sessionsList.css Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​sharedChatInputComposer.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​newSessionAction.ts Updated as part of this pull request.
src/​vs/​workbench/​contrib/​sessions/​browser/​chat/​newChatWidget.ts Updated as part of this pull request.
src/​vs/​sessions/​SESSIONS_LIST.md Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsViewPane.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsViewMenu.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsListTools.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsListTestUtils.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsListFixtureUtils.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.fixture.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsArchiveActions.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsActions.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​views/​sessionsViewActions.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsListTools.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessionsActions.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​sessions/​browser/​sessions.contribution.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​inboxOne/​test/​browser/​inboxNotificationsService.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​inboxOne/​browser/​inboxNotificationsService.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​newChatWidget.test.ts Updated as part of this pull request.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsChatAccessibilityHelp.ts Updated as part of this pull request.

Review effort: Max

Respect configured selection modifiers, refresh search before section filtering, and return keyboard focus to the matching region. Keep new background-send behavior behind the Inbox setting and handle expected tree-disposal cancellation reported by component fixtures.

Co-authored-by: Copilot <[email protected]>
Preserve both Inbox and inline-action options. Route inline-action sizing and focus to the owning Inbox region and cover their interaction with the existing regression tests.

Co-authored-by: Copilot <[email protected]>
Prevent focused rename inputs from committing during SplitView teardown and calling already-disposed services. Cover the native blur path with a regression test; screenshot baselines remain unchanged.

Co-authored-by: Copilot <[email protected]>
Preserve Inbox grouping and triage imports while adopting relocated session service APIs.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: ca8b4326-cf35-4e1e-a6b5-0812e2063a98
@meganrogge
Megan Rogge (meganrogge) merged commit a9afb7c into main Nov 7, 2026
52 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/t3-sessions-inbox-mode-implementation branch November 7, 2026 00:07
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.

Sessions: add an opt-in Inbox mode for attention-based triage

5 participants