-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Browser Use 2.0 #8941
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
Browser Use 2.0 #8941
Conversation
Review status: Reviewed latest changes at commit 20bdf53. Found one new issue around coordinate fallback in getViewportCoordinate; existing browser session TODOs remain open.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
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.
Pull Request Overview
This PR adds a new Browser Session panel feature that provides a dedicated UI for viewing and controlling browser automation sessions. Key improvements include:
- New standalone browser session panel with navigation controls
- Enhanced coordinate scaling for accurate click/hover actions on downscaled screenshots
- New keyboard press action support
- Improved browser session lifecycle management
- Real-time browser session status tracking
Reviewed Changes
Copilot reviewed 54 out of 54 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| webview-ui/vite.config.ts | Adds browser-panel.html as a new build entry point |
| webview-ui/src/i18n/locales/*/chat.json | Adds translations for new browser session UI labels (session, press, hover actions) |
| webview-ui/src/components/chat/BrowserSessionRow.tsx | Major refactor: adds full browser-like UI with navigation, toolbar, and improved screenshot display |
| webview-ui/src/components/chat/BrowserActionRow.tsx | New component to display browser actions inline in chat with auto-panel-opening logic |
| webview-ui/src/components/browser-session/* | New components for standalone browser session panel |
| src/services/browser/BrowserSession.ts | Adds press() method, cursor visualization, viewport tracking, and state change callbacks |
| src/core/tools/browserActionTool.ts | Implements coordinate scaling from screenshot to viewport dimensions |
| src/core/webview/BrowserSessionPanelManager.ts | New manager for browser panel lifecycle and communication |
| src/shared/*Message.ts | Adds new message types for browser panel communication |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/core/tools/__tests__/BrowserActionTool.coordinateScaling.spec.ts
Outdated
Show resolved
Hide resolved
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.
Review complete. I found 3 issues that should be addressed before approval. Please see the inline comments and checklist above.
9311f10 to
d9df0df
Compare
3ed1783 to
20bdf53
Compare
Summary
This upgrades the in‑chat browsing experience with persistent sessions, clearer feedback, a dedicated browser panel, and more natural action descriptions.
Extension.Development.Host.rc10.2025-11-05.13-47-15.mp4
What's new
What you'll notice in the UI
Important
This PR enhances the in-chat browsing experience with persistent sessions, a dedicated browser panel, improved action descriptions, and various UI and backend updates to support these features.
browser-panel.tsxtovite.config.tsinput.presentAssistantMessage()inpresentAssistantMessage.tsto handle browser session logic.getEnvironmentDetails.tsto include browser session status.BrowserSessionPanelManager.tsfor managing the browser session panel.BrowserSession.tsto handle new session behaviors and interactions.BrowserSession.spec.tsandBrowserActionTool.coordinateScaling.spec.ts.This description was created by
for 2dde656. You can customize this summary. It will automatically update as commits are pushed.