Repository navigation
sessions: discover remote nested sessions - #350377
Queued
Dmitriy Vasyura (dmitrivMS) wants to merge 3 commits into
Queued
Dmitriy Vasyura (dmitrivMS) wants to merge 3 commits into
Dmitriy Vasyura (dmitrivMS) wants to merge 3 commits into
Conversation
Expose visible peer chats during remote inspection and preserve opaque session link identities. Fixes #338718 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Distinct advertised chat resources produce identical links, causing inspection or messaging to target the wrong conversation; preserve exact resources for ambiguous selectors and add regression coverage.
1 open issue
What changed in this PR
Adds remote peer-chat discovery to the Agents Window’s read-only session inspection tool, addressing #338718 without changing remote creation hierarchy.
Changes:
- Returns visible chat titles and host-qualified links, excluding hidden and tool-origin chats.
- Protects reserved characters in session-link query values.
- Adds regression coverage for discovery, link round-trips, host scoping, and disconnect handling.
| File | Description |
|---|---|
src/vs/sessions/SESSIONS.md |
Documents peer-chat discovery during remote inspection. |
src/vs/sessions/contrib/remoteSessions/test/browser/remoteSessionTools.test.ts |
Tests reserved characters in scoped session identities. |
src/vs/sessions/contrib/remoteSessions/test/browser/remoteSessionInspector.test.ts |
Covers visibility filtering, opaque chats, host-qualified links, and stale-result prevention. |
src/vs/sessions/contrib/remoteSessions/common/remoteSessionInspection.ts |
Adds optional chat summaries to inspection results. |
src/vs/sessions/contrib/remoteSessions/browser/remoteSessionInspector.ts |
Builds filtered chat summaries and host-qualified links. |
src/vs/sessions/contrib/remoteSessions/browser/getRemoteSessionTool.ts |
Describes discovery results and link usage to the model. |
src/vs/platform/agentHost/test/common/openSessionLink.test.ts |
Tests reserved-character preservation across link formats. |
src/vs/platform/agentHost/common/openSessionLink.ts |
Protects query values through URI and query parsing. |
Review effort: Balanced
Use the exact advertised chat resource when its short selector resolves to another catalog entry. Cover inspection through each discovered link for peers sharing a short ID. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Verify that copied remote links preserve the host, backend session, and chat when parsed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Dmitriy Vasyura (dmitrivMS)
marked this pull request as ready for review
November 25, 2026 14:13
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge
November 25, 2026 14:13
Henning Dieterichs (hediet)
approved these changes
Nov 25, 2026
Nick Trogh (ntrogh)
approved these changes
Nov 25, 2026
Dmitriy Vasyura (dmitrivMS)
added this pull request to the merge queue
Nov 25, 2026
Any commits made after this event will not be merged.
This branch has not been deployed
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.

Fixes #338718
Expose visible peer chats, including the main chat, when inspecting a remote session. The returned host-qualified links identify the exact chats for inspection or messaging. Hidden and tool-origin chats are excluded, and unavailable results do not include stale chat lists. Preserve reserved characters in session links through VS Code's URI/query parsing.