feat(browser): prefer suggested tab targets

This commit is contained in:
Peter Steinberger
2026-04-25 00:35:08 +01:00
parent acb10cd21c
commit 82020bd787
12 changed files with 90 additions and 14 deletions

View File

@@ -513,8 +513,10 @@ Compared to the managed `openclaw` profile, existing-session drivers are more co
- **Dedicated user data dir**: never touches your personal browser profile.
- **Dedicated ports**: avoids `9222` to prevent collisions with dev workflows.
- **Deterministic tab control**: target tabs by raw `targetId`, stable `tabId`
handles such as `t1`, or labels you assign with `open --label` / `tab label`.
- **Deterministic tab control**: `tabs` returns `suggestedTargetId` first, then
stable `tabId` handles such as `t1`, optional labels, and the raw `targetId`.
Agents should reuse `suggestedTargetId`; raw ids remain available for
debugging and compatibility.
## Browser selection