Repository navigation
Closed
Labels
Milestone
Description
Refs: #331926, #343571, #345102
- anyOS TylerLeonhardt
- anyOS Dmitriy Vasyura (@dmitrivMS)
- anyOS Raymond Zhao (@rzhao271)
Complexity: 5
The integrated browser in the Agents window can use a session's agent host for networking. This lets you browse localhost apps and other sites accessible from that host directly from the integrated browser.
Setup
In the agents window:
- Use recent VS Code Insiders builds for both the client and the VS Code agent host.
- Enable
workbench.browser.enableRemoteProxyand leaveworkbench.browser.dataStorageset todefault. - Connect to a remote host, such as SSH, WSL, or a dev container, and start a session with a folder.
- Run a web app on the remote host's localhost.
- Cloud sandboxes and other non-VS Code agent hosts are not yet supported.
Please comment with the host types you tested, and include the host type in any issues you file.
Browsing through the remote host
- Open the app in the integrated browser using its original localhost URL. Verify that the page, scripts, images, and API requests load without port forwarding.
- Share the page with the agent and ask it to interact with the app. Also ask the agent to open a new page.
- Verify that the remote indicator identifies the correct host.
- Browse a public HTTPS site. Exercise both HTTP and HTTPS URLs, since they use different proxy paths.
- Try an unused port and an invalid hostname. These should fail rather than leave the browser stuck indefinitely.
- Exercise WebSockets, such as live updates or hot reload.
Multiple sessions and hosts
- Open a local session and a remote session. If possible, also connect to a second remote host.
- Run apps with visibly different content on the same localhost port on each host.
- Open browser tabs from each session and verify that they reach the correct server.
- Switch sessions, navigate existing tabs, and use the agent's browser tools. Existing tabs should retain their original network rather than follow the active session.
- Ask an agent to open a page while another session is active. The new page should use the requesting agent's host.
New-session composer
- With a remote host and folder selected, open a browser tab before sending the first message.
- Change to another remote host or change the folder on the remote host, then start the session.
- Verify that the tab follows the draft's host and keeps its URL.
- Verify that tabs belonging to existing sessions are unaffected.
Storage and restoration
Use tabs you open yourself for these checks. Agent-opened pages use separate, in-memory storage per chat.
- Set a cookie or localStorage value in the remote app.
- Open another session for the same folder on the same host, then open the same site yourself. Verify that the stored data is shared. Include sessions using worktrees of the same project.
- Open the same site from a different folder or host. Verify that the stored data is separate.
- Reload the Agents window and reopen the tabs. Verify that they use the correct host and retain their persistent data.
Disconnects and repeated use
- Disconnect the remote host and verify that the indicator reports the disconnected state.
- Reload or navigate an existing remote tab. It must not silently fall back to the local network.
- Reconnect the host and reload the page. Browsing should work again.
- Open several pages concurrently, try a large download or streaming response, and repeatedly close and reopen tabs. Watch for stuck pages or failures to open new connections.
Settings
- Disable
workbench.browser.enableRemoteProxyand manually open a new tab. Verify that it uses the local network. Re-enable the setting afterward.
Activity
dmitrivMS commentedon Nov 3, 2026
Remote browsing TPI results
Tested #345466 in Code OSS on Windows x64, with a local session and two Windows VS Code agent hosts over private, authenticated Dev Tunnels. Client and both remote hosts were built from
ccbfe2802f57d4bb69c478c7790c829ec486f75e(1.146.0; client Electron 43.8.3).Bugs filed
tunnel__...authority in its tooltip and accessible label. Reproduced on both hosts.Both issues are assigned to Kyle Cutler (@kycutler) and linked to this TPI.
Coverage
127.0.0.1:43187URL reached distinct local, host-1, and host-2 appsSetup, limits, and cleanup
workbench.browser.enableRemoteProxywas enabled andworkbench.browser.dataStorageremaineddefault. The proxy setting was restored to enabled after its test.pnpm run install-fast,pnpm run build-fast, andpnpm run electroncompleted successfully. The remote source builds were also prepared successfully.dmitrivMS commentedon Nov 3, 2026
Local WSL follow-up for #345466
Installed Ubuntu 24.04.5 LTS locally under WSL2 and completed the additional testing. This supersedes the earlier "WSL not tested" limitation.
Environment
6.18.33.2-microsoft-standard-WSL2, x64, NAT networking.ccbfe2802f57d4bb69c478c7790c829ec486f75e.Results
local, WSL browser servedwslExisting bugs confirmed on WSL
Connected via Ubuntu-24.04intohex-77736c3a5562756e74752d32342e3034 is disconnected...in both tooltip and accessible label. Reconnecting restores the friendly name. Added the WSL reproduction and broadened the issue title.No additional WSL-specific browser regression was found in the exercised scenarios.
Validation and evidence
wsl.exe --install Ubuntu-24.04 --no-launch --web-download --version 2: passed.pnpm run install-fast: passed.pnpm run build-fast --client-only: passed.