Skip to content

sessions: clarify inbox headers and allow collapsing Inbox - #348721

Merged
Megan Rogge (meganrogge) merged 3 commits into
mainfrom
agents/fix-inbox-issues-348709-348711
Nov 16, 2026
Merged

Megan Rogge (meganrogge) merged 3 commits into
mainfrom
agents/fix-inbox-issues-348709-348711

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Fixes #348709
Fixes #348711

Make Inbox-mode categories easier to distinguish from session rows:

  • Use stronger headings and persistent disclosure arrows instead of session-like category icons.
  • Place counts beside their labels, for example Inbox (2).
  • Keep the Inbox label and let users collapse it like the other populated categories. Preserve that choice across updates, grouping changes, and reloads; keep the empty-state message visible when clear.
  • Update accessibility help and add regression tests plus a narrow-sidebar fixture.

Validation

  • pnpm run compile-client — passed.
  • ./scripts/test.sh --run src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts --run src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts --grep 'Inbox collapse|inbox|Inbox|sticky header collapse state|SessionsChatAccessibilityHelp' --reporter dot — 136 passed.
  • pnpm run oxlint src/vs/workbench/contrib/sessions/browser/views/sessionsList.ts src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts src/vs/sessions/contrib/sessions/test/browser/sessionsList.fixture.ts — passed.
  • pnpm run stylelint src/vs/workbench/contrib/sessions/browser/media/sessionsList.css — passed; only existing design-token suggestions outside the changed block.
  • Rendered all 20 Inbox fixtures with the configured Rspack Component Explorer, with no render errors. Inspected populated, collapsed, and empty states across light, dark, and high-contrast themes.

To try it, select Grouping > Inbox Mode, check the headers and adjacent counts, and collapse/expand Inbox by clicking its heading or using Left/Right Arrow. Reload with Inbox collapsed to verify persistence.

Full smoke tests and live screen-reader testing were not run.

Use persistent disclosure arrows and stronger category headings, with counts beside their labels. Preserve the user's Inbox collapse choice across updates and reloads while keeping its empty-state message visible.

Fixes #348709\nFixes #348711

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

This comment has been minimized.

Fix the formatting-only hygiene failure blocking the PR gate.

Co-authored-by: Copilot <[email protected]>
@vs-code-engineering

This comment has been minimized.

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

Inbox repopulation overrides the saved collapse preference, while an overly broad CSS selector hides comparison-header icons and disrupts their layout.

2 open issues
What changed in this PR

This PR clarifies category headers in the Agents Window’s Inbox mode and lets users collapse a populated Inbox while keeping its empty-state message visible.

Changes:

  • Strengthens category headings, adds persistent disclosure arrows, and places counts beside labels.
  • Enables Inbox collapse using existing state persistence.
  • Updates documentation and accessibility help, adds regression tests, and introduces a narrow-sidebar fixture.
File Description
src/​vs/​workbench/​contrib/​sessions/​browser/​views/​sessionsList.ts Enables populated Inbox collapse and preserves empty-state visibility.
src/​vs/​workbench/​contrib/​sessions/​browser/​media/​sessionsList.css Updates header emphasis, count placement, and disclosure styling.
src/​vs/​sessions/​SESSIONS_LIST.md Documents the revised Inbox expansion contract.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.test.ts Adds header-layout and collapse-persistence regression coverage.
src/​vs/​sessions/​contrib/​sessions/​test/​browser/​sessionsList.fixture.ts Adds a narrow, collapsed-Inbox fixture across themes.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsChatAccessibilityHelp.ts Explains collapse controls and empty-state behavior.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 27bac474 Current: 4add383b

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

Added (1)

sessions/sessionsList/SessionsList_Inbox_Collapsed/Light

current

@vs-code-engineering

This comment has been minimized.

Restore saved Inbox collapse state when sessions return after the empty placeholder. Keep category-only styling off comparison headers and cover both regressions.

Co-authored-by: Copilot <[email protected]>
@vs-code-engineering

This comment has been minimized.

@meganrogge Megan Rogge (meganrogge) added this to the 1.148.0 milestone Nov 16, 2026
@meganrogge
Megan Rogge (meganrogge) added this pull request to the merge queue Nov 16, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor

Demo of 202ad92

Inbox keeps a bold heading with an adjacent count and can now be collapsed.

Inbox heading and count

Before (main) After (this pull request)
Inbox uses an inbox icon and a normal-weight label; its count sits at the far right.
Inbox uses an inbox icon and a normal-weight label; its count sits at the far right.
A bold Inbox (1) heading has a persistent disclosure arrow.
A bold Inbox (1) heading has a persistent disclosure arrow.

Collapse Inbox

Before (main) After (this pull request)
Clicking the Inbox icon and pressing Left leaves the session visible; Inbox cannot collapse.
Clicking the Inbox icon and pressing Left leaves the session visible; Inbox cannot collapse.
Clicking the disclosure arrow hides the session while keeping Inbox (1) visible.
Clicking the disclosure arrow hides the session while keeping Inbox (1) visible.

The change, on this pull request's build:

after.mp4
The same steps on main
before.mp4

Recorded by an agent on a build of this pull request merged with main, signed out, with a mock model. It can be wrong. Workflow run

Tip

Was this useful? React to this comment with 👍 or 👎.
On the VS Code team? Say what was wrong or missing.

Merged via the queue into main with commit e3044f8 Nov 16, 2026
37 of 38 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/fix-inbox-issues-348709-348711 branch November 16, 2026 22:46
@rwoll Ross Wollman (rwoll) added the pr-demo A PR demo was recorded for this pull request label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-demo A PR demo was recorded for this pull request

Projects

None yet

5 participants