Skip to content

Conversation

@ctate
Copy link
Collaborator

@ctate ctate commented Feb 10, 2026

Update setupContextTracking in BrowserManager to auto-switch activePageIndex to newly opened tabs and invalidate the CDP session accordingly. This mirrors what newTab() and newWindow() already do for explicitly created tabs, and aligns CLI behavior with how real browsers focus newly opened tabs.

Fixes #384

Update `setupContextTracking` in `BrowserManager` to auto-switch `activePageIndex` to newly opened tabs and invalidate the CDP session accordingly. This mirrors what `newTab()` and `newWindow()` already do for explicitly created tabs, and aligns CLI behavior with how real browsers focus newly opened tabs.

Fixes #384
@vercel
Copy link
Contributor

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-browser Ready Ready Preview, Comment Feb 10, 2026 4:45pm

@ctate ctate merged commit dc53fed into main Feb 10, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should the current tab in CLI be synchronized with the tabs in the browser?

1 participant