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.

feat(extension): the toolbar button opens the side panel, with no popup in between: Chrome and Edge through sidePanel.setPanelBehavior, Firefox by toggling its sidebar, and a Chromium browser without a side panel keeps the old popup as a launcher; the popup shortcut is now Same as the toolbar button, and every message, app and doc that sent people to the popup names the side panel

Shahriar126d3b74aaed
diff --git a/docs/guide/agents.md b/docs/guide/agents.md
index a514583..cf08b05 100644
--- a/docs/guide/agents.md
+++ b/docs/guide/agents.md
@@ -11,9 +11,8 @@ MCP endpoint, which works with any client; see [MCP clients](mcp-clients.md).
## Picking an agent and a model
-Pick the agent in the toolbar popup or behind the side panel's status pill. Each agent shows its
-state (*ready*, *not installed* or *needs setup*), so a missing CLI shows up before you send an
-instruction.
+Pick the agent behind the side panel's status pill. Each agent shows its state (*ready*, *not
+installed* or *needs setup*), so a missing CLI shows up before you send an instruction.
Each installed agent also has a model select. *Default* runs whatever that CLI would run on its own.
A picked model is remembered per agent and applies from the next instruction. Changing the model
@@ -35,12 +34,12 @@ The other four have no such command, so the select offers a short list shipped w
Claude Code that list is its aliases (`fable`, `opus`, `sonnet`, `haiku`), which it resolves to the
newest model of each family.
-The Bridge reads each list in the background, so the popup never waits on one. A list is kept for
-six hours and read again at once when the CLI is updated; *Recheck* reads it again immediately. If a
-read fails (the CLI is signed out, times out, or prints something Browsentic cannot parse), the last
-list that read cleanly stays, or the shipped one if there is none, and the line under the select
-says why. A model you pinned yourself is never changed: if the CLI stops listing it, it stays
-selected, marked *not listed*.
+The Bridge reads each list in the background, so the agent picker never waits on one. A list is
+kept for six hours and read again at once when the CLI is updated; *Recheck* reads it again
+immediately. If a read fails (the CLI is signed out, times out, or prints something Browsentic
+cannot parse), the last list that read cleanly stays, or the shipped one if there is none, and the
+line under the select says why. A model you pinned yourself is never changed: if the CLI stops
+listing it, it stays selected, marked *not listed*.
From a terminal:
@@ -116,7 +115,7 @@ starts Codex with `--ignore-user-config` instead, because a `-c` flag only merge
`mcp_servers={}` clears nothing, and settings on a `browsentic` entry of your own would land on the
run's. Either way your sign-in comes from `~/.codex`, and through exec the `model` and
`model_reasoning_effort` at the top of your `config.toml` still apply when nothing is picked in the
-popup.
+agent picker.
**Through exec, Codex hides the tools.** They are deferred behind its `tool_search`, and on a
code-mode model (`gpt-5.6-terra` and the like) they exist only inside its `exec` sandbox. Left alone,
@@ -162,9 +161,9 @@ ships with.
### Antigravity needs one permission rule
Headless `agy` soft-denies any MCP tool it has no rule for, which would refuse every browser action.
-Until the rule exists, the popup shows *needs setup*.
+Until the rule exists, the side panel's agent picker shows *needs setup*.
-The popup's button, or `browsentic agent fix antigravity`, appends exactly one entry,
+The agent picker's button, or `browsentic agent fix antigravity`, appends exactly one entry,
`mcp(browsentic/*)`, to `permissions.allow` in `~/.gemini/antigravity-cli/settings.json` and leaves
the rest of that file alone. Nothing is written until you press it. If a `deny` rule of yours covers
the same tools, Browsentic will not overrule it; remove it yourself.
@@ -176,7 +175,8 @@ passes, the containment, the browser tools reaching a run, and each error Grok r
conversation has run end to end yet, because the account it was built on was rate-limited before
the model answered. Expect rough edges, and please report them.
-- **Sign in first.** Run `grok login`, or set `XAI_API_KEY`. Until then the popup shows *needs setup*.
+- **Sign in first.** Run `grok login`, or set `XAI_API_KEY`. Until then the agent picker shows
+ *needs setup*.
- **A free Grok account is rate-limited.** Grok retries quietly for several minutes before giving
up, so a run can sit silent that long before it fails with *xAI did not answer*.
- **Other tools' MCP servers and Grok's memory are switched off.** Grok normally loads Claude Code's
@@ -237,8 +237,8 @@ and please report them.
- **Configure a provider first.** Qwen OAuth's free tier ended on 2026-04-15 and its requests are
now rejected, so installing Qwen and logging in is not enough. Run `qwen` and use `/auth`, or
- export `OPENAI_API_KEY` with `OPENAI_BASE_URL` pointed at your endpoint. Until then the popup
- shows *needs setup* and a run fails with *No auth type is selected*.
+ export `OPENAI_API_KEY` with `OPENAI_BASE_URL` pointed at your endpoint. Until then the agent
+ picker shows *needs setup* and a run fails with *No auth type is selected*.
- **Only some keys reach a run.** Browsentic keeps `QWEN_*`, `DASHSCOPE_*`, `BAILIAN_*` and
`OPENAI_*` in the run's environment and seals the rest away, so the `anthropic` and `gemini` auth
types Qwen also accepts will not find their keys. This is deliberate:
@@ -278,7 +278,7 @@ them.
- **Sign in to a provider first.** Run `opencode auth login`. Zen's free models answer only
requests that carry OpenCode's own built-in tools. A Browsentic run carries only the browser's, so
they refuse it with *free tier can only be used from within OpenCode*. Until OpenCode has a login,
- or a provider in its config such as a local model, the popup shows *needs setup*.
+ or a provider in its config such as a local model, the agent picker shows *needs setup*.
- **Models are `provider/model`**, spelled as `opencode models` lists them.
- **A key in the environment does not reach a run.** Only `OPENCODE_*` does; `ANTHROPIC_API_KEY`
and the like are sealed away. `opencode auth login` keeps the key in OpenCode's own file instead,
@@ -359,7 +359,7 @@ Claude runner's settings.
| Qwen Code: *No auth type is selected* | Qwen has no provider configured, and its OAuth free tier has ended. Run `qwen` and use `/auth`, or export `OPENAI_API_KEY` with `OPENAI_BASE_URL`. |
| Qwen Code cannot find a key you have exported | Only `QWEN_*`, `DASHSCOPE_*`, `BAILIAN_*` and `OPENAI_*` reach a run; `ANTHROPIC_*` and `GEMINI_*` are sealed away. Point Qwen at one of the first four. |
| `AGENT_UNSAFE`: *Qwen Code registered …* or *loaded the MCP server …* | Qwen's own `init` line named a tool or a server Browsentic denied, so the run was stopped. Update Qwen Code and Browsentic, and report it if it persists. |
-| OpenCode: *free models refuse a run whose tools Browsentic has narrowed to the browser* | Zen's free tier serves only requests carrying OpenCode's own tools. Run `opencode auth login`, then pick that provider's model in the popup. |
+| OpenCode: *free models refuse a run whose tools Browsentic has narrowed to the browser* | Zen's free tier serves only requests carrying OpenCode's own tools. Run `opencode auth login`, then pick that provider's model in the side panel's agent picker. |
| OpenCode: *could not start this turn* | Usually a model OpenCode does not know. Pick one as `opencode models` lists it, `provider/model`. |
| The model select says *built-in list*, with a reason | Browsentic could not read that CLI's own list, usually because it is signed out. Sign it in, then press *Recheck*. The shipped list works meanwhile. |
| A model shows *not listed* | You pinned it, and the CLI no longer lists it. It is still passed to the CLI; pick a listed one if runs start failing. |
diff --git a/docs/guide/approvals.md b/docs/guide/approvals.md
index b23a661..d21a699 100644
--- a/docs/guide/approvals.md
+++ b/docs/guide/approvals.md
@@ -189,7 +189,7 @@ reading**, and then the gate no longer tells you anything.
These settings can be changed without opening a file, from two places that edit the same rows:
- **The settings page**, under **Guardrails**. Open it with the sliders button in the side panel's
- header or the popup, or right-click the toolbar icon → **Options**.
+ header, or right-click the toolbar icon → **Options**.
- **The Mac app's Settings tab**, in its **Guardrails** card.
A change made in one shows up in the other at once, and so does a hand edit of the file.
diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md
index 0b43df1..5001722 100644
--- a/docs/guide/configuration.md
+++ b/docs/guide/configuration.md
@@ -129,16 +129,16 @@ ceiling is clamped; a value that is not a number ≥ 1 falls back to the default
| Key | Default | Notes |
| --- | --- | --- |
-| `theme` | absent (Ember) | `ember`, `midnight`, `phosphor` or `daylight`: the look of the side panel, the popup and the settings page |
+| `theme` | absent (Ember) | `ember`, `midnight`, `phosphor` or `daylight`: the look of the side panel and the settings page |
Pick it from the row of tiles under **Appearance** in the **Extension** section of the settings
page, or under **Browser theme** in the Mac app's Settings tab: **Ember** (warm near-black, cyan),
**Midnight** (cool blue-black, violet), **Phosphor** (a green CRT) and **Daylight** (ink on paper).
Each tile is drawn in the theme it offers.
-One theme applies to every paired browser: picking one anywhere repaints the side panel, the popup
-and the settings page in all of them. A browser that has never been paired keeps its choice locally
-and hands it to the Bridge when it first connects; a theme picked while the Bridge is unreachable is
+One theme applies to every paired browser: picking one anywhere repaints the side panel and the
+settings page in all of them. A browser that has never been paired keeps its choice locally and
+hands it to the Bridge when it first connects; a theme picked while the Bridge is unreachable is
handed over at the next connect. The Mac app's own window has a separate System / Light / Dark
setting.
@@ -151,7 +151,7 @@ in `config.json`; each browser keeps its own.
| --- | --- |
| **On the page** | **Show what the agent does**: the [action cues](features/action-cues.md) ring on each element an agent acts on. Off until you switch it on; the composer's button and the mic's menu switch the same setting |
| **Right-click menu** | Whether a right-click on a page offers **Open Browsentic** (the side panel) and **Open Browsentic (Hands Free)**. Both are on until you switch one off. With both on, the browser groups them under a **Browsentic** entry |
-| **Keyboard shortcuts** | Shows the keys for **Open the popup**, **Open or close the side panel** and **Start or stop hands-free**. The browser owns these: it gives the side panel **Alt+Shift+B** and hands-free **Alt+Shift+H** (**⌥⇧B**, **⌥⇧H** on a Mac) at install unless something else already has them, and **Change shortcuts** opens its own shortcuts page. Firefox has the popup and the sidebar only |
+| **Keyboard shortcuts** | Shows the keys for **Same as the toolbar button**, **Open or close the side panel** and **Start or stop hands-free**. The browser owns these: it gives the side panel **Alt+Shift+B** and hands-free **Alt+Shift+H** (**⌥⇧B**, **⌥⇧H** on a Mac) at install unless something else already has them, and **Change shortcuts** opens its own shortcuts page. Firefox has the toolbar button and the sidebar only |
| **Hands-free** | **Hold to talk**, the same switch as in the mic's own menu |
The hands-free item, shortcut and block show only in a browser that can transcribe speech; see
diff --git a/docs/guide/features/blocked-sites.md b/docs/guide/features/blocked-sites.md
index c4d4115..c3220d6 100644
--- a/docs/guide/features/blocked-sites.md
+++ b/docs/guide/features/blocked-sites.md
@@ -4,8 +4,8 @@ A list of sites Browsentic never reads or acts on, such as your bank, your mail
console. The list is enforced inside the browser, so no agent, MCP client or Bridge setting can
loosen it.
-Open settings from the sliders button at the top of the side panel or the popup, and pick
-**Blocked sites**. It works without pairing.
+Open settings from the sliders button at the top of the side panel, and pick **Blocked sites**. It
+works without pairing.
---
diff --git a/docs/guide/features/conversations.md b/docs/guide/features/conversations.md
index e36d8f7..df8bf14 100644
--- a/docs/guide/features/conversations.md
+++ b/docs/guide/features/conversations.md
@@ -7,13 +7,12 @@ what the side panel shows while runs are going.
## Voice and text
-Four ways in:
+Three ways in:
| | |
| --- | --- |
| **Type** | The composer at the bottom of the side panel |
| **Dictate** | Press the mic in the side panel and talk |
-| **Press to talk** | In the popup, when the panel is not open |
| **Hands-free** | The panel put away and a mic on the page; see [Hands-free](hands-free.md) |
Speech uses the browser's built-in recognition. Nothing is bundled or downloaded, which in Chrome
@@ -21,8 +20,8 @@ means audio is streamed to Google for transcription. If that matters to you, typ
[Limits](../limits.md#speech-goes-to-google).
The first time you turn the mic on, the panel shows **Allow microphone**. It opens a Browsentic tab
-where the browser can ask for access, because a side panel and a popup have nowhere to show that
-prompt. Choose **Allow** once; the tab closes itself and dictation starts.
+where the browser can ask for access, because a side panel has nowhere to show that prompt. Choose
+**Allow** once; the tab closes itself and dictation starts.
Replies stream back token by token. Follow-ups continue the same conversation, so **"now click the
second one"** works.
diff --git a/docs/guide/features/hands-free.md b/docs/guide/features/hands-free.md
index 18f3db9..a769410 100644
--- a/docs/guide/features/hands-free.md
+++ b/docs/guide/features/hands-free.md
@@ -4,9 +4,8 @@ Hands-free mode replaces the side panel with a microphone on the page. You give
voice, and the panel's main controls are in a menu that opens when you hover over the mic.
It works only in browsers that can turn speech into text: Chrome, Edge, and other Chromium browsers
-with a speech service behind them. Elsewhere there is no detach button, no
-`/hands-free`, no **Open hands-free** in the popup, no right-click item and no mic on the page (see
-[Which browsers](#which-browsers)).
+with a speech service behind them. Elsewhere there is no detach button, no `/hands-free`, no
+right-click item and no mic on the page (see [Which browsers](#which-browsers)).
---
@@ -17,7 +16,6 @@ Any of these turns it on:
- the **detach** button in the side panel's header, just left of minimize
- typing **`/hands-free`** in the composer (the `/` menu offers it once you type `/hand`, and
`/hand-free` works too)
-- **Open hands-free** in the toolbar popup, beside **Open side panel**
- **Open Browsentic (Hands Free)** when you right-click a page; while the mic is on, the item reads
**Close Browsentic (Hands Free)** and turns it off
- the **Start or stop hands-free** shortcut, **Alt+Shift+H** (**⌥⇧H** on a Mac) unless something
@@ -116,7 +114,7 @@ Browsentic offers hands-free mode only where speech recognition works:
| **Chrome, Edge** | Offered |
| **Firefox** | Never offered: it has no speech recognition, and no hidden page to listen from |
| **Brave** | Never offered: it ships the speech API with no service behind it, so every attempt fails |
-| **Other Chromium browsers** | Offered until their speech service first fails without ever having transcribed a word. From then on the detach button, `/hands-free`, the popup button and the right-click item are gone, and a mic already on the page leaves with a note saying why |
+| **Other Chromium browsers** | Offered until their speech service first fails without ever having transcribed a word. From then on the detach button, `/hands-free` and the right-click item are gone, and a mic already on the page leaves with a note saying why |
A browser whose speech service has transcribed even once keeps hands-free for good: a later failure
there counts as a dropped connection, not a missing service. A browser that was written off can get
diff --git a/docs/guide/features/profile.md b/docs/guide/features/profile.md
index b1866e7..f6384d2 100644
--- a/docs/guide/features/profile.md
+++ b/docs/guide/features/profile.md
@@ -9,7 +9,7 @@ sign me up for the newsletter
fill in the delivery details and stop before paying
```
-Open settings from the sliders button at the top of the side panel or the popup, and pick **Profile**.
+Open settings from the sliders button at the top of the side panel, and pick **Profile**.
---
diff --git a/docs/guide/first-run.md b/docs/guide/first-run.md
index 6b887dd..747e0a6 100644
--- a/docs/guide/first-run.md
+++ b/docs/guide/first-run.md
@@ -7,15 +7,14 @@ answer. It assumes you have [installed](install.md) and [paired](pair.md).
## Open the side panel
-Click the Browsentic toolbar icon and press **Open side panel**, or open it from Chrome's side
-panel menu. The popup is for setup (pairing, picking an agent, press-to-talk); the side panel is
-where you work.
+Click the Browsentic toolbar icon, or open it from Chrome's side panel menu. Clicking the icon again
+closes the panel. In Firefox the icon opens and closes the Browsentic sidebar.
## The panel, top to bottom
| | |
| --- | --- |
-| **Status pill** | Connection state. Click it to reopen the pairing form or switch agents without going back to the popup. |
+| **Status pill** | Connection state. Click it to open the pairing form and the agent switcher. |
| **Sessions strip** | One row per tab that has a conversation: its live title, a pulsing dot while it is working, how many messages it holds. Collapses to a single line. See [Conversations](features/conversations.md). |
| **Chat · History · Skills · Recordings · Schedules** | The five sections. Chat is where you talk; the others are covered in [Features](features/). |
| **Timeline** | Every action as it happens, with what it targeted and what came back. |
diff --git a/docs/guide/install.md b/docs/guide/install.md
index c256501..b794b7e 100644
--- a/docs/guide/install.md
+++ b/docs/guide/install.md
@@ -33,8 +33,8 @@ Before you start:
so have one ready before your first run; see [Choosing an agent](agents.md). Only driving the
browser solely from an optional [MCP client](mcp-clients.md) needs no CLI, because that path
starts nothing.
-- **One agent CLI is enough.** Browsentic checks for all of them, and the popup shows which are installed.
- Switching is one click.
+- **One agent CLI is enough.** Browsentic checks for all of them, and the side panel's agent picker
+ shows which are installed. Switching is one click.
---
@@ -104,18 +104,18 @@ Setup, or the app's button for that browser, opens Browsentic's store page in it
| Firefox 140 or newer | [The signed add-on](https://browsentic.com/download/firefox) | Accept both prompts: one lets github.com install software, one adds Browsentic. See [Firefox](#firefox) |
| Ungoogled Chromium, a profile that blocks stores, an unreleased build | None: `setup --unpacked` writes a folder | See [Load unpacked](#load-unpacked-advanced) |
-Pin Browsentic to the toolbar from the puzzle-piece menu, so the popup is one click away. It updates
-itself from its store from then on.
+Pin Browsentic to the toolbar from the puzzle-piece menu, so the side panel is one click away. It
+updates itself from its store from then on.
If you added it from the store before running setup, pick the same browser in setup and enter the
code it shows.
## 3. Pair them, once
-Click Browsentic in the toolbar, enter the code the app or `setup` shows, and press **Connect**. The
-code works once and lives for ten minutes; `browsentic pair`, or **Get a pairing code** in the app,
-issues another. The browser keeps the pairing, so you do this once. [Pairing](pair.md) has the
-detail.
+Click Browsentic in the toolbar to open the side panel, press **Set up the link**, enter the code the
+app or `setup` shows, and press **Connect**. The code works once and lives for ten minutes;
+`browsentic pair`, or **Get a pairing code** in the app, issues another. The browser keeps the
+pairing, so you do this once. [Pairing](pair.md) has the detail.
---
@@ -166,7 +166,8 @@ choose **Install Add-on From File…** and pick it. Either way it is installed f
restarts, unlike anything loaded through `about:debugging`. If `setup` says the file is not attached
yet, Mozilla is still signing that version; it appears within minutes, occasionally longer.
-**2. Enter the pairing code** in the popup and press **Connect**.
+**2. Enter the pairing code** in the side panel (click the status pill to open **Connection**) and
+press **Connect**.
Firefox checks for a newer signed build about once a day. When it has one, the side panel says so
above the prompt; press **Update**, or let the next Firefox start install it. There is no ↻ step.
diff --git a/docs/guide/limits.md b/docs/guide/limits.md
index f567d14..04eb8bb 100644
--- a/docs/guide/limits.md
+++ b/docs/guide/limits.md
@@ -77,7 +77,7 @@ Details are in [internals/guardrails.md](../internals/guardrails.md#spawn-contai
Mistral Vibe, Grok Build, Cursor CLI, Qwen Code and OpenCode were built by reading each CLI and
checking its flags, its containment and its error texts, but none has carried a whole conversation
-end to end yet, so the popup, the docs and the release notes mark them *beta*. In practice:
+end to end yet, so the agent picker, the docs and the release notes mark them *beta*. In practice:
- a run that fails says why, with the command that fixes it, rather than hanging;
- Vibe's replies arrive a message at a time rather than streaming, and it reports no token counts;
diff --git a/docs/guide/pair.md b/docs/guide/pair.md
index 9c102eb..4914349 100644
--- a/docs/guide/pair.md
+++ b/docs/guide/pair.md
@@ -27,13 +27,14 @@ This starts the Bridge if it is not already running and prints a code:
```
Pairing code: K7QM-3XPT
- Open the Browsentic popup, paste it, and press Connect.
+ Open the Browsentic side panel, paste it, and press Connect.
Expires in 10 minutes and works once.
```
-Click Browsentic in the toolbar, enter the code, press **Connect**. In the apps, **Get a pairing
-code** on the Overview tab does the same. Up to three codes are live at once, so a code the app shows
-keeps working while a terminal mints another.
+Click Browsentic in the toolbar to open the side panel, then the status pill (or **Set up the link**
+in the empty chat), enter the code and press **Connect**. In the apps, **Get a pairing code** on the
+Overview tab does the same. Up to three codes are live at once, so a code the app shows keeps
+working while a terminal mints another.
The Bridge then issues a long-lived session key that survives browser and Bridge restarts and lasts
until you revoke it. Updating either side does not need a new pairing.
diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.md
index 5da0db3..63201b6 100644
--- a/docs/guide/troubleshooting.md
+++ b/docs/guide/troubleshooting.md
@@ -22,17 +22,17 @@ Those three answer most questions. The Bridge's log is at `~/.browsentic/daemon.
| Symptom | Cause | Fix |
| --- | --- | --- |
-| The popup says `protocol version mismatch: daemon speaks v20` (any number below 22) | Browsentic Bridge is older than 0.7.14, too old for this extension | Update the Bridge (**Update now** in the app, or `npx browsentic@latest update`), then enter a new pairing code in the popup: after a refusal, this version of the extension waits for one |
-| The popup says `protocol version mismatch: Browsentic Bridge speaks v22 and takes extensions from v22 on` | The extension is older than 0.7.14, usually an unpacked copy that was never updated | Remove it and install the extension from its store, or run `browsentic update` and press ↻ on its card |
+| The side panel's **Connection** sheet says `protocol version mismatch: daemon speaks v20` (any number below 22) | Browsentic Bridge is older than 0.7.14, too old for this extension | Update the Bridge (**Update now** in the app, or `npx browsentic@latest update`), then enter a new pairing code in the side panel: after a refusal, this version of the extension waits for one |
+| The side panel's **Connection** sheet says `protocol version mismatch: Browsentic Bridge speaks v22 and takes extensions from v22 on` | The extension is older than 0.7.14, usually an unpacked copy that was never updated | Remove it and install the extension from its store, or run `browsentic update` and press ↻ on its card |
| The store copy is a version behind the Bridge | The store has not published that version yet, or the browser checked before it did. A browser allows the extension one early check every few hours | Nothing breaks meanwhile, because the two work across versions. Once the browser has the update, the side panel says so above the prompt: press **Update**. To check now, turn on Developer mode at `chrome://extensions` and press **Update** there |
| `browsentic status` says two copies of Browsentic answer in one browser | An unpacked copy and a store copy are both installed, and both inject into every page | Remove the unpacked copy on the browser's extensions page |
| Edge will not install from the Chrome Web Store | Edge blocks other stores until you allow them | Press **Allow extensions from other stores** in the bar at the top of the store page, confirm, then press **Add to Chrome**. Or install from [Edge Add-ons](https://microsoftedge.microsoft.com/addons/detail/browsentic/cbkjhkgjcpihokphhdkbahilpcjojpdc) instead |
| `browsentic setup` keeps waiting for the browser | The extension is installed but not paired yet | Click Browsentic in the toolbar and enter the code `setup` printed. Ctrl-C stops the wait without undoing anything |
-| Popup shows `Expected {op:…}` | Stale service worker after a rebuild | At `chrome://extensions`, press ↻ on Browsentic |
+| The side panel's **Connection** sheet shows `Expected {op:…}` | Stale service worker after a rebuild | At `chrome://extensions`, press ↻ on Browsentic |
| "That pairing code is wrong or expired" | Codes are single-use and last 10 minutes | Run `browsentic pair` for a new code. A failed attempt does not use up the outstanding code |
| "No Browsentic daemon is running" | Browsentic Bridge is not installed, or not running on 8765–8767 | [Install it](install.md#1-install-browsentic), open the app, or run `browsentic start`. Then check `browsentic status` and `browsentic logs` |
| `browsentic: command not found` | The global npm prefix is not on `PATH` | Run `npm prefix -g` and add its `bin` directory to your `PATH` |
-| "Browsentic has not been given the microphone yet" | Browsers cannot show the microphone prompt inside a side panel or a popup, so a fresh install has never asked | Press **Allow microphone** and choose **Allow** in the tab that opens |
+| "Browsentic has not been given the microphone yet" | Browsers cannot show the microphone prompt inside a side panel, so a fresh install has never asked | Press **Allow microphone** and choose **Allow** in the tab that opens |
| "Microphone access is blocked" | Microphone permission was refused for the extension | Press **Allow microphone**, then click the icon at the left of that tab's address bar and set **Microphone** to **Allow** |
| "This browser has no speech service" | Brave and some Chromium builds ship speech recognition without a transcription service behind it | Type instead, or use Chrome or Edge for dictation |
| No detach button in the panel's header, and no `/hands-free` | Hands-free is offered only where speech can be transcribed: never in Firefox or Brave, and not in a browser whose speech service failed before it ever worked | Use Chrome or Edge. If the service was only out of reach, dictate in the panel once: the first word it transcribes brings the button back |
@@ -55,7 +55,7 @@ Those three answer most questions. The Bridge's log is at `~/.browsentic/daemon.
| Symptom | Cause | Fix |
| --- | --- | --- |
| `AGENT_MISSING` | The chosen CLI is not on the *Bridge's* `PATH` | Run `browsentic agent` to see every agent, and set `agents.<name>.bin` to an absolute path in `config.json` |
-| `AGENT_NEEDS_PERMISSION` | Antigravity has no rule allowing Browsentic's page tools | Press the button in the popup, or run `browsentic agent fix antigravity` |
+| `AGENT_NEEDS_PERMISSION` | Antigravity has no rule allowing Browsentic's page tools | Press the button in the side panel's agent picker (behind the status pill), or run `browsentic agent fix antigravity` |
| `AGENT_NEEDS_PERMISSION` for Grok Build | Grok Build is not signed in | Run `grok login`, or set `XAI_API_KEY` |
| "does not understand the flags Browsentic uses" | The agent CLI is too old | Update the CLI |
| The model select says *built-in list*, with a reason | Browsentic could not read that CLI's own model list, usually because the CLI is signed out | Sign the CLI in, then press **Recheck**. `browsentic agent models <name> --refresh` shows the full reason |
@@ -86,7 +86,7 @@ Those three answer most questions. The Bridge's log is at `~/.browsentic/daemon.
| Qwen Code fails with *No auth type is selected* | Qwen has no provider configured, and its OAuth free tier ended on 2026-04-15 | Run `qwen` and use `/auth`, or export `OPENAI_API_KEY` with `OPENAI_BASE_URL` |
| Qwen Code cannot see an API key you exported | Only `QWEN_*`, `DASHSCOPE_*`, `BAILIAN_*` and `OPENAI_*` reach a run; the rest are sealed away | Point Qwen at one of those four providers |
| `AGENT_UNSAFE`: *Qwen Code registered …* / *loaded the MCP server …* | Qwen's own startup line named a tool or a server Browsentic denied, so the run was stopped before the model saw it | Update Qwen Code and Browsentic, and report it if it persists |
-| OpenCode fails with *free models refuse a run whose tools Browsentic has narrowed to the browser* | OpenCode Zen's free tier serves only requests carrying OpenCode's own built-in tools | Run `opencode auth login`, then pick that provider's model in the popup |
+| OpenCode fails with *free models refuse a run whose tools Browsentic has narrowed to the browser* | OpenCode Zen's free tier serves only requests carrying OpenCode's own built-in tools | Run `opencode auth login`, then pick that provider's model in the side panel's agent picker |
| OpenCode fails with *could not start this turn* | Usually a model OpenCode does not know | Pick a model exactly as `opencode models` lists it, `provider/model` |
| OpenCode cannot see an API key you exported | Only `OPENCODE_*` reaches a run; the rest are sealed away | Run `opencode auth login`, which keeps the key in OpenCode's own file |
| `AGENT_UNSAFE`: *OpenCode ran its own … tool* | A tool outside the browser ran despite the run's rules, so the run was stopped | Update OpenCode and Browsentic, and report it |
diff --git a/docs/internals/extension.md b/docs/internals/extension.md
index f3f13a4..cb874fd 100644
--- a/docs/internals/extension.md
+++ b/docs/internals/extension.md
@@ -37,7 +37,7 @@ Chromium anchors a permission prompt to a tab. A side panel and a popup have non
an extension. `use-speech.ts` therefore reads `navigator.permissions` first. On `prompt` it never
calls `getUserMedia` (repeated silent refusals would earn the origin a temporary block) and offers
**Allow microphone** instead, which opens the unlisted `mic-permission.html` entrypoint in a tab,
-where the prompt can appear. The grant belongs to the extension's origin, so the panel, the popup
+where the prompt can appear. The grant belongs to the extension's origin, so the panel, the launcher
and hands-free mode's offscreen page all see the `PermissionStatus` change and start listening
without a reload. Firefox prompts from its sidebar on its own and skips the check.
@@ -83,6 +83,25 @@ it is the documented escape hatch.
---
+## The toolbar button
+
+On Chromium, `serveLaunchers()` in [launchers.ts](../../src/lib/bridge/launchers.ts) calls
+`openPanelFromToolbar()` from [side-panel.ts](../../src/lib/bridge/side-panel.ts), which sets
+`sidePanel.setPanelBehavior({ openPanelOnActionClick: true })`, so a click on the toolbar button
+opens the side panel and a second click closes it. On Firefox, `browserAction.onClicked` calls
+`sidebarAction.toggle()`. Neither has a popup in between.
+
+Where `sidePanel.setPanelBehavior` is missing or rejects (a Chromium browser without a side panel),
+the button falls back to `action.setPopup({ popup: 'launcher.html' })`. That launcher,
+`entrypoints/launcher/`, is a small popup with the status pill, a mic, a text field, **Open side
+panel**, **Open hands-free**, and the same `DaemonLink` and `AgentPicker` the connection sheet shows.
+The Firefox build leaves it out.
+
+WXT writes the manifest's `action` key only when a `popup/` entrypoint exists, so `wxt.config.ts`
+declares `action: { default_title: 'Browsentic' }` itself. The shortcut bound to the button
+(`_execute_action`, or `_execute_browser_action` on Firefox) is listed as **Same as the toolbar
+button**.
+
## The panel's tabs
`PanelNav` owns the tab strip: **Chat**, **History**, **Skills**, **Recordings**, **Schedules**.
@@ -102,14 +121,14 @@ keeps the strip from flapping between two fits at one panel width. In practice f
Settings are not a panel tab. They are the extension's options page, `entrypoints/options/`, which
WXT turns into `options_ui` with `open_in_tab` on both browsers. So it needs no permission, Chrome
lists it as **Options** on the toolbar icon's menu, and Firefox as **Preferences** in about:addons.
-The panel's header, the popup's header and the connection sheet open it with
+The panel's header, the launcher's header and the connection sheet open it with
`runtime.openOptionsPage()`, which focuses a settings tab already open instead of adding another.
The page is a sidebar of seven sections (**Extension**, **Profile**, **Guardrails**, **Blocked sites**, **Agent**, **Connection**, **About**),
with the open one in the URL hash, so a reload or a link lands on it; an unknown hash,
such as the old `#appearance`, lands on **Extension**. **Agent** and **Connection** are the same
-`AgentPicker` and `DaemonLink` the popup and the connection sheet show; those keep their copies, so
-a blocked run is still one click from its fix.
+`AgentPicker` and `DaemonLink` the connection sheet and the launcher show; those keep their copies,
+so a blocked run is still one click from its fix.
**Extension** is the theme, then what belongs to this browser alone, in `storage.local`: the
right-click items (`browsentic/contextMenu`), the keyboard shortcuts, and hold to talk
@@ -185,7 +204,7 @@ draws four live previews with no second copy of the palette. Only raw tokens re-
`browser.storage.local` under `browsentic/theme` is the truth, read by `useTheme()`. It answers a
tick after the page has painted, though, which on a light theme means a dark flash every time the
-popup opens. So `mountTheme()` applies a `localStorage` mirror of the same id synchronously before
+panel opens. So `mountTheme()` applies a `localStorage` mirror of the same id synchronously before
React mounts, and lets storage correct it a moment later. `index.html` carries
`data-theme="ember"` and an inline ground so the frame before the stylesheet is neither white nor
unpainted; `applyTheme` clears that inline colour, since an inline colour outranks every rule and
@@ -255,8 +274,8 @@ reads **Close Browsentic** while a panel is open, and a click on *Close* shuts i
background closes the sidebar inside the gesture, and Chromium panels are told over the run port to
close themselves. **Open Browsentic (Hands Free)** exists only where `handsFreeSupported()` says
speech works, reads **Close Browsentic (Hands Free)** while the orb is up, and toggles
-`browsentic/handsFree`, exactly as the panel's detach button and the popup's **Open hands-free** do.
-The `toggle-side-panel` and `toggle-hands-free` shortcuts go through the same two toggles. The
+`browsentic/handsFree`, exactly as the panel's detach button and the launcher's **Open hands-free**
+do. The `toggle-side-panel` and `toggle-hands-free` shortcuts go through the same two toggles. The
panel opens before anything is awaited, because both a menu click and a shortcut hand over a
gesture the first `await` would spend.
@@ -432,10 +451,10 @@ Driving a phone (see [Android phones](android.md)) adds two unlisted entrypoints
| `browsentic/phone` Port | Between the phone tab and the background (`phone-mirror.ts`): screencast frames and page state down, the user's taps, scrolls, keys and the bar's commands up |
The phone session itself is `browsentic/phone` in `storage.session`, written only through
-`phone.ts`, and the side panel and popup read it with `usePhoneSession`. The panel recognises the
-phone tab by its id, not its URL: without the `tabs` permission an extension page's URL is hidden
-from `tabs.query`. The **Android** toggle is hidden on Firefox, and the Firefox build leaves out
-both entrypoints. No new permission was needed.
+`phone.ts`, and the side panel and the launcher read it with `usePhoneSession`. The panel
+recognises the phone tab by its id, not its URL: without the `tabs` permission an extension page's
+URL is hidden from `tabs.query`. The **Android** toggle is hidden on Firefox, and the Firefox build
+leaves out both entrypoints. No new permission was needed.
## Tab scoping
diff --git a/docs/internals/overview.md b/docs/internals/overview.md
index 65fdab8..853d87e 100644
--- a/docs/internals/overview.md
+++ b/docs/internals/overview.md
@@ -35,7 +35,7 @@ component.
| Process | Started by | Lives for | Job |
| --- | --- | --- | --- |
-| **Extension** | The browser | As long as the browser runs | Owns the tabs. Runs the side panel, the popup, the background service worker and one content script per page |
+| **Extension** | The browser | As long as the browser runs | Owns the tabs. Runs the side panel, the settings page, the background service worker and one content script per page |
| **Daemon** (`daemon-main.js`) | Auto-spawned by the first CLI or MCP client that needs it | Until 30 minutes idle with no extension and no control clients | Owns the browser link, authorization, agent runs, screenshot writes, skill and site-map storage |
| **MCP server** (`browsentic mcp`) | The MCP client, over stdio | The client's session | Translates MCP `tools/call` requests into daemon control frames. One process per client |
| **Agent** (`claude -p` and friends) | The daemon, per side-panel instruction | One instruction | Reasons about the instruction and calls page tools. Contained to Browsentic's own MCP server |
diff --git a/docs/internals/stores.md b/docs/internals/stores.md
index b1b19f0..5ba0b6d 100644
--- a/docs/internals/stores.md
+++ b/docs/internals/stores.md
@@ -88,7 +88,7 @@ Browsentic has two parts, plus the agent you already use: this extension, and Br
• On macOS or Windows: install the Browsentic app from browsentic.com, which sets everything up
• On Linux, or without the app: Node.js 20 or newer, then run: npx browsentic@latest setup
• An agent CLI signed in on your computer, such as Claude Code, Codex, or one of the others listed at browsentic.com
-Then click Browsentic in the toolbar, enter the pairing code once, and open the side panel.
+Then click Browsentic in the toolbar to open the side panel, and enter the pairing code once.
OPTIONAL: USE IT FROM AN MCP CLIENT
An MCP client such as Claude Code, Cursor or Zed can also drive the same paired browser. The side panel does not need this.
diff --git a/docs/internals/transport.md b/docs/internals/transport.md
index 7b66e03..27e5c18 100644
--- a/docs/internals/transport.md
+++ b/docs/internals/transport.md
@@ -65,9 +65,9 @@ The extension connects to nothing until you pair it.
1. `browsentic pair` asks the daemon for a code: 8 characters from an alphabet with the
ambiguous glyphs removed, valid **10 minutes**, single use.
-2. You paste it into the popup. The extension dials `ws://127.0.0.1:<port>/extension`, walking the
- three ports, and sends `hello`, which names *which* secret it holds and carries a fresh nonce,
- never the secret itself.
+2. You paste it into the side panel (status pill → **Connection**) and press **Connect**. The
+ extension dials `ws://127.0.0.1:<port>/extension`, walking the three ports, and sends `hello`,
+ which names *which* secret it holds and carries a fresh nonce, never the secret itself.
3. The daemon answers `challenge` with a nonce of its own. Both sides now share a transcript: the
protocol version the `hello` claimed, the extension version, the manifest hash, and the two
nonces. The manifest hash names the tool list this build offers: a Chromium build's, or a Firefox
diff --git a/docs/reference/cli.md b/docs/reference/cli.md
index 4fdd01e..4c26506 100644
--- a/docs/reference/cli.md
+++ b/docs/reference/cli.md
@@ -75,7 +75,7 @@ See [guide/install.md](../guide/install.md) and [guide/maintenance.md](../guide/
| Command | Does |
| --- | --- |
-| `browsentic pair` | Issue a one-time code to type into the extension popup. 8 characters, valid 10 minutes, single use |
+| `browsentic pair` | Issue a one-time code to paste into the side panel (status pill → **Connection**). 8 characters, valid 10 minutes, single use |
| `browsentic sessions` | List paired browsers |
| `browsentic revoke [id]` | Unpair one browser by the id `sessions` prints, or all of them. An origin still works, and unpairs every browser presenting it |
diff --git a/src/daemon/agent/runners/antigravity.test.ts b/src/daemon/agent/runners/antigravity.test.ts
index 7102180..72d84f3 100644
--- a/src/daemon/agent/runners/antigravity.test.ts
+++ b/src/daemon/agent/runners/antigravity.test.ts
@@ -249,7 +249,7 @@ describe('the answer to a one-shot task', () => {
describe('what a failed start is explained as', () => {
test('a soft-denied tool names the rule to add and where', () => {
expect(antigravityRunner.hint?.('tool call soft-denied: mcp(browsentic/page_click)')).toBe(
- `Antigravity denied a tool call because it has no permission rule for Browsentic. Add "${MCP_RULE}" to permissions.allow in ${settingsPath}, or grant it from the Browsentic popup. (tool call soft-denied: mcp(browsentic/page_click))`,
+ `Antigravity denied a tool call because it has no permission rule for Browsentic. Add "${MCP_RULE}" to permissions.allow in ${settingsPath}, or grant it from the Browsentic side panel. (tool call soft-denied: mcp(browsentic/page_click))`,
);
});
diff --git a/src/daemon/agent/runners/antigravity.ts b/src/daemon/agent/runners/antigravity.ts
index c15560f..26f57dc 100644
--- a/src/daemon/agent/runners/antigravity.ts
+++ b/src/daemon/agent/runners/antigravity.ts
@@ -236,7 +236,7 @@ export const antigravityRunner: Runner = {
if (/soft-denied|requires approval|not allowed/i.test(stderrTail)) {
return (
`Antigravity denied a tool call because it has no permission rule for Browsentic. ` +
- `Add "${MCP_RULE}" to permissions.allow in ${settingsPath}, or grant it from the Browsentic popup. (${stderrTail.trim()})`
+ `Add "${MCP_RULE}" to permissions.allow in ${settingsPath}, or grant it from the Browsentic side panel. (${stderrTail.trim()})`
);
}
if (/auth|sign in|login|credential/i.test(stderrTail)) {
diff --git a/src/daemon/agent/runners/codex.test.ts b/src/daemon/agent/runners/codex.test.ts
index 39668d8..1dd57e9 100644
--- a/src/daemon/agent/runners/codex.test.ts
+++ b/src/daemon/agent/runners/codex.test.ts
@@ -357,7 +357,7 @@ describe('reading the stream', () => {
[
'fail',
'AGENT_FAILED',
- "The 'gpt-nonexistent-9' model is not supported when using Codex with a ChatGPT account. Pick another model for Codex in the Browsentic popup, then try again.",
+ "The 'gpt-nonexistent-9' model is not supported when using Codex with a ChatGPT account. Pick another model for Codex in the Browsentic side panel, then try again.",
],
false,
]);
@@ -405,7 +405,7 @@ describe('reading the stream', () => {
test('a model that does not exist is explained the same way as a refused one', () => {
const message = JSON.stringify({ error: { message: 'The model `gpt-9` does not exist' } });
expect(readLines({ type: 'error', message })).toEqual([
- ['fail', 'AGENT_FAILED', 'The model `gpt-9` does not exist Pick another model for Codex in the Browsentic popup, then try again.'],
+ ['fail', 'AGENT_FAILED', 'The model `gpt-9` does not exist Pick another model for Codex in the Browsentic side panel, then try again.'],
]);
});
diff --git a/src/daemon/agent/runners/codex.ts b/src/daemon/agent/runners/codex.ts
index 7df317a..a1475a5 100644
--- a/src/daemon/agent/runners/codex.ts
+++ b/src/daemon/agent/runners/codex.ts
@@ -438,7 +438,7 @@ function explain(raw: string | undefined): string | undefined {
if (!raw) return raw;
const message = parseJsonLine<{ error?: { message?: string } }>(raw)?.error?.message ?? raw;
return /model .*(not supported|does not exist|not found)/i.test(message)
- ? `${message} Pick another model for Codex in the Browsentic popup, then try again.`
+ ? `${message} Pick another model for Codex in the Browsentic side panel, then try again.`
: message;
}
diff --git a/src/daemon/agent/runners/cursor.ts b/src/daemon/agent/runners/cursor.ts
index bdde66f..a56ac27 100644
--- a/src/daemon/agent/runners/cursor.ts
+++ b/src/daemon/agent/runners/cursor.ts
@@ -252,7 +252,7 @@ export const cursorRunner: Runner = {
/**
* `cursor-agent status` says "Not logged in" and still exits 0, so the words are the only answer.
* Anything else — a timeout, a crash, a sentence nobody expected — reads as signed in, because a
- * popup that wrongly says *needs setup* blocks a working agent, while the run's own hint catches
+ * picker that wrongly says *needs setup* blocks a working agent, while the run's own hint catches
* the opposite case.
*/
function signedIn(bin: string): Promise<boolean> {
diff --git a/src/daemon/agent/runners/grok.test.ts b/src/daemon/agent/runners/grok.test.ts
index 5606e35..66992e6 100644
--- a/src/daemon/agent/runners/grok.test.ts
+++ b/src/daemon/agent/runners/grok.test.ts
@@ -248,7 +248,7 @@ describe('reading the stream', () => {
[
'fail',
'AGENT_FAILED',
- 'Couldn\'t set model \'grok-nope\': Invalid params: "unknown model id". Run \'grok models\' to see available models. Pick another model for Grok Build in the Browsentic popup, then try again.',
+ 'Couldn\'t set model \'grok-nope\': Invalid params: "unknown model id". Run \'grok models\' to see available models. Pick another model for Grok Build in the Browsentic side panel, then try again.',
],
]);
});
@@ -258,7 +258,7 @@ describe('reading the stream', () => {
[
'fail',
'AGENT_FAILED',
- "--effort/--reasoning-effort: unknown effort level 'ultra'; use one of: xhigh, high, medium, low. Pick another effort for Grok Build in the Browsentic popup, then try again.",
+ "--effort/--reasoning-effort: unknown effort level 'ultra'; use one of: xhigh, high, medium, low. Pick another effort for Grok Build in the Browsentic side panel, then try again.",
],
]);
});
@@ -303,7 +303,7 @@ describe('the answer to a one-shot task', () => {
describe('what a failed start is explained as', () => {
test('the error Grok printed, with what to do about it', () => {
expect(grokRunner.hint?.("Error: Couldn't set model 'grok-nope': Invalid params: \"unknown model id\".\n")).toMatch(
- /Pick another model for Grok Build in the Browsentic popup/,
+ /Pick another model for Grok Build in the Browsentic side panel/,
);
});
diff --git a/src/daemon/agent/runners/grok.ts b/src/daemon/agent/runners/grok.ts
index fe92815..fb73e21 100644
--- a/src/daemon/agent/runners/grok.ts
+++ b/src/daemon/agent/runners/grok.ts
@@ -248,10 +248,10 @@ function explain(message: string | undefined): string | undefined {
return 'Grok Build is installed but not signed in. Run "grok login", or set XAI_API_KEY, then try again.';
}
if (/unknown model id|couldn't set model/i.test(message)) {
- return `${sentence(message)} Pick another model for Grok Build in the Browsentic popup, then try again.`;
+ return `${sentence(message)} Pick another model for Grok Build in the Browsentic side panel, then try again.`;
}
if (/unknown effort level/i.test(message)) {
- return `${sentence(message)} Pick another effort for Grok Build in the Browsentic popup, then try again.`;
+ return `${sentence(message)} Pick another effort for Grok Build in the Browsentic side panel, then try again.`;
}
if (/resource has been exhausted|requests too quickly/i.test(message)) {
return `xAI is rate-limiting this Grok account. Wait a few minutes and try again, or upgrade at https://grok.com/supergrok. (${oneLine(message)})`;
diff --git a/src/daemon/agent/runners/opencode.test.ts b/src/daemon/agent/runners/opencode.test.ts
index 556cd2f..af87863 100644
--- a/src/daemon/agent/runners/opencode.test.ts
+++ b/src/daemon/agent/runners/opencode.test.ts
@@ -295,7 +295,7 @@ describe('readiness', () => {
expect(await problem()).toBeNull();
});
- // A popup that wrongly says "needs setup" blocks a working agent; the run's own error catches the opposite case.
+ // A picker that wrongly says "needs setup" blocks a working agent; the run's own error catches the opposite case.
test('a login file that cannot be read is assumed to hold one', async () => {
mkdirSync(join(home, '.local', 'share', 'opencode', 'auth.json'), { recursive: true });
expect(await problem()).toBeNull();
diff --git a/src/daemon/agent/runners/opencode.ts b/src/daemon/agent/runners/opencode.ts
index d6e0976..bd54845 100644
--- a/src/daemon/agent/runners/opencode.ts
+++ b/src/daemon/agent/runners/opencode.ts
@@ -258,7 +258,7 @@ function explain(failure: Failure | undefined): string {
if (failure?.data?.responseBody?.includes('FreeTierError')) {
return (
`OpenCode Zen's free models refuse a run whose tools Browsentic has narrowed to the browser. Run "opencode auth login" ` +
- `to sign in to a provider, then pick one of its models in the Browsentic popup. (${message})`
+ `to sign in to a provider, then pick one of its models in the Browsentic side panel. (${message})`
);
}
if (failure?.name === 'ProviderAuthError' || status === 401 || status === 403) {
@@ -271,7 +271,7 @@ function explain(failure: Failure | undefined): string {
if (failure?.name === 'UnknownError') {
return (
`OpenCode could not start this turn, most often because it does not know the model. Pick one in the ` +
- `Browsentic popup as "opencode models" lists it — provider/model — then try again. (${message})`
+ `Browsentic side panel as "opencode models" lists it — provider/model — then try again. (${message})`
);
}
return message;
diff --git a/src/daemon/agent/runners/qwen.test.ts b/src/daemon/agent/runners/qwen.test.ts
index 05a9ad5..27a8698 100644
--- a/src/daemon/agent/runners/qwen.test.ts
+++ b/src/daemon/agent/runners/qwen.test.ts
@@ -301,7 +301,7 @@ describe('readiness', () => {
});
// ANTHROPIC_ and GEMINI_ are auth types Qwen accepts, but sealEnv does not hand them to a run,
- // so a popup that called this ready would be promising a login that cannot happen.
+ // so a picker that called this ready would be promising a login that cannot happen.
test('a key the run would never be given does not count as configured', async () => {
vi.stubEnv('ANTHROPIC_API_KEY', 'sk-ant-test');
expect((await problem())?.code).toBe('AGENT_NEEDS_PERMISSION');
@@ -318,7 +318,7 @@ describe('readiness', () => {
expect(await problem()).toBeNull();
});
- // A popup that wrongly says "needs setup" blocks a working agent; the run's own hint catches the
+ // A picker that wrongly says "needs setup" blocks a working agent; the run's own hint catches the
// opposite case.
test('a settings file that cannot be read is assumed to configure one', async () => {
mkdirSync(join(home, '.qwen', 'settings.json'), { recursive: true });
diff --git a/src/daemon/agent/runners/qwen.ts b/src/daemon/agent/runners/qwen.ts
index 649b70b..32b27a6 100644
--- a/src/daemon/agent/runners/qwen.ts
+++ b/src/daemon/agent/runners/qwen.ts
@@ -353,7 +353,7 @@ function explain(message: string | undefined): string | undefined {
return `The provider behind Qwen Code is rate-limiting this account. Wait and try again. (${oneLine(message)})`;
}
if (/unknown model|model not found/i.test(message)) {
- return `${oneLine(message)} Pick another model for Qwen Code in the Browsentic popup, then try again.`;
+ return `${oneLine(message)} Pick another model for Qwen Code in the Browsentic side panel, then try again.`;
}
return oneLine(message);
}
diff --git a/src/daemon/cli.ts b/src/daemon/cli.ts
index f656fc7..e7a6468 100644
--- a/src/daemon/cli.ts
+++ b/src/daemon/cli.ts
@@ -416,7 +416,7 @@ async function pair(): Promise<void> {
await bridge.close();
const minutes = Math.round((expiresAt - Date.now()) / 60_000);
console.log(`\n Pairing code: ${groupCode(code)}\n`);
- console.log(` Open the Browsentic popup, paste it, and press Connect.`);
+ console.log(` Open the Browsentic side panel, paste it, and press Connect.`);
console.log(` Expires in ${minutes} minutes and works once.\n`);
}
diff --git a/src/extension/entrypoints/popup/App.tsx b/src/extension/entrypoints/launcher/App.tsx
similarity index 100%
rename from src/extension/entrypoints/popup/App.tsx
rename to src/extension/entrypoints/launcher/App.tsx
diff --git a/src/extension/entrypoints/popup/index.html b/src/extension/entrypoints/launcher/index.html
similarity index 87%
rename from src/extension/entrypoints/popup/index.html
rename to src/extension/entrypoints/launcher/index.html
index a54d7a3..0c64450 100644
--- a/src/extension/entrypoints/popup/index.html
+++ b/src/extension/entrypoints/launcher/index.html
@@ -2,6 +2,7 @@
<html lang="en" data-theme="ember" style="background-color: #1a1512">
<head>
<meta charset="UTF-8" />
+ <meta name="manifest.exclude" content="['firefox']" />
<meta name="color-scheme" content="dark" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Browsentic</title>
diff --git a/src/extension/entrypoints/popup/main.tsx b/src/extension/entrypoints/launcher/main.tsx
similarity index 100%
rename from src/extension/entrypoints/popup/main.tsx
rename to src/extension/entrypoints/launcher/main.tsx
diff --git a/src/extension/entrypoints/mic-permission/App.tsx b/src/extension/entrypoints/mic-permission/App.tsx
index b0ff784..408781a 100644
--- a/src/extension/entrypoints/mic-permission/App.tsx
+++ b/src/extension/entrypoints/mic-permission/App.tsx
@@ -11,7 +11,7 @@ const CLOSE_AFTER_MS = 1500;
const COPY: Record<Phase, { title: string; body: string }> = {
asking: {
title: 'Allow the microphone',
- body: 'Your browser is asking above. Choose Allow, and dictation works in the side panel, the popup and hands-free mode from then on.',
+ body: 'Your browser is asking above. Choose Allow, and dictation works in the side panel and hands-free mode from then on.',
},
granted: {
title: 'The microphone is on',
diff --git a/src/lib/bridge/launchers.ts b/src/lib/bridge/launchers.ts
index 780b91f..ff6bfbe 100644
--- a/src/lib/bridge/launchers.ts
+++ b/src/lib/bridge/launchers.ts
@@ -3,7 +3,7 @@ import { HANDS_FREE_SHORTCUT, PANEL_SHORTCUT } from '@/lib/settings/shortcuts';
import { CONTEXT_MENU_KEY, HANDS_FREE_ITEM, PANEL_ITEM, describeMenu, readContextMenuChoice } from './context-menu';
import { HANDS_FREE_KEY, endHandsFree, readHandsFree, startHandsFree } from './panel-view';
import { closePanels, onPanelPresence } from './run-port';
-import { closeSidebar, openSidePanel } from './side-panel';
+import { closeSidebar, openPanelFromToolbar, openSidePanel, toggleSidebar } from './side-panel';
import { SPEECH_SERVICE_KEY, handsFreeSupported } from './speech-support';
let panelOpen = false;
@@ -37,6 +37,9 @@ async function toggleHandsFree(): Promise<void> {
}
export function serveLaunchers(): void {
+ if (import.meta.env.FIREFOX) browser.browserAction.onClicked.addListener(() => void toggleSidebar());
+ else void openPanelFromToolbar().catch((error) => console.warn('[browsentic] toolbar button setup failed:', error));
+
onPanelPresence((open) => {
panelOpen = open;
repaintMenu();
diff --git a/src/lib/bridge/side-panel.test.ts b/src/lib/bridge/side-panel.test.ts
new file mode 100644
index 0000000..083bb93
--- /dev/null
+++ b/src/lib/bridge/side-panel.test.ts
@@ -0,0 +1,42 @@
+import { afterEach, describe, expect, it, vi } from 'vitest';
+import { fakeBrowser } from 'wxt/testing';
+import { LAUNCHER_PAGE, openPanelFromToolbar } from './side-panel';
+
+function toolbar(sidePanel: object | undefined) {
+ Object.assign(fakeBrowser, { sidePanel });
+ return vi.spyOn(fakeBrowser.action, 'setPopup').mockResolvedValue();
+}
+
+afterEach(() => {
+ vi.restoreAllMocks();
+ delete (fakeBrowser as { sidePanel?: unknown }).sidePanel;
+ fakeBrowser.reset();
+});
+
+describe('openPanelFromToolbar', () => {
+ it('has the toolbar button open the side panel, with no popup in the way', async () => {
+ const setPanelBehavior = vi.fn(async () => {});
+ const setPopup = toolbar({ setPanelBehavior });
+
+ await openPanelFromToolbar();
+
+ expect(setPanelBehavior).toHaveBeenCalledWith({ openPanelOnActionClick: true });
+ expect(setPopup).not.toHaveBeenCalled();
+ });
+
+ it('keeps the launcher popup where the browser has no side panel', async () => {
+ const setPopup = toolbar(undefined);
+
+ await openPanelFromToolbar();
+
+ expect(setPopup).toHaveBeenCalledWith({ popup: LAUNCHER_PAGE });
+ });
+
+ it('keeps the launcher popup where the side panel refuses the behaviour', async () => {
+ const setPopup = toolbar({ setPanelBehavior: vi.fn(async () => Promise.reject(new Error('not supported'))) });
+
+ await openPanelFromToolbar();
+
+ expect(setPopup).toHaveBeenCalledWith({ popup: LAUNCHER_PAGE });
+ });
+});
diff --git a/src/lib/bridge/side-panel.ts b/src/lib/bridge/side-panel.ts
index 6934b59..c8cd142 100644
--- a/src/lib/bridge/side-panel.ts
+++ b/src/lib/bridge/side-panel.ts
@@ -1,4 +1,6 @@
-type SidebarAction = { open: () => Promise<void>; close: () => Promise<void> };
+type SidebarAction = { open: () => Promise<void>; close: () => Promise<void>; toggle: () => Promise<void> };
+
+export const LAUNCHER_PAGE = 'launcher.html';
function sidebarAction(): SidebarAction {
return (browser as unknown as { sidebarAction: SidebarAction }).sidebarAction;
@@ -14,6 +16,19 @@ export function closeSidebar(): Promise<void> {
return sidebarAction().close();
}
+export function toggleSidebar(): Promise<void> {
+ return sidebarAction().toggle();
+}
+
+/** A Chromium browser with no side panel keeps the launcher popup on its toolbar button instead. */
+export async function openPanelFromToolbar(): Promise<void> {
+ try {
+ await browser.sidePanel.setPanelBehavior({ openPanelOnActionClick: true });
+ } catch {
+ await browser.action.setPopup({ popup: LAUNCHER_PAGE });
+ }
+}
+
/** Only the panel itself calls this, so `window.close()` is the fallback worth having. */
export async function closeSidePanel(windowId: number | null): Promise<void> {
try {
diff --git a/src/lib/bridge/theme.ts b/src/lib/bridge/theme.ts
index 4cc689a..a7db9e3 100644
--- a/src/lib/bridge/theme.ts
+++ b/src/lib/bridge/theme.ts
@@ -6,7 +6,7 @@ export { THEMES, DEFAULT_THEME, asTheme, type ThemeId } from '@/lib/settings/the
export const THEME_KEY = 'browsentic/theme';
/* storage.local answers a tick after the page has already painted, which on a
- light theme is a dark flash every time the popup opens. The chosen id is
+ light theme is a dark flash every time the panel opens. The chosen id is
mirrored here — the one store a document can read before its first frame —
and storage.local stays the truth that corrects it. */
const PAINT_HINT = 'browsentic/theme.paint';
diff --git a/src/lib/settings/shortcuts.test.ts b/src/lib/settings/shortcuts.test.ts
index 3f3b69a..9e390c9 100644
--- a/src/lib/settings/shortcuts.test.ts
+++ b/src/lib/settings/shortcuts.test.ts
@@ -2,11 +2,11 @@ import { describe, expect, it } from 'vitest';
import { HANDS_FREE_SHORTCUT, PANEL_SHORTCUT, keysOf, manifestCommands, shortcutsOf, shortcutsPageFor } from './shortcuts';
describe('manifestCommands', () => {
- it('gives Chromium the popup, the panel and hands-free', () => {
+ it('gives Chromium the toolbar button, the panel and hands-free', () => {
expect(Object.keys(manifestCommands(false))).toEqual(['_execute_action', PANEL_SHORTCUT, HANDS_FREE_SHORTCUT]);
});
- it('gives Firefox its own popup and sidebar names, and no hands-free', () => {
+ it('gives Firefox its own toolbar button and sidebar names, and no hands-free', () => {
expect(Object.keys(manifestCommands(true))).toEqual(['_execute_browser_action', '_execute_sidebar_action']);
});
});
@@ -27,14 +27,14 @@ describe('keysOf', () => {
});
describe('shortcutsOf', () => {
- it('orders popup, panel, hands-free and names each the same everywhere', () => {
+ it('orders toolbar button, panel, hands-free and names each the same everywhere', () => {
const shortcuts = shortcutsOf([
{ name: HANDS_FREE_SHORTCUT, description: 'Start or stop hands-free', shortcut: '' },
{ name: PANEL_SHORTCUT, description: 'Open or close the side panel', shortcut: 'Alt+Shift+B' },
{ name: '_execute_action', description: '', shortcut: '' },
]);
expect(shortcuts.map(({ label }) => label)).toEqual([
- 'Open the popup',
+ 'Same as the toolbar button',
'Open or close the side panel',
'Start or stop hands-free',
]);
diff --git a/src/lib/settings/shortcuts.ts b/src/lib/settings/shortcuts.ts
index 70106ce..a3e87ee 100644
--- a/src/lib/settings/shortcuts.ts
+++ b/src/lib/settings/shortcuts.ts
@@ -1,7 +1,7 @@
export const PANEL_SHORTCUT = 'toggle-side-panel';
export const HANDS_FREE_SHORTCUT = 'toggle-hands-free';
-const POPUP = 'Open the popup';
+const TOOLBAR = 'Same as the toolbar button';
const PANEL = 'Open or close the side panel';
const HANDS_FREE = 'Start or stop hands-free';
@@ -13,20 +13,20 @@ interface ManifestCommand {
export function manifestCommands(firefox: boolean): Record<string, ManifestCommand> {
if (firefox) {
return {
- _execute_browser_action: { description: POPUP },
+ _execute_browser_action: { description: TOOLBAR },
_execute_sidebar_action: { description: PANEL, suggested_key: { default: 'Alt+Shift+B' } },
};
}
return {
- _execute_action: { description: POPUP },
+ _execute_action: { description: TOOLBAR },
[PANEL_SHORTCUT]: { description: PANEL, suggested_key: { default: 'Alt+Shift+B' } },
[HANDS_FREE_SHORTCUT]: { description: HANDS_FREE, suggested_key: { default: 'Alt+Shift+H' } },
};
}
const LABELS: Record<string, string> = {
- _execute_action: POPUP,
- _execute_browser_action: POPUP,
+ _execute_action: TOOLBAR,
+ _execute_browser_action: TOOLBAR,
[PANEL_SHORTCUT]: PANEL,
_execute_sidebar_action: PANEL,
[HANDS_FREE_SHORTCUT]: HANDS_FREE,
diff --git a/src/mac/Sources/Browsentic/App/AppModel.swift b/src/mac/Sources/Browsentic/App/AppModel.swift
index 4c493d9..8261b00 100644
--- a/src/mac/Sources/Browsentic/App/AppModel.swift
+++ b/src/mac/Sources/Browsentic/App/AppModel.swift
@@ -450,7 +450,7 @@ final class AppModel: ObservableObject {
browserRows = rows
}
- /// Opens the browser's store page in that browser and hands out the code its popup asks for. The
+ /// Opens the browser's store page in that browser and hands out the code its side panel asks for. The
/// command opens it where it found the browser; anywhere else, the app opens it itself.
func addExtension(_ row: BrowserRow) async {
await perform("add:\(row.id)") { cli, _ in
diff --git a/src/mac/Sources/Browsentic/Views/BrowserSettings.swift b/src/mac/Sources/Browsentic/Views/BrowserSettings.swift
index 35b8f1a..122fcbc 100644
--- a/src/mac/Sources/Browsentic/Views/BrowserSettings.swift
+++ b/src/mac/Sources/Browsentic/Views/BrowserSettings.swift
@@ -46,7 +46,7 @@ private struct BrowserThemeCard: View {
VStack(alignment: .leading, spacing: 14) {
SectionTitle(
title: "Browser theme",
- subtitle: "How the side panel, the popup and the extension’s settings page look in every paired browser. This window keeps its own appearance."
+ subtitle: "How the side panel and the extension’s settings page look in every paired browser. This window keeps its own appearance."
)
HStack(spacing: 10) {
ForEach(BrowserTheme.allCases) { theme in
diff --git a/src/mac/Sources/Browsentic/Views/BrowsersView.swift b/src/mac/Sources/Browsentic/Views/BrowsersView.swift
index a9a3a5d..cd19835 100644
--- a/src/mac/Sources/Browsentic/Views/BrowsersView.swift
+++ b/src/mac/Sources/Browsentic/Views/BrowsersView.swift
@@ -20,7 +20,7 @@ struct BrowsersView: View {
}
}
if model.sessions.isEmpty {
- EmptyState(icon: "globe", title: "No browser is paired", detail: "Add the extension from the Overview tab, or get a code above and enter it in the Browsentic popup.")
+ EmptyState(icon: "globe", title: "No browser is paired", detail: "Add the extension from the Overview tab, or get a code above and enter it in the Browsentic side panel.")
} else {
ForEach(model.sessions) { SessionRow(session: $0) }
}
diff --git a/src/windows/ui/model.ts b/src/windows/ui/model.ts
index 4b974bf..a86a7c4 100644
--- a/src/windows/ui/model.ts
+++ b/src/windows/ui/model.ts
@@ -646,7 +646,7 @@ export class Model {
}
/**
- * Opens the browser's store page in that browser and hands out the code its popup asks for. The
+ * Opens the browser's store page in that browser and hands out the code its side panel asks for. The
* command opens it where it found the browser; anywhere else, the default browser gets the page.
*/
addExtension(row: BrowserRow) {
diff --git a/src/windows/ui/views/browsers.tsx b/src/windows/ui/views/browsers.tsx
index 161634c..58422cb 100644
--- a/src/windows/ui/views/browsers.tsx
+++ b/src/windows/ui/views/browsers.tsx
@@ -31,7 +31,7 @@ export function BrowsersView({ model, state }: { model: Model; state: State }) {
)}
</div>
{state.sessions.length === 0 ? (
- <EmptyState icon={Globe} title="No browser is paired" detail="Add the extension from the Overview tab, or get a code above and enter it in the Browsentic popup." />
+ <EmptyState icon={Globe} title="No browser is paired" detail="Add the extension from the Overview tab, or get a code above and enter it in the Browsentic side panel." />
) : (
state.sessions.map((session) => <SessionRow key={session.id} session={session} model={model} busy={state.busy.includes('revoke')} />)
)}
diff --git a/src/windows/ui/views/settings.tsx b/src/windows/ui/views/settings.tsx
index 85b32ea..84eefa1 100644
--- a/src/windows/ui/views/settings.tsx
+++ b/src/windows/ui/views/settings.tsx
@@ -172,7 +172,7 @@ function BrowserSettings({ model, state }: { model: Model; state: State }) {
<div className="space-y-3.5">
<SectionTitle
title="Browser theme"
- subtitle="How the side panel, the popup and the extension’s settings page look in every paired browser. This window keeps its own appearance."
+ subtitle="How the side panel and the extension’s settings page look in every paired browser. This window keeps its own appearance."
/>
<ThemePicker theme={preferences.theme ?? DEFAULT_THEME} onSelect={(theme) => void model.setBrowserTheme(theme)} />
</div>
diff --git a/wxt.config.ts b/wxt.config.ts
index a83382d..e747bac 100644
--- a/wxt.config.ts
+++ b/wxt.config.ts
@@ -33,6 +33,8 @@ export default defineConfig({
...(browser === 'firefox' ? [] : ['sidePanel', 'debugger', 'offscreen', 'userScripts']),
],
host_permissions: ['<all_urls>'],
+ // WXT writes the toolbar key only for a popup entrypoint, and the toolbar button opens the side panel instead.
+ action: { default_title: 'Browsentic' },
commands: manifestCommands(browser === 'firefox'),
// Release Firefox installs only what addons.mozilla.org has signed, and signing needs a
// permanent id. The update URL is polled daily; the release job publishes updates.json