Skip to content

Commit bd975b1

Browse files
committed
docs(browser): explain timeout state
1 parent e2e5b6f commit bd975b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ console.log(JSON.stringify(titles))
202202
## Guardrails
203203
- Top-level `import` statements inside the snippet body are not allowed. Use `await import(...)` instead.
204204
- No CPU-bound infinite loops without `await` — they ignore the timeout. Insert `await new Promise(r => setTimeout(r, 0))` to yield.
205-
- `browser_execute` defaults to 60s; longer timeouts delay your next turn. A timeout returns control without closing CDP, though the last command may still run. Use browser-level `Target.getTargets` to inspect the connection, then continue, switch targets, or reconnect as appropriate.
205+
- `browser_execute` defaults to 60s; longer timeouts delay your next turn. A timeout does not close CDP, though its last command may still run. `Target.getTargets` succeeding means CDP is live; `session.connect()` is then a no-op, and reattaching the same target does not restart its renderer.
206206
207207
## Console
208208
- `console.log`, `console.error`, `console.warn`, `console.info`, `console.debug` are all captured and streamed to the user. Treat them as your stdout. Other `console.*` methods write to bcode's stderr without being captured into the tool result.

0 commit comments

Comments
 (0)