Skip to content

fix: reuse persistent browser tab in Playwright profiles#37

Open
vladislav23811 wants to merge 1 commit into
FatihMakes:mainfrom
vladislav23811:fix/browser-persistent-page
Open

fix: reuse persistent browser tab in Playwright profiles#37
vladislav23811 wants to merge 1 commit into
FatihMakes:mainfrom
vladislav23811:fix/browser-persistent-page

Conversation

@vladislav23811

Copy link
Copy Markdown

Summary

  • Reuse the first open tab in a persistent Playwright context when navigating, instead of always calling new_page().
  • Add JARVIS_CAMERA_INDEX environment variable for webcam selection on multi-camera systems.

Motivation

Addresses duplicate-tab / BrowserContext.new_page issues with persistent Playwright profiles (#31) and camera index selection (#20).

Test plan

  • Launch Jarvis with a persistent browser profile
  • Open a URL twice — should reuse the same tab when possible
  • Set JARVIS_CAMERA_INDEX=1 and confirm webcam on multi-camera PCs

- Prefer an existing Playwright page in persistent profiles instead of
  always calling new_page() (fixes duplicate-tab / BrowserContext issues).
- Add JARVIS_CAMERA_INDEX env for webcam selection on multi-camera systems.

Refs FatihMakes/Mark-XL#31

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant