Skip to content

sessions - use activeSessionService for opening from picker#295984

Merged
bpasero merged 1 commit intomainfrom
ben/guilty-quelea
Feb 18, 2026
Merged

sessions - use activeSessionService for opening from picker#295984
bpasero merged 1 commit intomainfrom
ben/guilty-quelea

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Feb 18, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 18, 2026 11:00
@bpasero bpasero enabled auto-merge (squash) February 18, 2026 11:01
@bpasero bpasero self-assigned this Feb 18, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 18, 2026
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 enhances the AgentSessionsPicker to support custom session opening logic in the Agent Sessions window. The Agent Sessions window (vs/sessions) is a standalone application layer with its own session management service (ISessionsManagementService) that needs to track active sessions differently than the default workbench behavior.

Changes:

  • Added IAgentSessionsPickerOptions interface with an optional overrideSessionOpen callback to allow custom session opening logic
  • Updated AgentSessionsPicker constructor to accept an optional options parameter
  • Modified sessionsTitleBarWidget.ts to use activeSessionService.openSession() when opening sessions from the picker in the Agent Sessions window
  • Updated all existing call sites to pass undefined for the new options parameter to maintain backward compatibility

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.ts Added IAgentSessionsPickerOptions interface and updated picker to conditionally call override function or default opener
src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.ts Updated createInstance call to pass undefined for new options parameter
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.ts Updated createInstance call to pass undefined for new options parameter
src/vs/sessions/contrib/sessions/browser/sessionsTitleBarWidget.ts Configured picker with overrideSessionOpen to use activeSessionService.openSession() for proper state management

@bpasero bpasero merged commit 2ef3c12 into main Feb 18, 2026
24 checks passed
@bpasero bpasero deleted the ben/guilty-quelea branch February 18, 2026 12:04
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.

2 participants

Comments