From 194b4f7c1d0ea80fee4f0f011b53c3906858cb50 Mon Sep 17 00:00:00 2001 From: Saksham Chawla Date: Thu, 15 May 2025 23:34:24 +0530 Subject: [PATCH] Allow session id to be passed through env vars If a user instantiates a browserbase session ( which would supports live view url ), this allows them to continue the session with stagehand. This is helpful for developers who want to embed the stagehand session in their product since they can now use the live view url provided by browserbase instantiation. --- stagehand.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stagehand.config.ts b/stagehand.config.ts index 4c901799b..311cb420a 100644 --- a/stagehand.config.ts +++ b/stagehand.config.ts @@ -20,7 +20,7 @@ const StagehandConfig: ConstructorParams = { apiKey: process.env.BROWSERBASE_API_KEY /* API key for authentication */, projectId: process.env.BROWSERBASE_PROJECT_ID /* Project identifier */, browserbaseSessionID: - undefined /* Session ID for resuming Browserbase sessions */, + process.env.BROWSERBASE_SESSION_ID /* Session ID for resuming Browserbase sessions */, browserbaseSessionCreateParams: { projectId: process.env.BROWSERBASE_PROJECT_ID!, browserSettings: {