Skip to content

agentHost: configure external session discovery - #330541

Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
mainfrom
agents/configurable-external-session-discovery
Aug 14, 2026
Merged

Benjamin Christopher Simmonds (benibenj) merged 1 commit into
mainfrom
agents/configurable-external-session-discovery

Conversation

@benibenj

@benibenj Benjamin Christopher Simmonds (benibenj) commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add chat.agentSessions.showExternal with none, all, last 24 hours, and last 7 days modes
  • filter provider-native external sessions using the provenance persisted by agentHost: discover provider-native chats #330665, while always retaining live sessions
  • reconcile connected clients immediately when the setting changes without letting ordinary list requests alter the broadcast baseline
  • initialize external sessions with durable read state before exposure and preserve later unread state across rediscovery

Validation

  • targeted ESLint for changed files
  • npm run transpile-client
  • scripts\test.bat --run src\vs\platform\agentHost\test\node\agentSessionRegistry.test.ts --run src\vs\platform\agentHost\test\node\agentService.test.ts (302 passing)

Notes

This implementation is rebuilt on the provider-native discovery and durable provenance architecture from #330665, now merged into main. It does not add or duplicate session provenance schema or provider-specific discovery logic.

Full typecheck/compile is currently blocked by unrelated current-main errors in assignmentService.ts and markdown editor package typings.

Copilot AI commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Download Electron and Playwright

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

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 configurable discovery and visibility of external Agent Host sessions.

Changes:

  • Adds external-session visibility modes and metadata classification.
  • Persists session ownership and reconciles connected clients.
  • Updates registry and service tests for external metadata.
Show a summary per file
File Description
constants.ts Adds the workbench setting key.
chat.shared.contribution.ts Registers visibility mode settings.
agentSessionRegistry.test.ts Tests ownership transitions.
agentService.test.ts Updates expected external metadata.
agentSessionRegistry.ts Exposes persisted ownership.
agentService.ts Filters and reconciles external sessions.
agentHostStateManager.ts Supports retracting surfaced sessions.
agentHostDatabase.ts Persists external classification.
sessionState.ts Adds typed external metadata helpers.
agentHostSchema.ts Defines Agent Host visibility configuration.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 10/10 changed files
  • Comments generated: 4
  • Review effort level: Balanced

Layer configurable external-session visibility and durable read initialization on the provider-native discovery architecture now in main.

Co-authored-by: Copilot <[email protected]>
@benibenj
Benjamin Christopher Simmonds (benibenj) force-pushed the agents/configurable-external-session-discovery branch from 9ed2322 to 6683b1f Compare August 14, 2026 09:54
@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 94c2a55 into main Aug 14, 2026
27 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the agents/configurable-external-session-discovery branch August 14, 2026 10:16
@vs-code-engineering vs-code-engineering Bot added this to the 1.134.0 milestone Aug 14, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 28, 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.

3 participants