Skip to content

sessions: Show chats under sessions in the list - #332739

Merged
Sandeep Somavarapu (sandy081) merged 7 commits into
mainfrom
sandy081/agents/show-session-chats-filtered
Aug 26, 2026
Merged

Sandeep Somavarapu (sandy081) merged 7 commits into
mainfrom
sandy081/agents/show-session-chats-filtered

Conversation

@sandy081

Copy link
Copy Markdown
Member

Summary

  • show non-main and side chats as reactive children of their owning session in the Sessions list
  • add native disclosure, parent-child connectors, status, selection, open, drag-and-drop, rename, side-open, and delete behavior for chat rows
  • move chat-row actions to a contributed menu and session side-opening into ISessionsService
  • remove the redundant New Chat button from chat tab bars while preserving the overflow and context-menu entry points

Details

The session main chat remains represented by the parent session row. Tool-origin subagent chats stay out of the tree and continue to use the Chats submenu. Active chat changes select and reveal the corresponding tree child without stealing focus or flashing the parent session.

Testing

  • npm run compile
  • npm run hygiene
  • npm run typecheck-client
  • focused Sessions list, context menu, chat group, and sessions service unit tests

Expose user-facing chats beneath their owning session, with status, navigation, collapse behavior, and contextual actions. Keep side chats and subagents grouped in the header picker.

Co-authored-by: Copilot <[email protected]>
Align nested chat typography and hover behavior, keep matching titles visible, and open context-menu chats in a side chat group.

Co-authored-by: Copilot <[email protected]>
Use native tree twisties, add chat drag and modifier gestures, remove the tab-bar New Chat button, and keep nested chat presentation aligned with session rows.

Co-authored-by: Copilot <[email protected]>
Add active-chat selection, flattened keyboard navigation, side-chat tree entries, rename support, and consistent main/side opening semantics.

Co-authored-by: Copilot <[email protected]>
Contribute chat-row actions through menus, move side-opening into the sessions service, use native tree configuration for disclosure behavior, and refine parent-child connector presentation.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings August 26, 2026 12:56
@sandy081 Sandeep Somavarapu (sandy081) added this to the 1.136.0 milestone Aug 26, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/sessions/browser/parts/chatCompositeBar.ts
  • src/vs/sessions/browser/parts/chatGroupView.ts
  • src/vs/sessions/browser/parts/chatGroupsView.ts
  • src/vs/sessions/browser/parts/media/chatCompositeBar.css

Ladislau Szomoru (@lszomoru)

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionsService.ts
  • src/vs/sessions/services/sessions/test/browser/sessionsManagementService.test.ts
  • src/vs/sessions/services/sessions/test/common/sessionContextKeys.test.ts

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 588c0743 Current: 6abecc52

Changed (10)

sessions/chatCompositeBar/TwoChats/Dark
Before After
before after
sessions/chatCompositeBar/TwoChats/Light
Before After
before after
sessions/chatCompositeBar/MixedStatuses/Dark
Before After
before after
sessions/chatCompositeBar/MixedStatuses/Light
Before After
before after
sessions/chatCompositeBar/LongTitles/Dark
Before After
before after
sessions/chatCompositeBar/LongTitles/Light
Before After
before after
sessions/chatCompositeBar/Renaming/Dark
Before After
before after
sessions/chatCompositeBar/Renaming/Light
Before After
before after
sessions/chatCompositeBar/WithDraftChat/Dark
Before After
before after
sessions/chatCompositeBar/WithDraftChat/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.

Pull request overview

Adds nested, reactive chat rows to the Sessions list and moves related navigation and actions into shared Sessions services and menus.

Changes:

  • Adds chat child rows with disclosure, status, selection, drag-and-drop, and context actions.
  • Adds targeted side-opening APIs and chat-group splitting behavior.
  • Removes the tab-bar New Chat button while retaining menu access.
Show a summary per file
File Description
src/vs/workbench/test/browser/componentFixtures/sessions/chatCompositeBar.fixture.ts Updates the fixture delegate.
src/vs/sessions/test/browser/sessionConversationGroups.test.ts Updates side-chat grouping expectations.
src/vs/sessions/test/browser/chatGroupsView.test.ts Tests side-opening existing chats.
src/vs/sessions/test/browser/chatCompositeBar.test.ts Tests New Chat button removal.
src/vs/sessions/services/sessions/test/common/sessionContextKeys.test.ts Consolidates chat context-key assertions.
src/vs/sessions/services/sessions/test/browser/sessionsManagementService.test.ts Tests targeted side opening.
src/vs/sessions/services/sessions/browser/sessionsService.ts Adds side-opening and focus-preserving chat APIs.
src/vs/sessions/contrib/sessions/test/browser/sessionsListTestUtils.ts Records chat rename and deletion operations.
src/vs/sessions/contrib/sessions/test/browser/sessionsListContextMenu.test.ts Tests contributed chat-row actions.
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts Covers nested chat-row behavior.
src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts Routes navigation through chat-aware service APIs.
src/vs/sessions/contrib/sessions/browser/views/sessionsView.ts Handles session and nested-chat opening.
src/vs/sessions/contrib/sessions/browser/views/sessionsList.ts Implements reactive chat tree children.
src/vs/sessions/contrib/sessions/browser/sessionsTitleBarWidget.ts Uses the shared side-opening API.
src/vs/sessions/contrib/sessions/browser/sessionsActions.ts Contributes chat-row context actions.
src/vs/sessions/contrib/sessions/browser/media/sessionsList.css Styles nested rows, connectors, and disclosure.
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts Documents nested-chat interactions.
src/vs/sessions/browser/sessionConversationGroups.ts Removes side chats from conversation menus.
src/vs/sessions/browser/parts/media/chatCompositeBar.css Removes obsolete New Chat styles.
src/vs/sessions/browser/parts/chatGroupView.ts Removes the New Chat delegate contract.
src/vs/sessions/browser/parts/chatGroupsView.ts Splits existing chats into side groups.
src/vs/sessions/browser/parts/chatCompositeBar.ts Removes tab-bar New Chat rendering.
src/vs/sessions/browser/menus.ts Registers the chat-item context menu.

Review details

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 23/23 changed files
  • Comments generated: 5
  • Review effort level: Balanced

Fix chat row disposal and responsive heights, preserve user tree state during unrelated updates, propagate side-open completion, and expose chat status to screen readers. Add focused regression coverage.

Co-authored-by: Copilot <[email protected]>
Provide the main chat required by the session model so nested-chat tree derivation can render component fixtures.

Co-authored-by: Copilot <[email protected]>
@sandy081
Sandeep Somavarapu (sandy081) merged commit 89dd7dc into main Aug 26, 2026
37 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/agents/show-session-chats-filtered branch August 26, 2026 13:58
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants