Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

docs: a conversation spans the tabs you add, what the agent is told of them, how closing its first tab hands it on, and protocol 26

Shahriarf41fe5b0e0e1
diff --git a/README.md b/README.md
index e2a6f80..1da45f3 100644
--- a/README.md
+++ b/README.md
@@ -137,7 +137,7 @@ The extension dials out to Browsentic Bridge, because a Manifest V3 service work
![The side panel in Chrome partway through a run, waiting for approval to send a reminder; the Mac app's Overview and its one-click setup; the Windows app's agent picker and its Android phone checks](docs/assets/side-panel-and-apps.webp)
-The [side panel](docs/guide/features/conversations.md) is where you work with the agent. Every page action shows up as a step, and consequential ones, such as submitting a form, wait for your [approval](docs/guide/approvals.md). A new tab opens [Browsentic Home](docs/guide/features/new-tab.md), a full-page composer with your frequent sites, which hands the task to the side panel as soon as you send it; you can switch it off.
+The [side panel](docs/guide/features/conversations.md) is where you work with the agent. Every page action shows up as a step, and consequential ones, such as submitting a form, wait for your [approval](docs/guide/approvals.md). Put several of your own tabs in one conversation and the panel stays on it as you move between them, and the agent works across them. A new tab opens [Browsentic Home](docs/guide/features/new-tab.md), a full-page composer with your frequent sites, which hands the task to the side panel as soon as you send it; you can switch it off.
The desktop apps for [macOS](docs/guide/mac-app.md) and [Windows](docs/guide/windows-app.md) ([experimental](docs/guide/limits.md#windows-is-experimental)) install Node and Browsentic Bridge in one click, turn the Bridge on and off, add the extension to each browser, pick the [agent CLI](docs/guide/agents.md) and its model, and check an [Android phone](docs/guide/features/android.md) before the side panel drives it.
diff --git a/docs/guide/README.md b/docs/guide/README.md
index cb2d85e..a0ee52c 100644
--- a/docs/guide/README.md
+++ b/docs/guide/README.md
@@ -16,7 +16,7 @@ Three short steps, about five minutes in total, with no account, no API key and
| | |
| --- | --- |
-| [Conversations](features/conversations.md) | Voice, text, one conversation per tab, history |
+| [Conversations](features/conversations.md) | Voice, text, conversations across your tabs, history |
| [Instant commands](features/instant-commands.md) | Commands that run in the browser in milliseconds, without an agent |
| [Page actions](features/page-actions.md) | What the agent can do on a page |
| [Screenshots](features/screenshots.md) | Capturing the viewport, the full page, or one element |
diff --git a/docs/guide/features/README.md b/docs/guide/features/README.md
index 2da782b..832f6a7 100644
--- a/docs/guide/features/README.md
+++ b/docs/guide/features/README.md
@@ -9,7 +9,7 @@ If you have not set Browsentic up yet, start with [Install](../install.md), [Pai
| | |
| --- | --- |
-| [Conversations](conversations.md) | Typing and dictating, one conversation per tab, the sessions strip, history |
+| [Conversations](conversations.md) | Typing and dictating, conversations across your tabs, the sessions strip, history |
| [New tab](new-tab.md) | Browsentic Home on every new tab: a composer, your frequent sites and recent conversations, and how to switch it off |
| [Hands-free](hands-free.md) | Talking to the page through a mic you can drag anywhere, with the side panel put away |
| [Instant commands](instant-commands.md) | Commands such as "go back" and "scroll to the top" that run in milliseconds without an agent |
diff --git a/docs/guide/features/conversations.md b/docs/guide/features/conversations.md
index ca904f1..af371ce 100644
--- a/docs/guide/features/conversations.md
+++ b/docs/guide/features/conversations.md
@@ -32,16 +32,45 @@ subject.
---
-## One conversation per tab
+## Conversations and tabs
Each tab gets its own conversation, and several can run at once.
-A conversation is **bound to the tab it started in**. It keeps working there while you read something
-else, and its actions stay in that tab instead of following whichever tab you are looking at, so you
-can start a slow job and switch to other work.
+A conversation is **bound to its tabs**: the tab it started in, any tabs you add to it, and the tabs
+its runs open. It keeps working there while you read something else, and its actions stay in its own
+tabs instead of following whichever tab you are looking at, so you can start a slow job and switch to
+other work.
**The side panel follows the tab in front.** Switch tabs and the chat switches to that tab's
-conversation, or to a new empty one if it has none.
+conversation, or to a new empty one if it has none. Moving between tabs of the same conversation
+keeps the panel where it is.
+
+### Adding your own tabs
+
+Related work often sits in several tabs: a Jira issue, the Zendesk ticket about it, the runbook. Put
+them in one conversation and the panel stays on it as you move between them.
+
+- **The tabs button** in the composer, beside the paperclip, lists the conversation's tabs and adds
+ more; `/tabs` opens it too. Its picker lists this window's other web pages, and the tabs you
+ selected in the tab strip (Ctrl or Shift click, ⌘ click on a Mac) come already ticked.
+- **Right-click a page** and choose **Add this tab to**, then the conversation. When the tab is part
+ of a selection in the tab strip, the whole selection goes. Firefox also offers it when you
+ right-click a tab itself. It can be switched off in Settings → Extension.
+
+On a tab with no conversation yet, adding tabs starts one there, so you can gather the tabs before
+the first message.
+
+A tab belongs to one conversation at a time. Adding a tab another conversation holds moves it; if
+that leaves the other conversation with no tab, it goes to **History** and a note says so. A tab a
+running conversation is working in stays where it is.
+
+Once a conversation has more than one tab, the button shows their icons. Open it to jump to one, or
+take one out with **×**; the tab stays open. Nothing can be taken out while a run is going.
+
+**What the agent is told.** With more than one tab, each message tells the agent the conversation's
+tabs: their ids, titles and sites, and which one it is working in. The tab you send a message from
+becomes the one it works in. It moves between them without asking you; switching to any other tab,
+or closing one of yours, still asks. A tab on a [blocked site](blocked-sites.md) is never listed.
### The sessions strip
@@ -77,18 +106,19 @@ While a conversation is working, its tab is marked in two places, a dot on the B
icon and a dot drawn on the tab's own favicon, so a run you have moved away from still shows in the
tab strip.
-### Subtabs
+### Tabs the agent opens
-If a conversation opens a tab of its own, that tab joins the session as a subtab and its work goes
-into the same transcript. A run will not act in a tab another conversation has claimed; trying
-returns `TAB_IN_USE`.
+If a run opens a tab of its own, that tab joins the conversation and its work goes into the same
+transcript. A run will not act in a tab another conversation has claimed; trying returns
+`TAB_IN_USE`.
### Closing things
| | |
| --- | --- |
| **Closing the panel** | Stops nothing. The tab is the anchor. |
-| **Closing the tab** | Ends the session: the run is cancelled and the transcript moves to **History**. |
+| **Closing the tab it started in** | Hands the conversation to another tab you put in it, with a note. With none left, the session ends: the run is cancelled and the transcript moves to **History**. |
+| **Closing another of its tabs** | Takes that tab out. The conversation carries on. |
| **Cancelling** | Stops the run in the conversation you are looking at. The others keep going. |
### Limits
diff --git a/docs/guide/features/scheduling.md b/docs/guide/features/scheduling.md
index bba28bd..1011d12 100644
--- a/docs/guide/features/scheduling.md
+++ b/docs/guide/features/scheduling.md
@@ -27,7 +27,8 @@ message you already sent, and **Schedule** on a recording, do the same.
every weekday at 09:00, open github.com/pulls and summarise what is waiting on my review
```
-Each run opens its own background tab on the task's page, does the job and closes the tab. The result
+Each run opens its own background tab on the task's page, does the job and closes the tabs it opened;
+a tab you added to its conversation stays open. The result
arrives as a notice on the page you are looking at. Every run is added to the task's history (when it
ran, how it went, its one-line result and, for the last three runs, the whole transcript), never to
the History tab.
diff --git a/docs/internals/agent-runs.md b/docs/internals/agent-runs.md
index e9a66e9..ccff3b3 100644
--- a/docs/internals/agent-runs.md
+++ b/docs/internals/agent-runs.md
@@ -50,7 +50,7 @@ sequenceDiagram
S->>B: instruction + the tab it was typed on
B->>B: resolve tab → session, tryFastPath() (grammar)
- B->>D: {t:"instruct", id, text, context (url, tabId, sessionId, files, recordings)}
+ B->>D: {t:"instruct", id, text, context (url, tabId, sessionId, files, recordings, tabs)}
D->>D: route skill, derive scope, build system prompt
D->>K: spawn with --mcp-config {browsentic}, BROWSENTIC_AGENT_RUN=<runId>
K->>M: stdio (its only MCP server)
diff --git a/docs/internals/extension.md b/docs/internals/extension.md
index 5ecbea5..4c47c40 100644
--- a/docs/internals/extension.md
+++ b/docs/internals/extension.md
@@ -512,15 +512,17 @@ leaves out both entrypoints. No new permission was needed.
## Tab scoping
-A panel conversation is **bound to the tab it started in**.
+A panel conversation is **bound to its tabs**: the tab it started in, the tabs the user added, and
+the tabs its runs reached.
The background keeps a registry of tab sessions in `browser.storage.session` under
`browsentic/tabSessions`. Each entry maps a `sessionId` to:
-- its main tab,
-- the subtabs its runs opened,
-- the tab its next action should land on,
-- the live tab title,
+- its main tab, and `tabIds`, every tab it spans,
+- `userTabIds`, the tabs the user put there (the main tab, picker and right-click adds),
+- `openedTabIds`, the tabs its runs or its task opened,
+- the tab its next action should land on (`currentTabId`),
+- the live title of its main tab,
- the run currently going in it, if any.
Every frame the daemon sends for an agent run carries that run's `runId`, and the extension resolves
@@ -529,7 +531,10 @@ elsewhere, and two sessions in two tabs act independently.
| Situation | Behaviour |
| --- | --- |
-| A run opens a tab with `page.openTab` | Adopted as a subtab of the same session |
+| The user adds tabs (`addTabs` on the run port, or the right-click item) | Joined to `userTabIds`; a tab held by an idle session moves, and a session left with none is filed to History. A running, phone or task session keeps its tabs |
+| The user sends from one of the session's tabs while it is idle | That tab becomes `currentTabId` (`focusTab`) |
+| A run opens a tab with `page.openTab` | Adopted into the same session and recorded in `openedTabIds` |
+| `page.switchTab` onto a tab no session holds | Adopted, but in neither list |
| `page.switchTab` onto a tab another session owns | Refused with `TAB_IN_USE` |
| Every tab of a session is gone | Its actions fail with `SESSION_TAB_CLOSED` |
| A ninth session is opened | `SESSION_LIMIT` (the cap is 8) |
@@ -545,10 +550,21 @@ that must never be navigated, reloaded or injected into.
A site-mapping run keeps its own older pin, threading a literal `tabId` and failing with
`MAPPING_TAB_CHANGED` if that tab goes away.
+When a session spans more than one tab, `startTurn` sends the daemon its roster in `context.tabs`
+(protocol 26 and later): this window's tabs in tab-strip order, each with its id, sealed title and
+host, the current one marked, and `chosen` on the user's tabs. Tabs on a blocked site are left out
+entirely. The daemon lists them in the prompt and lets `page.switchTab` reach them without asking
+(see [guardrails.md](guardrails.md#scope)).
+
### Lifecycle
-Closing a tab ends its session: the run is cancelled, the transcript is flushed to history, and the
-entry leaves the registry.
+Closing the main tab hands the session to its first heir that is still open, outside a closing
+window: the current tab if the user chose it, then the user's other tabs, then tabs a run reached
+but did not open. The session takes the heir's title and gets a note; a run working in the closed tab
+is cancelled. With no heir, and always for a task's or the phone's session, closing the main tab ends
+the session: the run is cancelled, the transcript is flushed to history, and the entry leaves the
+registry. Closing any other tab only takes it out. A finished scheduled task closes `openedTabIds`
+only, so a tab the user added stays open.
Closing the side panel does **not**: the tab is the anchor. While a run is going, its tab carries a
dot on the toolbar badge and on its favicon.
diff --git a/docs/internals/guardrails.md b/docs/internals/guardrails.md
index e591c93..5528679 100644
--- a/docs/internals/guardrails.md
+++ b/docs/internals/guardrails.md
@@ -183,6 +183,13 @@ arrives without a `url`, so it gets the blank-tab scope; the extension still ref
for the `leaves-pinned-tab` rule. A bare `page.switchTab` with no arguments only *lists* tabs, so it
is not a move.
+A conversation that spans several tabs sends their roster with the instruction. Its ids become
+`sharedTabIds`: `page.switchTab` to one of them is not a move either, but `page.closeTab` on one
+still confirms, and so does a `match` that names no id. Only a tab the user put in the conversation
+(`chosen`) adds its host to the run's hosts, since that is an act in the browser's own interface
+that no page can perform. A tab a page or the agent opened into the conversation is listed but
+widens nothing.
+
---
## Fencing
diff --git a/docs/internals/transport.md b/docs/internals/transport.md
index c4a3560..d3a4148 100644
--- a/docs/internals/transport.md
+++ b/docs/internals/transport.md
@@ -173,7 +173,7 @@ dialling. It never deletes the stored key; only pairing again or `disconnect` re
## Protocol version
-Both sides compile in `SOCKET_PROTOCOL_VERSION` (currently **25**). They used to have to match
+Both sides compile in `SOCKET_PROTOCOL_VERSION` (currently **26**). They used to have to match
exactly. A store copy updates when its browser decides to, not when the daemon does, so the
extension and the daemon are routinely a version apart, and the daemon accepts a **window**:
@@ -193,6 +193,13 @@ a change neither side can do without raises a minimum. A refusal must never stra
v0.8.0 store build unpairs on any refusal and does not retry, so no daemon may refuse protocol 22
until a store build that retries has replaced it.
+### Protocol 26: the conversation's tabs
+
+A side-panel conversation can span several tabs the user chose. From 26, `instruct` carries them in
+`context.tabs`: id, title, host, which one is current and which ones the user chose. The extension
+sends it only to a daemon that speaks 26 (`TABS_PROTOCOL`), and only when there is more than one tab.
+An older daemon gets no roster, so its runs ask before switching to the user's other tabs, as before.
+
### Protocol 25: an agent the extension does not know
An extension looks every agent up by its kind, so one built before an agent was added cannot show