Skip to content

feat(chat): implement AgentHostSessionListStore for managing agent-host sessions#322333

Merged
DonJayamanne merged 6 commits into
mainfrom
don/ridiculous-jackal
Jun 24, 2026
Merged

feat(chat): implement AgentHostSessionListStore for managing agent-host sessions#322333
DonJayamanne merged 6 commits into
mainfrom
don/ridiculous-jackal

Conversation

@DonJayamanne

@DonJayamanne DonJayamanne commented Jun 22, 2026

Copy link
Copy Markdown
Contributor
  • Introduced AgentHostSessionListStore to manage and cache agent-host sessions.
  • Added interfaces for session list connection, entries, and notifications.
  • Implemented methods for session management including refresh, add, update, and remove.
  • Integrated workspace context filtering for session visibility.
  • Updated tests to cover new session list store functionality and ensure correct behavior during session notifications and refresh operations.

Addresses comment https://github.com/microsoft/vscode/pull/322030/changes#r3440361045

…st sessions

- Introduced AgentHostSessionListStore to manage and cache agent-host sessions.
- Added interfaces for session list connection, entries, and notifications.
- Implemented methods for session management including refresh, add, update, and remove.
- Integrated workspace context filtering for session visibility.
- Updated tests to cover new session list store functionality and ensure correct behavior during session notifications and refresh operations.
Copilot AI review requested due to automatic review settings June 22, 2026 07:57
@DonJayamanne DonJayamanne self-assigned this Jun 22, 2026

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

This PR introduces a shared AgentHostSessionListStore that centralizes agent-host session enumeration, caching, notification handling, and workspace-folder-based visibility filtering, while updating per-provider session list controllers to project state from that shared store. The contribution wiring and the existing agent-host chat test suite are updated to use (and validate) the new store behavior, including race scenarios during refresh and notifications.

Changes:

  • Added AgentHostSessionListStore with shared refresh/caching, workspace filtering, and notification-driven deltas.
  • Updated AgentHostSessionListController to consume the shared store instead of directly querying the agent host.
  • Updated AgentHostSessionListContribution and expanded tests to cover shared-store semantics and refresh/notification races.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostChatContribution.test.ts Refactors tests to use the shared store and adds coverage for provider separation and refresh/notification race cases.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.ts New shared session-list store (caching, refresh coalescing, workspace filtering, and notification handling).
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.ts Switches controller to project items from the shared store and apply store deltas.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.ts Wires a single store instance for all providers; uses it for cache invalidation on agent-host restart.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 2

@DonJayamanne DonJayamanne requested a review from connor4312 June 22, 2026 11:32
@DonJayamanne DonJayamanne marked this pull request as ready for review June 22, 2026 11:32
…HostSessionListController and AgentHostSessionListStore
@DonJayamanne DonJayamanne requested a review from connor4312 June 23, 2026 00:23
@DonJayamanne DonJayamanne enabled auto-merge (squash) June 23, 2026 01:14
@DonJayamanne DonJayamanne merged commit a61ad46 into main Jun 24, 2026
28 checks passed
@DonJayamanne DonJayamanne deleted the don/ridiculous-jackal branch June 24, 2026 18:20
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 24, 2026
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.

3 participants