unstale

npm / @playwright/cli

@playwright/cli

What changed in @playwright/cli 0.1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

4 breaking1 security19 new APIs and options4 behavior and defaults15 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

@playwright/cli 0.143 changes

Breaking changes 4

  • Works with Chromium 155 and later.

    0.1.22release notes

  • Adds CSS styling for the target highlight; the highlight is shown only when styled.

    0.1.21release notes

  • Adds CSS styling for action point markers; the marker is shown only when styled.

    0.1.21release notes

  • Headless sessions shut down after one hour without commands, so an unclosed session no longer holds a browser; headed browsers stay open.

    0.1.20release notes

Security 1

  • Preapproves Playwright commands only, rather than any npm or npx command.

    0.1.22release notes

New APIs and options 19

  • When a query produces too many matches, --filename saves them to a file.

    0.1.22release notes

  • Set filePaths to "absolute" in the config file to get absolute paths for snapshots, screenshots, console logs, and downloads.

    0.1.21release notes

  • Set PLAYWRIGHT_MCP_FILE_PATHS=absolute to get absolute paths for snapshots, screenshots, console logs, and downloads.

    0.1.21release notes

  • Set PLAYWRIGHT_MCP_WEBMCP=false to stop collecting page-registered tools.

    0.1.21release notes

  • Emulates a color scheme on the fly, letting an agent switch between light and dark during a session.

    0.1.21release notes

  • Emulates the contrast media feature on the fly.

    0.1.21release notes

  • Emulates the forced-colors media feature on the fly.

    0.1.21release notes

  • Emulates media features on the fly.

    0.1.21release notes

  • Emulates the reduced-motion media feature on the fly.

    0.1.21release notes

  • Adds CSS declarations for styling video action titles.

    0.1.21release notes

  • The --cursor option renders an animated mouse cursor that travels to each action point and stays visible between actions.

    0.1.21release notes

  • The --fps option records videos at a chosen frame rate; --fps=60 records smooth 60 fps videos instead of the default 25.

    0.1.21release notes

  • Set webmcp to false in the config file to stop collecting page-registered tools.

    0.1.21release notes

  • Sets an idle timeout for attached browsers; they are only detached when this option is set.

    0.1.20release notes

  • Sets the idle timeout for a headless session; 0 disables the timeout.

    0.1.20release notes

  • Sets the idle timeout for a headless session; 0 disables the timeout.

    0.1.20release notes

  • Configures the idle timeout for a headless session; 0 disables the timeout.

    0.1.20release notes

  • Calls tools a page registers through the WebMCP API, letting the page do the work instead of driving its UI.

    0.1.20release notes

  • Lists the tools a page registers through the WebMCP API.

    0.1.20release notes

Behavior and default changes 4

  • Scripts can use timers, fetch, URL, Buffer, crypto, AbortController, TextEncoder, and TextDecoder; require and process remain unavailable.

    0.1.22release notes

  • Page-registered WebMCP tools, descriptions, and input schemas appear at the top of the snapshot, so webmcp-call works without first running webmcp-list.

    0.1.21release notes

  • The Chromium sandbox is disabled by default on Linux for the bundled Chromium build, which lacks the setuid sandbox helper.

    0.1.20release notes

  • Session daemons exit when their control socket is deleted or replaced instead of staying alive with the browser.

    0.1.20release notes

Fixes and other changes 15

  • The session no longer crashes if the browser closes during a download.

    0.1.22release notes

  • Reports a dialog opened during page load instead of timing out.

    0.1.22release notes

  • Accepts --no-shell instead of failing with an unknown-option error.

    0.1.22release notes

  • Reports a dialog opened during page load instead of timing out.

    0.1.22release notes

  • Quotes accessible names that look like regular expressions.

    0.1.22release notes

  • No longer runs a tool in a stale tab or frame.

    0.1.22release notes

  • Matching clear-* commands reset media feature emulation.

    0.1.21release notes

  • route ignores header lines that have no name.

    0.1.21release notes

  • Secrets shorter than 4 characters no longer rewrite the whole output with <secret> markers.

    0.1.21release notes

  • state-save bypasses service workers on the storage state page, avoiding site scripts and failures when they redirect.

    0.1.21release notes

  • A failed upload keeps the file chooser open so the upload can be retried.

    0.1.21release notes

  • When the extension does not connect, attach fails after 30 seconds with a hint instead of hanging indefinitely.

    0.1.20release notes

  • The CLI debugger works for tests that create multiple browser contexts and for every test in a worker.

    0.1.20release notes

  • Explicitly named output files in nested directories no longer fail with ENOENT.

    0.1.20release notes

  • Video chapters and screencast overlays remain visible above open dialogs and popovers.

    0.1.20release notes