Skip to content

Frame ID map for multi-tab support (API) #174

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

Merged
merged 3 commits into from
Aug 12, 2025

Conversation

miguelg719
Copy link
Collaborator

why

Feature parity for PRs in TS:

Stagehand now provides multi-tab support and this PR allows consistent expected behavior on both envs ("BROWSERBASE/LOCAL")

what changed

  • Added a frame_id_map to keep track of pages (now that live_page_proxy auto updates) in context.py
  • Added a frame_id property to StagehandPage
  • Pass the optional frame_id on api routes

test plan

Included unit test and regression:

@miguelg719 miguelg719 marked this pull request as ready for review August 11, 2025 23:56
@filip-michalsky filip-michalsky self-requested a review August 12, 2025 00:19
@filip-michalsky
Copy link
Collaborator

LGTM once we add my additions from here

@miguelg719 miguelg719 merged commit 2e3eb1a into main Aug 12, 2025
22 of 23 checks passed
@github-actions github-actions bot mentioned this pull request Aug 9, 2025
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.

2 participants