Playwright MCP on Linux Mint stays headless and never shows a browser window
What version of Codex is running?
codex-cli 0.42.0
Which model were you using?
gpt-5-codex
What platform is your computer?
Linux 6.8.0-84-generic x86_64 x86_64 (Linux Mint 22.1)
What steps can reproduce the bug?
- Start a codex exec session on Linux Mint 22.1 with Codex CLI 0.42.0 inside a project directory.
- Ensure the Playwright MCP (npx @playwright/mcp@latest) is registered; then ask the Codex agent to open any URL
via browser_navigate, e.g., http://localhost:3000.
- Observe that Codex returns DOM snapshots/logs, but no GUI browser window is rendered on the desktop.
- Run the same URL locally via npx playwright test --headed (or npx playwright codegen) on the same machine; note
that a Chromium window appears immediately, proving the local environment supports headful Playwright.
What is the expected behavior?
Codex only returns textual snapshots and never launches a visible window;
What do you see instead?
Codex only returns textual snapshots and never launches a visible window; system process lists and window managers
show no Chromium/Firefox instance tied to the user session, even though manual headed runs work.
Additional information
The MCP list shows the Playwright server as npx @playwright/mcp@latest. Playwright MCP Bridge is installed,
but Codex sessions still stay headless. Other agents (e.g., Claude Code) on the same machine can spawn headed
Playwright sessions, so the limitation seems specific to Codex MCP.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗