Skip to content

Patch issue with passing a created session_id to init on api mode #168

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

Conversation

miguelg719
Copy link
Collaborator

why

Session id is not serialized properly when reconnecting to a session

what changed

Made sure init() calls _createSession() when passing an existing session_id

test plan

@miguelg719 miguelg719 marked this pull request as ready for review July 25, 2025 00:37
@@ -30,6 +30,7 @@ async def _create_session(self):
"modelName": self.model_name,
"verbose": 2 if self.verbose == 3 else self.verbose,
"domSettleTimeoutMs": self.dom_settle_timeout_ms,
"browserbaseSessionID": self.session_id,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if a session exists, it resumes it, correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's right, this fixes

@filip-michalsky
Copy link
Collaborator

add a changeset?

@miguelg719 miguelg719 merged commit a7d8c5e into main Jul 25, 2025
8 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.

2 participants