agentHost: discover provider-native chats - #330665
Merged
Sandeep Somavarapu (sandy081) merged 8 commits intoAug 13, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Tyler James Leonhardt (@TylerLeonhardt)Matched files:
|
Copilot started reviewing on behalf of
Sandeep Somavarapu (sandy081)
August 13, 2026 15:41
View session
…der-chat-discovery-continue # Conflicts: # src/vs/platform/agentHost/node/claude/claudeAgent.ts # src/vs/platform/agentHost/node/codex/codexAgent.ts # src/vs/platform/agentHost/node/copilot/copilotAgent.ts # src/vs/platform/agentHost/test/node/agentService.test.ts # src/vs/platform/agentHost/test/node/claudeAgent.test.ts # src/vs/platform/agentHost/test/node/codex/codexCreateChat.test.ts # src/vs/platform/agentHost/test/node/copilotAgent.test.ts
Member
Author
|
This PR brings back showing external sessions from other apps (from claude code, codex, extension host) into agent host. Please check if there are no regressions caused. cc Tyler James Leonhardt (@TylerLeonhardt) Giuseppe Cianci (@Giuspepe) Vritant Bhardwaj (@vritant24) |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds provider-native chat discovery to Agent Host, with durable provenance, migration support, restoration, and Sessions transport.
Changes:
- Adds provider-driven discovery for Claude, Copilot, and Codex chats.
- Persists and transports external/internal session provenance.
- Expands migration, restoration, concurrency, and protocol tests.
Show a summary per file
| File | Description |
|---|---|
src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts |
Persists external provenance in the Sessions cache. |
src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts |
Tests provenance transport. |
src/vs/platform/agentHost/test/node/mockAgent.ts |
Adds discovery support to test agents. |
src/vs/platform/agentHost/test/node/copilotAgent.test.ts |
Covers Copilot migration and restoration. |
src/vs/platform/agentHost/test/node/codex/codexSessionMetadataStore.test.ts |
Tests known-session detection. |
src/vs/platform/agentHost/test/node/codex/codexPrewarmEviction.test.ts |
Updates Codex discovery fixtures. |
src/vs/platform/agentHost/test/node/codex/codexCreateChat.test.ts |
Tests invalid materialization data. |
src/vs/platform/agentHost/test/node/codex/codexAgent.test.ts |
Tests Codex discovery and migration. |
src/vs/platform/agentHost/test/node/claudeSessionMetadataStore.test.ts |
Tests Claude known-session detection. |
src/vs/platform/agentHost/test/node/claudeAgent.test.ts |
Tests Claude discovery and restoration. |
src/vs/platform/agentHost/test/node/agentSideEffects.test.ts |
Uses orchestrated session creation. |
src/vs/platform/agentHost/test/node/agentSessionRegistry.test.ts |
Tests provenance and tombstone behavior. |
src/vs/platform/agentHost/test/electron-browser/remoteAgentHostProtocolClient.test.ts |
Tests remote provenance transport. |
src/vs/platform/agentHost/node/protocolServerHandler.ts |
Documents transported provenance metadata. |
src/vs/platform/agentHost/node/copilot/copilotAgent.ts |
Adds Copilot discovery and backing recovery. |
src/vs/platform/agentHost/node/codex/codexSessionMetadataStore.ts |
Detects known Codex sessions. |
src/vs/platform/agentHost/node/codex/codexAgent.ts |
Adds Codex discovery and restoration. |
src/vs/platform/agentHost/node/claude/claudeSessionMetadataStore.ts |
Detects known Claude sessions. |
src/vs/platform/agentHost/node/claude/claudeAgentSdkService.ts |
Supports discovery-time SDK availability. |
src/vs/platform/agentHost/node/claude/claudeAgent.ts |
Adds Claude discovery and restoration. |
src/vs/platform/agentHost/node/agentSessionRegistry.ts |
Adds source-aware durable provenance. |
src/vs/platform/agentHost/node/agentService.ts |
Orchestrates discovery, migration, and restore. |
src/vs/platform/agentHost/node/agentHostDatabase.ts |
Migrates and persists provenance fields. |
src/vs/platform/agentHost/common/state/sessionState.ts |
Defines external provenance metadata helpers. |
src/vs/platform/agentHost/common/agent.ts |
Defines the provider discovery contract. |
src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.ts |
Preserves provenance from remote listings. |
src/vs/platform/agentHost/AGENTS.md |
Documents the discovery architecture. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 28/28 changed files
- Comments generated: 4
- Review effort level: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Vritant Bhardwaj (vritant24)
previously approved these changes
Aug 13, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
roblourens
previously approved these changes
Aug 13, 2026
…der-chat-discovery-continue # Conflicts: # src/vs/platform/agentHost/common/agent.ts # src/vs/platform/agentHost/node/agentService.ts # src/vs/platform/agentHost/node/codex/codexAgent.ts # src/vs/platform/agentHost/test/node/agentService.test.ts
roblourens
previously approved these changes
Aug 13, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Michael Lively (Yoyokrazy)
approved these changes
Aug 13, 2026
Sandeep Somavarapu (sandy081)
deleted the
agents/external-provider-chat-discovery-continue
branch
August 13, 2026 19:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
npm run compilenpm run typecheck-clientnpm run hygiene