Skip to content

Removing history custom node from agents view#276642

Merged
bpasero merged 8 commits intomainfrom
osortega/remove-chat-history-id
Nov 13, 2025
Merged

Removing history custom node from agents view#276642
bpasero merged 8 commits intomainfrom
osortega/remove-chat-history-id

Conversation

@osortega
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 11, 2025 01:01
@osortega osortega self-assigned this Nov 11, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the custom "History" node from the agents view and replaces it with a more generic grouping mechanism. History items are now placed into a collapsible group node instead of appearing under a special "Show history..." node.

Key Changes:

  • Introduced IChatSessionGroupItem interface and isGroupNode() helper function to support group nodes in the sessions tree
  • Added groupName property to IChatSessionItem to enable grouping
  • Refactored SessionsDataSource to create group nodes from items with a groupName property
  • Modified LocalChatSessionsProvider to assign history items to a "History" group instead of creating a special history node
  • Updated SessionsRenderer to handle rendering of group nodes
  • Removed special handling for HISTORY_NODE_ID throughout the codebase

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/chatSessionsService.ts Added optional groupName property to IChatSessionItem interface
src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.ts Removed chatService parameter from SessionsDataSource constructor and removed special handling for HISTORY_NODE_ID in drag, context menu, and open handlers
src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.ts Added group node rendering support, refactored SessionsDataSource to create group nodes from grouped items, removed unused imports
src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.ts Replaced history node with actual history items that have groupName: 'History', removed HISTORY_NODE_ID constant
src/vs/workbench/contrib/chat/browser/chatSessions/common.ts Added IChatSessionGroupItem interface and isGroupNode() type guard function

osortega and others added 4 commits November 11, 2025 11:29
…nsViewPane.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@osortega osortega marked this pull request as ready for review November 11, 2025 19:23
@vs-code-engineering
Copy link

📬 CODENOTIFY

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

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatSessions/common.ts
  • src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.ts
  • src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.ts
  • src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.ts

@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 11, 2025
dmitrivMS
dmitrivMS previously approved these changes Nov 11, 2025
@bpasero bpasero merged commit a0747bf into main Nov 13, 2025
28 checks passed
@bpasero bpasero deleted the osortega/remove-chat-history-id branch November 13, 2025 10:31
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants