Skip to content

unable to open two session at once #293

@scarf005

Description

@scarf005
2026-03-10.9.11.38.mov

Version

$ npm install -g @playwright/cli@latest
$ playwright-cli --version
1.59.0-alpha-1771104257000

env var

set -gx PLAYWRIGHT_MCP_BROWSER firefox
set -gx PLAYWRIGHT_MCP_ISOLATED false
set -gx PLAYWRIGHT_MCP_USER_DATA_DIR "$HOME/.cache/ms-playwright/profiles/work"

Reproduction

$ playwright-cli list
### Browsers
  (no browsers)
$ playwright-cli -s a open https://www.google.com/  --headed
### Browser `a` opened with pid 27665.
- a:
  - browser-type: firefox
  - user-data-dir: /Users/nemo/.cache/ms-playwright/profiles/work
  - headed: true
---
### Ran Playwright code
```js
await page.goto('https://www.google.com/');
```
### Page
- Page URL: https://www.google.com/
- Page Title: Google
- Console: 1 errors, 9 warnings
### Snapshot
- [Snapshot](.playwright-cli/page-2026-03-09T01-05-57-464Z.yml)
### Events
- New console entries: .playwright-cli/console-2026-03-09T01-05-56-639Z.log#L1-L11
$ playwright-cli -s b open https://www.google.com/  --headed
browserType.launchPersistentContext: Failed to launch the browser process.
Browser logs:

<launching> ~/Library/Caches/ms-playwright/firefox-1509/firefox/Nightly.app/Contents/MacOS/firefox -no-remote -wait-for-browser -foreground -profile ~/.cache/ms-playwright/profiles/work -juggler-pipe about:blank
<launched> pid=27870
[pid=27870] <process did exit: exitCode=0, signal=null>
[pid=27870] starting temporary directories cleanup
Call log:
  - <launching> ~/Library/Caches/ms-playwright/firefox-1509/firefox/Nightly.app/Contents/MacOS/firefox -no-remote -wait-for-browser -foreground -profile ~/.cache/ms-playwright/profiles/work -juggler-pipe about:blank
  - <launched> pid=27870
  - [pid=27870] <process did exit: exitCode=0, signal=null>
  - [pid=27870] starting temporary directories cleanup
  - [pid=27870] <gracefully close start>
  - [pid=27870] <kill>
  - [pid=27870] <skipped force kill spawnedProcess.killed=false processClosed=true>
  - [pid=27870] finished temporary directories cleanup
  - [pid=27870] <gracefully close end>

second session is always empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions