-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Chrome remote webtools #1528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome remote webtools #1528
Conversation
|
| // Try to get the default gateway from the route table | ||
| if (process.platform === "linux") { | ||
| try { | ||
| const { stdout } = await vscode.window.withProgress( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of vscode.window.withProgress for retrieving Docker gateway IP couples business logic with UI. Consider refactoring this to a utility function that can run headlessly (or use a child process directly) if no user feedback is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
… execution function
|
@afshawnlotfi how does RooCodeInc/Roo-Code-Docs#72 look? |
|
Looks great |
Add Remote Browser Connection Feature
Overview
This PR adds the ability for Roo to connect to a remote Chrome browser instance instead of launching a local one. This feature is particularly useful in containerized environments or when users want to use a specific Chrome instance with custom configurations.
Features
UI Changes
Technical Implementation
browserDiscovery.tsmodule for finding Chrome instances on the networkBrowserSession.tsto support connecting to remote browsersHow It Works
Testing
Setup Instructions
To use the remote browser connection feature:
Launch Chrome with Remote Debugging Enabled:
Alternatively, you can access Chrome's DevTools inspection page at
chrome://inspectTechnical Details:
DevContainer Configuration:
If you're using a devcontainer, you need to establish a host bridge by adding this to your
devcontainer.json:Important
Adds remote Chrome connection feature with auto-discovery, manual configuration, and UI updates for connection testing and state management.
ClineProvider.ts.BrowserSettings.tsx.BrowserSettings.tsx.ExtensionStateContext.tsxto handle remote browser settings.remoteBrowserEnabledandremoteBrowserHosttoExtensionStateinExtensionMessage.ts.ClineProvider.test.ts.discoverChromeInstancesandtestBrowserConnectionfunctions inbrowserDiscovery.ts.BrowserSession.tsto manage remote connections and caching.This description was created by
for 71795d5. It will automatically update as commits are pushed.