File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export class StagehandAPI {
43
43
waitForCaptchaSolves,
44
44
actionTimeoutMs,
45
45
browserbaseSessionCreateParams,
46
+ browserbaseSessionId,
46
47
} : StartSessionParams ) : Promise < StartSessionResult > {
47
48
const sessionResponse = await this . request ( "/sessions/start" , {
48
49
method : "POST" ,
@@ -56,6 +57,7 @@ export class StagehandAPI {
56
57
waitForCaptchaSolves,
57
58
actionTimeoutMs,
58
59
browserbaseSessionCreateParams,
60
+ browserbaseSessionId,
59
61
} ) ,
60
62
headers : {
61
63
"x-model-api-key" : modelApiKey ,
Original file line number Diff line number Diff line change @@ -626,6 +626,7 @@ export class Stagehand {
626
626
waitForCaptchaSolves : this . waitForCaptchaSolves ,
627
627
actionTimeoutMs : this . actTimeoutMs ,
628
628
browserbaseSessionCreateParams : this . browserbaseSessionCreateParams ,
629
+ browserbaseSessionId : this . browserbaseSessionID ,
629
630
} ) ;
630
631
this . browserbaseSessionID = sessionId ;
631
632
}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export interface StartSessionParams {
24
24
selfHeal ?: boolean ;
25
25
waitForCaptchaSolves ?: boolean ;
26
26
actionTimeoutMs ?: number ;
27
+ browserbaseSessionId ?: string ;
27
28
}
28
29
29
30
export interface StartSessionResult {
You can’t perform that action at this time.
0 commit comments