Repository navigation
sessions: clarify inbox headers and allow collapsing Inbox - #348721
Conversation
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]>
This comment has been minimized.
This comment has been minimized.
Fix the formatting-only hygiene failure blocking the PR gate. Co-authored-by: Copilot <[email protected]>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 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
Screenshot ChangesBase: Changed (4)Added (1) |
This comment has been minimized.
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]>
This comment has been minimized.
This comment has been minimized.
Demo of
|
Before (main) |
After (this pull request) |
|---|---|
![]() 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. |
Collapse Inbox
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.





Fixes #348709
Fixes #348711
Make Inbox-mode categories easier to distinguish from session rows:
Inbox (2).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.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.