npm / @currents/playwright
@currents/playwright
What changed in @currents/playwright 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-24.
7 breaking2 security3 deprecations15 new APIs and options2 performance8 behavior and defaults6 tooling45 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@currents/playwright 269 changes
Breaking changes 7
When a command-line option and its environment variable differ, the option now wins; remove whichever value you do not want used.
Running
currentswithout a command now prints help and exits with 1 instead of running upload.Use
currents run getinstead ofcurrents api get-runto get a run.@currents/cmd 2.0.0 requires Node.js 20 or later, so update the runtime used to run it.
currents run upload --input-formatandcurrents convertnow fail if the output directory contains other files.Adds the run subcommand; update uses of pwc-p to use pwc-p run, and pass filename flags for discovery or filtering to pwc-p discover instead.
currents run upload --input-formatandcurrents convertnow fail if the report directory contains other files.
Security 2
The OIDC record key is revoked when a run is cancelled.
The repository URL is stored without any user name and password it may contain in CI.
Deprecations 3
currents api get-runstill works in 2.0 but is not listed in help; usecurrents run getinstead.currents cancelstill works but prints a deprecation warning and will be removed in the next major version; usecurrents run cancel.currents convertstill works in 2.0 but is not listed in help; usecurrents run upload --input-format junitto upload converted reports.
New APIs and options 13
On Playwright 1.62+, the test list is read from the run itself, created once per process before the first test starts; set this variable to false to turn that off.
When filters match no tests, exits 1 and creates no orchestration session; with this flag, exits 0 instead.
Accepts Playwright test filters, including grep, project, changed-file, spec-file, and file:line filters, so filtered orchestrated runs no longer need a prior discover command.
A setting is added for the summary for agents and the REST API address.
Context links are requested for a run's failed and flaky tests.
Adds a compact console output preset.
The orchestration session create timeout is now configurable.
Adds Azure CI data support.
Export the CircleCI OIDC token as CURRENTS_OIDC_TOKEN in the step that runs tests so Currents can use it.
Adds an environment field to discovery.
Adds the --pwc-environment option.
Use
currents run cancelinstead ofcurrents cancelto cancel a run.Adds the discover subcommand for test discovery; filename flags used for discovery or filtering must be passed to this subcommand.
Performance 2
Coverage uploads are compressed.
Instance stdout artifact uploads are gzip-compressed.
Behavior and default changes 7
Prints key context under each failed test's error.
On Playwright 1.62+, reads the test list and session suite from Reporter.preprocess instead of parsing Playwright's --list output.
When no record key is configured, it is obtained from a CI OIDC token.
Agents receive one summary per pwc-p machine.
On Playwright 1.62+, the test list is captured by default; CURRENTS_SUITE_HOOK=false turns this off.
currents cache setandcache getwithout--idnow derive the cache ID from detected CI jobs across CI providers; without a detected job, they warn that the ID is random.Debug output now replaces keys with
*****.
Tooling 6
Reports when a Currents action quarantines a test.
On Playwright 1.62+, reads the test list from Reporter.preprocess instead of parsing Playwright's --list output.
Forwards applicable Playwright arguments as given and refuses arguments that cannot apply to an orchestrated run, with a message naming what to use instead.
A summary for agents includes a context link for each failed and flaky test.
Use the CircleCI CLI command with the
currents:record-keyaudience to request the token for tests.Use
currents run uploadinstead ofcurrents uploador invokingcurrentswithout a command to upload results.
Fixes and other changes 29
Starts Playwright under the same runtime as pwc and pwc-p.
Includes a spec file when its tests are all declared in an imported helper, so it is no longer left out of the run.
Tells agents what to fix and points them to the Currents MCP.
Claims the next task if a task's Playwright process exits before its reporter finishes.
Waits for test record updates queued while the reporter finishes.
When a debug log upload is refused, the local log path is printed instead of null.
The record key is sent with the pwc debug log upload.
The record key from reporter options is no longer sent to Currents.
The value false is now read as off.
Tests a halted pwc-p task never ran are no longer counted as ran.
pwc exits with status 1 when it can't spawn Playwright or a signal kills it.
pwc prints launch failures to stderr.
Attachment files are read before a task is reported finished.
Compact output labels an earlier attempt's error and shows the last attempt with failure details.
Interrupted tests are shown as interrupted.
Prints a test's line only from its last attempt.
Stuck orchestrated Playwright children are recovered at shutdown.
Prevents silent truncation of the discovery list.
Reporter output emitted before onBegin is buffered.
Fixes compatibility with Playwright 1.61.0.
Ensures the command rejects the -G flag.
Cleans CI branch names.
Restores git-preferred commit merging.
Adopts CURRENTS_CI_URL as the ciUrl config option.
Accepts the fully parallel flag, allowing it to be used with pwc-p run.
Do not use this token for Currents record keys; its audience is the CircleCI organization ID, which a job cannot change, and Currents refuses it.
The commit and its CI fallback are now taken from commit-info 2.0.
Playwright errors are surfaced in the discovery reporter.
Restores compatibility with Playwright 1.60.0.
@currents/playwright 119 changes
New APIs and options 2
Adds the consoleOutput flag to control reporter output.
Adds regex pattern actions.
Behavior and default changes 1
Tests stopped by maxFailures or SIGINT are reported as interrupted instead of failed; they are not considered passed, and a spec file or run containing an interrupted test is considered failed.
Fixes and other changes 16
Traces are retained for quarantined tests when using retain-on-failures trace mode.
Project dependencies are no longer missing from discovery when filtering by last-failed.
The discovery scanner now runs only id-only preOnlyTestFilters.
CI provider detection was enhanced, which may affect how the reporter identifies the CI environment.
Pull request environment capture was enhanced, which may affect the environment data available to the reporter.
--project is stripped from task creation.
The reporter supports commander v13 and excess argv, improving compatibility when running with those arguments.
An interrupted test case is added if any element is interrupted.
Support for the deprecated --browser flag.
The orchestration exit code when cancelled (fail-fast) should always be 1.
Additional debug logs help identify orchestration discovery timeouts.
Handles orchestration cancellation without hanging.
The dotenv import is set to quiet to remove its log output.
When error.message is undefined, error.value is used as the message sent to the backend.
Project dependencies are included in error copy for fake test results.
Fixed compatibility with the VSCode PW extension.