Repository navigation
sessions: Add external session visibility banner - #331083
Merged
Benjamin Christopher Simmonds (benibenj) merged 4 commits intoAug 16, 2026
Merged
Benjamin Christopher Simmonds (benibenj) merged 4 commits into
Benjamin Christopher Simmonds (benibenj) merged 4 commits into
Conversation
Explain when an Agent Host session came from another application and let users choose which external sessions remain visible. Confirm choices that hide the open session, persist banner dismissal, and reconcile restored session publication with the setting. Co-authored-by: Copilot <[email protected]>
Benjamin Christopher Simmonds (benibenj)
enabled auto-merge (squash)
August 16, 2026 15:46
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Ladislau Szomoru (@lszomoru)Matched files:
|
Copilot started reviewing on behalf of
Benjamin Christopher Simmonds (benibenj)
August 16, 2026 15:47
Contributor
There was a problem hiding this comment.
Pull request overview
Adds configurable visibility and a one-time banner for Agent Host sessions created by external applications.
Changes:
- Adds reactive external-session provenance and visibility modes.
- Adds the banner, confirmation workflow, accessibility help, and fixtures.
- Reconciles published sessions when visibility settings change and adds tests.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts |
Clarifies the default visibility mode. |
src/vs/sessions/services/sessions/common/session.ts |
Adds external-session provenance. |
src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts |
Exposes provenance reactively. |
src/vs/sessions/contrib/providers/agentHost/AGENT_HOST_SESSIONS_PROVIDER.md |
Documents visibility behavior. |
src/vs/sessions/contrib/chat/test/browser/externalSessionBanner.test.ts |
Tests filtering and confirmation text. |
src/vs/sessions/contrib/chat/test/browser/externalSessionBanner.fixture.ts |
Adds visual fixtures. |
src/vs/sessions/contrib/chat/test/browser/externalSessionBanner.fixture.css |
Styles fixture content. |
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts |
Documents keyboard interaction. |
src/vs/sessions/contrib/chat/browser/media/externalSessionBanner.css |
Styles the banner. |
src/vs/sessions/contrib/chat/browser/media/chatView.css |
Supports banner-aware layout. |
src/vs/sessions/contrib/chat/browser/externalSessionBanner.ts |
Implements banner behavior. |
src/vs/sessions/contrib/chat/browser/chatView.ts |
Integrates and lays out the banner. |
src/vs/platform/chat/common/chatSettings.ts |
Defines shared visibility modes. |
src/vs/platform/agentHost/test/node/agentService.test.ts |
Tests visibility reconciliation. |
src/vs/platform/agentHost/node/agentService.ts |
Filters and republishes external sessions. |
src/vs/platform/agentHost/node/agentHostStateManager.ts |
Adds summary publication control. |
src/vs/platform/agentHost/common/agentHostSchema.ts |
Reuses the shared visibility enum. |
Review details
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 17/17 changed files
- Comments generated: 2
- Review effort level: Balanced
Contributor
Screenshot ChangesBase: Added (6) |
Sandeep Somavarapu (sandy081)
previously approved these changes
Aug 16, 2026
Expose the external-session visibility setting beneath provider filters in both the regular agent sessions list and the Agents Window. Keep the checked option synchronized with effective configuration and update the user setting from either menu. Co-authored-by: Copilot <[email protected]>
Use an overload-compatible configuration service mock so the native TypeScript compiler accepts the external-session menu setting test. Co-authored-by: Copilot <[email protected]>
roblourens
previously approved these changes
Aug 16, 2026
Make the stale metadata overlay test opt into all external sessions so it exercises overlay behavior independently from the new age-based visibility filter. Co-authored-by: Copilot <[email protected]>
Sandeep Somavarapu (sandy081)
approved these changes
Aug 16, 2026
Benjamin Christopher Simmonds (benibenj)
merged commit Aug 16, 2026
125f1cb
into
main
27 checks passed
Benjamin Christopher Simmonds (benibenj)
deleted the
benibenj/agents/external-session-banner-settings
branch
August 16, 2026 19:31
This was referenced Aug 16, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Externalsubmenu below provider filters in both session listsTesting
npm run compile@typescript/nativenode --experimental-strip-types build/hygiene.ts <changed files>npm run typecheck-clientnpm run valid-layers-check