Repository navigation
Releases
v0.19.2 - reliable recording and clean HTML replay
Browser Bridge 0.19.2 fixes session recording from capture through HTML replay and MP4 export, and replaces the branded replay shell with a clean, unbranded player.
Clean HTML replay
- Removed the FRACTURE logo and decorative header. A compact bottom bar retains play/pause, scrubbing, time, speed, skip-idle, fullscreen and interaction-overlay controls.
- The supplied replay title remains in the HTML metadata. Playback stays self-contained and offline-capable.
Reliable capture and masking
- Register the server's recording sink before injecting the recorder, preserving the initial Meta/full snapshot even when a child iframe loads slowly.
- Reject duplicate starts on the same tab without replacing the active recorder or truncating a different output file.
- Flush final clicks and DOM mutations on navigation; acknowledge and deduplicate batches, with a session-storage outbox across socket interruptions and worker restarts.
- Stop frames independently with bounded waits and warnings for unresponsive frames. Reject incomplete streams instead of producing a successful-looking replay without a base snapshot.
- With
maskInputs:true, mask open shadow-root inputs, contenteditable text and identifying printable key codes as well as ordinary form values.
Visible canvases and correctly sized MP4s
- Display captured canvas bitmaps reliably inside script-disabled replay iframes, including 2D, WebGL, same-origin iframe and open-shadow canvases. Canvas frames are scoped by document and node ID so navigation and backward seeking do not mix them up.
- Wait for decoding, replay reconstruction, layout and painting before export screenshots, while keeping the replay sandbox intact.
- Export at the initial recorded viewport multiplied by
scale, independent of the viewer window. A 1600×1000 recording produces 1600×1000 at 1× and 3200×2000 at 2×. Results include encodedwidthandheight; H.264 dimensions round down to even pixels. - Preserve legacy synchronous export harness compatibility. Include minimal unbranded controls with
chrome:true; page-only output remains the default. - Clean up export tabs and temporary files after failures, and publish the MP4 only after encoding completes.
Additional fixes
- Enforce download size limits even when a transfer finishes before the first status poll.
- Install ffmpeg for CI exports, support isolated Chromium tests on Linux, and retain hidden e2e artifacts.
Validation
- 255 server tests and 95 complete-suite e2e tests passed locally.
- Six new recording e2e scenarios assert lifecycle behavior, masked data, composited screenshot pixels, decoded MP4 pixels, exact dimensions at 1×/2×, legacy export compatibility and failure cleanup.
- Additional targeted export checks cover fractional scale and odd source dimensions. Builds and TypeScript checks passed.
Known Linux limitation
Linux Chromium can still throttle hidden-tab frames despite keepAlive:true, delaying trusted actions and rAF commits. The existing hidden-tab-raf-commit e2e scenario remains failing on Linux; its assertions are retained. Use tab_activate when an action needs an immediate rendered result. All recording and export scenarios passed on Linux.
Upgrade
Update server and extension together, rebuild both, and reinstall/restart the user service:
git pull --ff-only
( cd server && npm ci && npm run build )
( cd extension && npm ci && npm run build )
( cd server && npm run install-service )Toggle Browser Bridge Off → On at chrome://extensions, then verify both versions are 0.19.2 with bridge_status. Manually started servers should be stopped and started with cd server && npm start instead. Existing tokens and MCP configuration stay valid.
Existing saved HTML keeps its embedded player. Generate a new replay to receive the clean UI and rendering fixes. Input masking remains off by default; opt in with maskInputs:true.
v0.19.1 - reliable agents, authenticated socket, full e2e coverage
Browser Bridge 0.19 makes agents far more reliable on real sites: no more silent hangs, clicks that land on modern UI libraries, and a test suite that drives every one of the 78 tools in a real browser. This release covers 0.19.0 and 0.19.1.
Upgrade note: update the server and the extension together. The extension now authenticates the server before sending anything, so a 0.19 extension will not talk to an older server. Reinstall the service (
cd server && npm run install-service), then reload the extension atchrome://extensions. Node 20 or newer is now required.
Agents no longer get stuck
- Every browser call has its own timeout, so a hung page, a slow iframe or a stuck debugger attach fails fast with an actionable error instead of wedging the tab.
- JavaScript dialogs no longer freeze the bridge.
clickandpress_keytakeonDialog: "accept" | "dismiss"(pluspromptText) to answer a dialog the action opens and report what it said.handle_dialoganswers dialogs that open while the debugger is attached. - Hidden tabs (window covered, minimized or on another desktop) are detected and kept rendering during actions, so clicks commit and trusted actions take ~140 ms instead of ~6 s. Results report
tabHidden/keptAlive. - The screenshot queue can no longer be blocked by one hung capture, short extension restarts are waited out, and timed-out calls are cancelled in the extension.
navigate,tab_new,go_backandgo_forwardtakewaitUntiland reportloadTimedOut; downloads fail fast on dangerous, paused or stalled files.
Elements are found and clicked reliably
- Clicks send the full pointer and mouse event sequence, so Radix, MUI, react-select and similar menus open.
- Elements inside shadow DOM are no longer reported as covered, and covered clicks escalate to a trusted click for snapshot refs too.
snapshotlists dialogs and popovers first, reports truncation (total,truncated,limit), includes checkboxes, options, switches, clickable divs and<summary>, and gives icon-only controls ahint(test id, data key or icon name).- Selectors act in one frame on the best visible match and report
matchCount. Stale refs fail clearly or are re-resolved instead of clicking the wrong element. fillhandles selects by visible text, checkboxes, dates and rich editors, and reports when a value doesn't stick.wait_foraccepts text, role and visible/hidden/detached state.scrollworks on inner containers.eval_jsnow awaits Promises on the default path.
Agent ergonomics
browser_batchstops at the first failed step, including "not actionable" results.- Clicks report what changed: URL, title, new tab and any dialog.
get_page_textpages long text withoffset/nextOffset.- Every call writes one timestamped log line, and
BRIDGE_TOOLSETScan trim the tool list to the groups you use.
Security and operations
- The extension and server prove to each other that they share the token (HMAC challenge-response) before anything is exchanged; a process squatting the port never receives the token.
~/.browser-bridgeis owner-only, the server rotates its own log, andBRIDGE_RETENTION_DAYScan prune old recordings (off by default).- The service installer pins a stable Node path, verifies the service actually started, and retries.
- New
scripts/rotate-token.mjsandscripts/scrub-log.mjs. replay_requestforwards the captured auth headers; emulation no longer resets after 5 minutes; restarting interception releases held requests.- Watch mode: pages can't forge timeline lines, recordings survive reconnects, human vs agent actions are attributed by the browser's own trusted-input flag, and
emulate_localealso changesnavigator.language. - MCP SDK 1.32.1, and
npm auditis clean.
Testing
- New isolated end-to-end harness (
cd e2e && npm test): Playwright Chromium with the real extension and a separate server, never your own browser. - 88 scenarios exercise all 78 tools against real page state, and a coverage check fails if any tool has no scenario.
- CI runs on Node 20, 22 and 24.