Repository navigation
Enable browser proxying via agent host - #343571
Merged
Kyle Cutler (kycutler) merged 3 commits intoOct 27, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
What changed in this PR
Enables browser proxying through agent host networks (in addition to the window remote), including network-status reporting, local-network fallback behavior for unsupported hosts, and corresponding UI/test updates.
Changes:
- Add network-status APIs (
getNetworkStatus/onDidChangeNetworkStatus) and use them to decide when to proxy vs. fall back locally. - Extend tunnel proxying to support agent-host TCP streams (renderer-opened connections bridged to the local extension host).
- Add
SessionBrowserNetworkContributionto resolve per-session browser networks in the Agents window and to move composer-opened tabs as drafts move.
| File | Description |
|---|---|
| src/vs/workbench/contrib/browserView/test/electron-browser/tools/openBrowserTool.test.ts | Updates tool tests to account for proxy support and local fallback behavior. |
| src/vs/workbench/contrib/browserView/test/electron-browser/browserViewWorkbenchService.test.ts | Expands service tests for unsupported hosts, missing resolvers, and status waiting. |
| src/vs/workbench/contrib/browserView/test/electron-browser/browserEditorInput.test.ts | Updates mocks to match new acquireNetwork signature and network-status APIs. |
| src/vs/workbench/contrib/browserView/electron-browser/tools/openBrowserTool.ts | Reuses existing pages only on the effective network and adds a fallback notice. |
| src/vs/workbench/contrib/browserView/electron-browser/tools/browserTools.contribution.ts | Applies agent session network updates using the held (possibly-fallback) network. |
| src/vs/workbench/contrib/browserView/electron-browser/tools/browserToolHelpers.ts | Adds helper to generate a “local network fallback” user notice. |
| src/vs/workbench/contrib/browserView/electron-browser/features/browserRemoteFeatures.ts | Enhances remote indicator UI with connection/proxy support status and a11y announcement. |
| src/vs/workbench/contrib/browserView/electron-browser/browserViewWorkbenchService.ts | Implements network-status plumbing and “host supports proxy” gating/waiting logic. |
| src/vs/workbench/contrib/browserView/common/browserView.ts | Introduces IBrowserViewNetworkStatus, status events, and updates acquireNetwork contract. |
| src/vs/workbench/contrib/browserView/common/browserEditorInput.ts | Clarifies session semantics when a host cannot proxy browsers. |
| src/vs/workbench/contrib/browserView/browser/browserView.contribution.ts | Updates web workbench service stub for new network APIs/signatures. |
| src/vs/workbench/api/node/extHostBrowserTunnelProxy.ts | Adds agent-host dialing via main thread and adapts to ITunnelStream connectors. |
| src/vs/workbench/api/common/extHostBrowserTunnelProxy.ts | Updates API docs to describe window-remote vs agent-host proxying. |
| src/vs/workbench/api/common/extHost.protocol.ts | Adds RPC for opening/streaming/closing agent-host TCP connections. |
| src/vs/workbench/api/browser/mainThreadBrowserTunnelProxy.ts | Implements renderer-side agent-host TCP connection management for proxies. |
| src/vs/sessions/contrib/browserView/test/browser/sessionBrowserNetwork.test.ts | Adds tests for session-to-network resolution, status reporting, and composer tab moves. |
| src/vs/sessions/contrib/browserView/browser/sessionBrowserView.ts | Extracts and exports owner→session resolution helper used by network contribution. |
| src/vs/sessions/contrib/browserView/browser/sessionBrowserView.contribution.ts | Registers the new session browser network contribution early (pre-restore). |
| src/vs/sessions/contrib/browserView/browser/sessionBrowserNetwork.ts | New contribution resolving browser networks per session/host and moving composer tabs. |
| src/vs/sessions/SESSIONS.md | Documents browser network behavior in the sessions/Agents window. |
| src/vs/platform/tunnel/test/node/tunnelProxy.test.ts | Extends proxy tests for pull-based streams and connection limiting/tear-down. |
| src/vs/platform/tunnel/node/tunnelStream.ts | New adapters for remote socket protocols and pull-based byte streams. |
| src/vs/platform/tunnel/node/tunnelProxy.ts | Refactors tunnel connector type to ITunnelStream and adds concurrency option. |
| src/vs/platform/browserView/common/browserView.ts | Adds getBrowserViewSessionAffinity helper for consistent affinity resolution. |
| src/vs/platform/agentHost/common/agentHostTcpSupport.ts | New helper to classify agent-host TCP capability/unknown/unsupported. |
| .github/skills/integrated-browser/SKILL.md | Updates internal docs/training to include agent-host networks and fallback warning. |
Review effort: Lite
Kyle Cutler (kycutler)
marked this pull request as ready for review
October 27, 2026 15:17
Kyle Cutler (kycutler)
enabled auto-merge (squash)
October 27, 2026 15:17
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Joaquín Ruales (@jruales)Matched files:
|
Benjamin Christopher Simmonds (benibenj)
approved these changes
Oct 27, 2026
Kyle Cutler (kycutler)
deleted the
kycutler/browser-agents-window-proxy
branch
October 27, 2026 15:28
3 tasks done
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.


Closes #331926