Skip to content

Commit b419fc3

Browse files
authored
patch stagehand agent api support (#1116)
# why currently when using stagehand agent through api, it returns early without executing # what changed we now properly handle the options when none are present # test plan tested locally, and tested across other cua agents to ensure no breaking changes
1 parent cbff109 commit b419fc3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/nice-dogs-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
patch stagehand agent api support

lib/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,9 @@ export class Stagehand {
992992
throw new StagehandNotInitializedError("API client");
993993
}
994994

995+
if (!options) {
996+
options = {};
997+
}
995998
if (!options.options) {
996999
options.options = {};
9971000
}

0 commit comments

Comments
 (0)