- New
sinceLastCalloption forgetLatestLogs()— inspect browser logs after every action without seeing duplicate messages:The first call returns all buffered console logs and page errors for the page. Later calls return only new entries since the previousplaywriter -s 1 -e 'console.log(await getLatestLogs({ page, sinceLastCall: true }))'sinceLastCallread. Logs also persist across navigations, so hydration errors, redirect failures, and startup exceptions are not lost when the page changes. - CDP logs now rotate automatically —
~/.playwriter/cdp.jsonlis capped at 10,000 entries by default to prevent unbounded disk growth. SetPLAYWRITER_CDP_LOG_MAX_ENTRIESto tune the cap. Rotation keeps the newest half of the log and writes through an atomic temp-file rename to avoid corrupting the JSONL file. - More reliable
getLatestLogs({ page })results — page runtime errors and console messages emitted by related frame targets now appear in the returned log stream. This makes React and hydration failures visible throughpageerrorentries instead of requiring manual console listeners. - CLI-created sessions auto-open pages more reliably —
playwriter session newcan auto-create an initial extension tab even when the shared relay was originally started by MCP. This avoidsNo Playwright pages are availableafter all enabled tabs have closed. - Remote status checks send bearer tokens —
/extensions/statusand/extension/statusrequests now include the configured auth token, so remote relays using--tokenno longer reject status checks with 403 responses. - Concurrent relay startup no longer crashes on port races — simultaneous CLI and MCP commands now deduplicate startup work and treat a competing process winning port
19988as a clean handoff instead of surfacingEADDRINUSE. - Clearer multi-browser names in
playwriter session new— browser lists now use full user-agent client hints when available, so Chromium-family browsers such as Chrome Canary can show a more specific name. - Skill docs prefer
getLatestLogs()for page diagnostics — the generated Playwriter skill now tells agents to callgetLatestLogs({ page })instead of adding manual console listeners that miss errors emitted before listener setup.