Skip to content

Commit 55c07d7

Browse files
authored
Merge pull request #176 from browser-use/fix/renderer-crash-recovery-20261007
docs(browser): clarify recovery after a tab or Chrome crash
2 parents 5140cef + 42f8a09 commit 55c07d7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • packages/bcode-browser/skills/browser-execute

‎packages/bcode-browser/skills/browser-execute/SKILL.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ await session.use(page.targetId)
108108
109109
If a target-scoped command throws `CdpError` code `-32001` (`Session with given id not found`), the browser connection is still usable but the target session is stale. List targets again, `session.use(...)` the intended page, and retry the rejected command once. Calling `session.connect()` without arguments is a no-op while connected; it does not replace a stale target session.
110110
111+
If a tab or Chrome crashes, recover with a fresh tab or the available browser-replacement API instead of repeatedly retrying the dead page, and verify previous submissions before repeating them.
112+
111113
Every explicit reconnect or browser switch retires the previous socket and clears its active target attachment. Re-list targets, call `session.use(...)`, and rediscover DOM nodes and Runtime objects before continuing.
112114
113115
Opening a tab creates a new `page` target but does not switch the active attachment. Call `Target.getTargets` again and `session.use(targetId)` when continuing there.

0 commit comments

Comments
 (0)