v0.21.0

vercel-labs/agent-browserv0.21.0Mar 17, 2026by github-actions[bot]

AI Summary

Minor release introduces batch command execution, iframe traversal, and enhanced network capture capabilities.

Key Highlights

  • Added 'batch' command to execute multiple commands from stdin in a single invocation.
  • Enabled CLI interactions and snapshots to traverse into iframe content.
  • Implemented WebSocket fallback for CDP discovery when HTTP-based discovery fails.

New Features

  • Batch command
  • Iframe support
  • Network HAR start/stop command
  • WebSocket fallback for CDP discovery

Full Release Notes

### Minor Changes

-   c6de80b: ### New Features

    -   **`batch` command** -- Execute multiple commands from stdin in a single invocation. Accepts a JSON array of string arrays and returns results sequentially. Supports `--bail` to stop on first error and `--json` for structured output (#865)
    -   **iframe support** -- CLI interactions and snapshots now traverse into iframe content, enabling automation of cross-frame pages (#869)
    -   **`network har start/stop` command** -- Capture and export network traffic in HAR 1.2 format (#874)
    -   **WebSocket fallback for CDP discovery** -- When HTTP-based CDP endpoint discovery fails, the CLI now falls back to a WebSocket connection automatically (#873)

    ### Improvements

    -   **`--full`/`-f` refactored to command-level flag** -- Moved from a global flag to a per-command flag for clearer scoping (#877)
    -   **Enhanced Chrome launch** -- Added `--user-data-dir` support and configurable launch timeout for more reliable browser startup (#852)

    ### Bug Fixes

    -   Fixed `/json/list` fallback when `/json/version` endpoint is unavailable, improving compatibility with non-standard CDP implementations (#861)
    -   Fixed daemon liveness detection for PID namespace isolation (e.g. `unshare`). Uses socket connectivity as the sole liveness check instead of `kill(pid, 0)`, which fails when the caller cannot see the daemon's PID (#879)
    -   Fixed Ubuntu dependency install accidentally removing system packages (#884)