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

@timermachine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions