Skip to content

Codex macOS sandbox prevents Playwright browser tests from starting (bootstrap_check_in Permission denied (1100), listen EPERM 127.0.0.1) #14368

Open

Description

@timermachine

Summary

In Codex on macOS with sandboxing enabled, Playwright browser tests fail due to environment restrictions before app logic runs.

I see two failures:

  1. Chromium startup crash:
FATAL:base/apple/mach_port_rendezvous_mac.cc:155
Check failed: kr == KERN_SUCCESS.
bootstrap_check_in org.chromium.Chromium.MachPortRendezvousServer.<pid>: Permission denied (1100)
  1. Local server bind failure:
Error: listen EPERM: operation not permitted 127.0.0.1

The same tests pass on the same machine outside the Codex sandbox.

Repro

This kind of command fails in sandbox:

npx playwright test

Expected

Either:

  • browser-backed tests can run, or
  • Codex clearly reports that sandbox policy blocks Chromium startup / localhost binding

Actual

The failure looks like a repo/test regression even though it is a sandbox restriction.

Why this matters

This can cause agents to:

  • misdiagnose healthy repos as broken
  • modify working code to work around sandbox-only failures
  • waste time debugging Playwright/app logic unnecessarily

Request

Please document or surface these sandbox limitations more explicitly on macOS:

  • Chromium startup restrictions
  • loopback bind restrictions (127.0.0.1)

Additional context

I have a local repro and internal notes with the exact failure signatures if that would help.

Activity

  1. added
    bug
    CLI
    sandbox
    on Mar 11, 2026
  2. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. removed
    CLI
    on Mar 29, 2026
  4. mikeblackleaf commented on Apr 8, 2026

    @mikeblackleaf

    This is an issue for me too. Codex cannot start up and properly run a Playwright session. A fix needs to be made for MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    browserbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions