Repository navigation
Fix #345695: Browser remote indicator loses the host name after disconnecting (Dev Tunnels and WSL) - #345800
Open
Saurabh Sungh (genius-0963) wants to merge 2 commits into
Open
Fix #345695: Browser remote indicator loses the host name after disconnecting (Dev Tunnels and WSL)#345800Saurabh Sungh (genius-0963) wants to merge 2 commits into
Saurabh Sungh (genius-0963) wants to merge 2 commits into
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Kyle Cutler (@kycutler)Matched files:
Joaquín Ruales (@jruales)Matched files:
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The unimported Event causes a TypeScript compilation error, provider changes can leave labels stale, and the regression test does not exercise connection removal.
3 open issues
What changed in this PR
Addresses #345695 by preserving friendly remote host names in the Agents Window’s integrated browser indicator after Dev Tunnel or WSL hosts disconnect.
Changes:
- Caches host labels from connections and session resolution.
- Adds provider-based name lookup for offline hosts and observes provider changes.
- Adds tests for label retention after disconnect and offline provider lookup.
| File | Description |
|---|---|
src/vs/sessions/contrib/browserView/test/browser/sessionBrowserNetwork.test.ts |
Updates provider stubs and adds disconnected-host label tests. |
src/vs/sessions/contrib/browserView/browser/sessionBrowserNetwork.ts |
Retains friendly labels and resolves offline host names through session providers. |
Review effort: Balanced
…icator when disconnected
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Saurabh Sungh (genius-0963)
force-pushed
the
fix-issue-345695
branch
from
November 3, 2026 12:18
6d8aae6 to
5133d74
Compare
Contributor
Author
|
Kyle Cutler (@kycutler) review, sir |
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 #345695
Description of Changes
When a remote agent host (such as Dev Tunnels or WSL) is disconnected (e.g., via "Agents: Manage Remote Environments"),
IAgentHostConnectionsService.connectionsno longer contains the host connection entry. Previously,SessionBrowserNetworkContribution._getNetworkStatusfell back directly tonetwork.authorityas the label when resolving the network status. As a result, the integrated browser's remote indicator tooltip and accessible label displayed the internal authority identifier (e.g.tunnel__sneaky-ant-krdllm7 is disconnected...orhex-77736c3a5562756e74752d32342e3034 is disconnected...) instead of the friendly host name.This change:
SessionBrowserNetworkContributionso that disconnecting a host preserves the human-readable display name in the browser remote indicator tooltip and accessible label.ISessionsProvidersServiceto resolve host names for known remote hosts even when not actively connected.Verification Steps
SessionBrowserNetworkContribution:node test/unit/browser/index.js --browser chromium --grep "SessionBrowserNetworkContribution"tunnel__...orhex-...).