playwright dont work within codex but CLI

Open 💬 1 comment Opened Mar 28, 2026 by xingpingcn

What version of the IDE extension are you using?

v26.325.31654

What subscription do you have?

Go

Which IDE are you using?

VS Code

What platform is your computer?

Linux 6.17.0-1007-oracle aarch64 aarch64

What issue are you seeing?

Playwright MCP Browser Navigate, Tabs and Snapshot tool output within codex

Error: Browser is already in use for /root/.cache/ms-playwright/mcp-chrome, use --isolated to run multiple instances of the same browser

commend npx -y playwright screenshot --browser=chromium http://127.0.0.1:3000 /tmp/3000-cli.png outputs

Navigating to http://127.0.0.1:3000
Capturing screenshot into /tmp/3000-cli.png

which make me got the screenshot as expect

What steps can reproduce the bug?

ask codex to access http://127.0.0.1:3000 within a new chat thread, in which i got an error

Error: Browser is already in use for /root/.cache/ms-playwright/mcp-chrome, use --isolated to run multiple instances of the same browser

What is the expected behavior?

_No response_

Additional information

Sounds like every single issue listed above is with Codex https://github.com/microsoft/playwright-mcp/issues/1214#issuecomment-3559869589

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗