We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45bcef0 commit 4e051b2Copy full SHA for 4e051b2
.changeset/fruity-clowns-pick.md
@@ -0,0 +1,5 @@
1
+---
2
+"@browserbasehq/stagehand": patch
3
4
+
5
+fix: don't attach to targets twice
packages/core/lib/v3/understudy/context.ts
@@ -415,6 +415,7 @@ export class V3Context {
415
416
const targets = await this.conn.getTargets();
417
for (const t of targets) {
418
+ if (t.attached) continue; // auto-attach already handled this target
419
try {
420
await this.conn.attachToTarget(t.targetId);
421
} catch {
0 commit comments