You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: full mode embeds the local dashboard inline (default); clear error when not local (v0.5.0) (#12)
Per feedback (the minimal screenshot mode isn't wanted): full mode is the default again and now
embeds agent-browser's dashboard INLINE — but correctly, at its own local origin
(http://<host>:<port>/), not through the impossible sub-path proxy. On a local setup (console +
agent-browser on one machine) you get the real dashboard, feeds and all, in the panel. Verified
e2e against the live binary (iframe → 127.0.0.1:4848, dashboard loaded — title + tabs, status
"running", no error).
"Assume local, error if not": full mode detects whether the dashboard is reachable from the
operator's browser — LOCAL = loopback host (localhost/127.0.0.1) AND not fleet-proxied (base=="")
AND not https. If not local (a member, a non-loopback host, or an https console where the http
dashboard is mixed-content-blocked), it shows a clear, specific error pointing at panel_mode:
minimal instead of a blank frame. Local-but-stopped shows a Start prompt; the Start/Stop control
is in the bar.
minimal mode stays as the remote/everywhere option. 19 tests (full-mode test now asserts the
embed + the error path), ruff clean.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: protoagent.plugin.yaml
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
id: agent_browser
2
2
name: Agent Browser
3
-
version: 0.4.0
3
+
version: 0.5.0
4
4
description: >-
5
5
Browser automation for protoAgent, backed by **agent-browser** (vercel-labs) — a
6
6
fast native-Rust CLI/daemon that drives Chrome over CDP with accessibility-tree
@@ -23,14 +23,15 @@ config:
23
23
binary: agent-browser # the agent-browser CLI on PATH (override for a pinned path)
24
24
dashboard_port: 4848# agent-browser dashboard start --port; full-mode panel iframes this
25
25
timeout_s: 60# per-command subprocess timeout
26
-
panel_mode: minimal # Browser panel layout. `minimal` (default): viewport-only — a live
27
-
# screenshot + a nav toolbar + a Dashboard control, driven through the
28
-
# gated same-origin routes. Works everywhere (host + member), no daemon
29
-
# needed. `full`: iframe agent-browser's own dashboard (viewport + feeds)
30
-
# — only renders when the dashboard is reachable at its OWN origin from
31
-
# your browser (a local/host setup); it can't be embedded through a
32
-
# sub-path reverse proxy because its Next.js assets are root-absolute.
33
-
# Use the panel's "Open ↗" to view the dashboard directly.
26
+
panel_mode: full # Browser panel layout. `full` (default): embed agent-browser's own
27
+
# dashboard (viewport + activity/console/network feeds) at its local
28
+
# origin — best for a LOCAL setup (console + agent-browser on one box).
29
+
# When the console is opened remotely (a fleet member, a non-loopback
30
+
# host, or over https) the dashboard's localhost isn't reachable from
31
+
# your browser, so the panel shows a clear error — use `minimal` there.
32
+
# `minimal`: a screenshot viewport + nav toolbar driven through the
33
+
# gated same-origin routes; works everywhere, no daemon needed. Both
34
+
# modes can start/stop the dashboard from the panel.
34
35
# Runtime / launch options — a curated set passed to `agent-browser open` so you can
35
36
# shape and lock down the browser the agent spins up. Blank/0/false = CLI default.
36
37
headed: false # show a real browser window instead of headless
@@ -44,7 +45,7 @@ config:
44
45
45
46
# Editable in Settings ▸ Plugins (ADR 0019) — the operator knobs above as UI fields.
46
47
settings:
47
-
- { key: panel_mode, label: "Browser panel mode", type: select, options: [minimal, full], description: "minimal (recommended): a live screenshot + nav toolbar + Dashboard control, via gated same-origin routes — works everywhere. full: iframe agent-browser's dashboard (viewport + feeds) — only renders when the dashboard is reachable at its own origin from your browser (local/host); it can't embed through a sub-path proxy. Use the panel's Open ↗ either way." }
48
+
- { key: panel_mode, label: "Browser panel mode", type: select, options: [full, minimal], description: "full (default): embed agent-browser's dashboard (viewport + activity/console/network feeds) at its local origin — for a local setup (console + agent-browser on one machine). Opened remotely (a fleet member / non-loopback host / https), it shows a clear error instead of a blank frame. minimal: a screenshot viewport + nav toolbar via gated same-origin routes — works everywhere, no daemon. Both can start/stop the dashboard from the panel." }
48
49
- { key: headed, label: "Headed browser", type: bool, description: "Show a real browser window instead of running headless." }
0 commit comments