{
"schemaVersion": 1,
"generatedAt": "1781077584s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.139.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/REDACTED/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/REDACTED/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/REDACTED/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/REDACTED/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/REDACTED/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "/Users/REDACTED/.codex/auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "/Users/REDACTED/.codex",
"config.toml": "/Users/REDACTED/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/REDACTED",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, image_generation, skill_mcp_dependency_install, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "27",
"log dir": "/Users/REDACTED/.codex/log",
"mcp servers": "4",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "/Users/REDACTED/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.54.0",
"details": {
"PATH git #1": "/usr/local/bin/git",
"PATH git #2": "/usr/bin/git",
"PATH git entries": "2",
"git build options": "git version 2.54.0; cpu: x86_64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.6.0; zlib: 1.2.12; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
"git exec path": "/usr/local/opt/git/libexec/git-core",
"git version": "git version 2.54.0",
"repo detected": "false",
"selected git": "/usr/local/bin/git"
},
"remediation": null,
"durationMs": 31
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/Users/REDACTED/.local/bin/codex",
"PATH codex #2": "/usr/local/bin/codex",
"PATH codex entries": "2",
"current executable": "/Users/REDACTED/.local/bin/codex",
"install context": "standalone (unix, package /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin, bin /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/bin, resources /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-resources, path /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-path)",
"managed by bun": "false",
"managed by npm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 6
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "4",
"disabled servers": "0",
"stdio servers": "4"
},
"remediation": null,
"durationMs": 1
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"proxy env vars": "none"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 404)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 498
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv4",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"models etag present": "true",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 1641
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on macos-x86_64",
"details": {
"commit": "unknown",
"current executable": "/Users/REDACTED/.local/bin/codex",
"install method": "standalone (unix, package /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin, bin /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/bin, resources /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-resources, path /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-path)",
"platform": "macos-x86_64",
"version": "0.139.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "/Users/REDACTED/.codex/tmp/arg0/codex-arg0oVM7vy/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/Users/REDACTED/.codex (dir)",
"active rollout files": "171 files, 87245212 total bytes, 510205 average bytes",
"archived rollout files": "1 files, 72014 total bytes, 72014 average bytes",
"goals DB": "/Users/REDACTED/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/REDACTED/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/REDACTED/.codex/log (dir)",
"memories DB": "/Users/REDACTED/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "/Users/REDACTED/.codex (dir)",
"standalone release cache": "1 entries in /Users/REDACTED/.codex/packages/standalone/releases",
"state DB": "/Users/REDACTED/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 692
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "warning",
"summary": "rollout files and state DB thread inventory differ",
"details": {
"default model provider": "openai",
"rollout DB active files": "171",
"rollout DB active rows": "168",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "1",
"rollout DB archived rows": "1",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "3",
"rollout DB missing active sample": [
"/Users/REDACTED/.codex/sessions/2026/04/11/rollout-2026-04-11T16-38-32-019d7cfa-eac3-71d3-b151-6d5df36e820c.jsonl",
"/Users/REDACTED/.codex/sessions/2026/04/11/rollout-2026-04-11T16-25-08-019d7cee-a92c-7e02-9507-d8b2604058e3.jsonl",
"/Users/REDACTED/.codex/sessions/2026/04/11/rollout-2026-04-11T16-06-40-019d7cdd-bfc0-73c1-9be7-9720aeaf230a.jsonl"
],
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=169",
"rollout DB rows": "169",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "subagent:thread_spawn=66, cli=49, subagent:other=28, vscode=25, exec=1",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "3 active, 0 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
}
],
"remediation": null,
"durationMs": 1194
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-DE",
"details": {
"EDITOR": "not set",
"LANG": "de_DE.UTF-8",
"LESS": "set",
"PAGER": "set",
"VISUAL": "not set",
"os": "Mac OS 15.7.7 [64-bit]",
"os language": "en-DE",
"os type": "Mac OS",
"os version": "15.7.7"
},
"remediation": null,
"durationMs": 7
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORFGBG": "15;0",
"COLORTERM": "truecolor",
"TERMINFO_DIRS entry": [
"/Applications/iTerm.app/Contents/Resources/terminfo (dir)",
"/usr/share/terminfo (dir)"
],
"TERM_PROGRAM": "iTerm.app",
"color output": "disabled (stdout is not a terminal)",
"effective locale": "de_DE.UTF-8",
"stderr is terminal": "false",
"stdin is terminal": "false",
"stdout is terminal": "false",
"terminal": "iTerm2",
"terminal size": "80x24",
"terminal version": "3.6.11"
},
"remediation": null,
"durationMs": 11
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "REDACTED",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 1
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.139.0",
"check for update on startup": "true",
"dismissed version": "0.139.0",
"last checked at": "2026-06-09T23:21:25.044160Z",
"latest version": "0.139.0",
"latest version status": "current version is not older",
"update action": "standalone installer",
"version cache": "/Users/REDACTED/.codex/version.json"
},
"remediation": null,
"durationMs": 128
}
}
}
What version of Codex CLI is running?
codex-cli 0.139.0 (also reproduced on 0.138.0)
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-5.5
What platform is your computer?
Darwin 24.6.0 x86_64 i386 (macOS 15.7.7 / 24G720, Intel Core i7-8700B, Mac mini 2018)
What terminal emulator and version are you using (if applicable)?
iTerm2 3.6.11, no multiplexer
Codex doctor report
codex doctor --json (username redacted, otherwise unmodified)
{ "schemaVersion": 1, "generatedAt": "1781077584s since unix epoch", "overallStatus": "warning", "codexVersion": "0.139.0", "checks": { "app_server.status": { "id": "app_server.status", "category": "app-server", "status": "ok", "summary": "background server is not running", "details": { "control socket": "/Users/REDACTED/.codex/app-server-control/app-server-control.sock", "daemon state dir": "/Users/REDACTED/.codex/app-server-daemon", "mode": "ephemeral", "pid file": "/Users/REDACTED/.codex/app-server-daemon/app-server.pid (missing)", "settings": "/Users/REDACTED/.codex/app-server-daemon/settings.json (missing)", "status": "not running", "update-loop pid file": "/Users/REDACTED/.codex/app-server-daemon/app-server-updater.pid (missing)" }, "remediation": null, "durationMs": 0 }, "auth.credentials": { "id": "auth.credentials", "category": "auth", "status": "ok", "summary": "auth is configured", "details": { "auth file": "/Users/REDACTED/.codex/auth.json", "auth storage mode": "File", "stored API key": "false", "stored ChatGPT tokens": "true", "stored agent identity": "false", "stored auth mode": "chatgpt" }, "remediation": null, "durationMs": 0 }, "config.load": { "id": "config.load", "category": "config", "status": "ok", "summary": "config loaded", "details": { "CODEX_HOME": "/Users/REDACTED/.codex", "config.toml": "/Users/REDACTED/.codex/config.toml", "config.toml parse": "ok", "cwd": "/Users/REDACTED", "enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, image_generation, skill_mcp_dependency_install, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, workspace_dependencies", "feature flag overrides": "none", "feature flags enabled": "27", "log dir": "/Users/REDACTED/.codex/log", "mcp servers": "4", "model": "gpt-5.5", "model provider": "openai", "sqlite home": "/Users/REDACTED/.codex" }, "remediation": null, "durationMs": 0 }, "git.environment": { "id": "git.environment", "category": "git", "status": "ok", "summary": "git version 2.54.0", "details": { "PATH git #1": "/usr/local/bin/git", "PATH git #2": "/usr/bin/git", "PATH git entries": "2", "git build options": "git version 2.54.0; cpu: x86_64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.6.0; zlib: 1.2.12; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1", "git exec path": "/usr/local/opt/git/libexec/git-core", "git version": "git version 2.54.0", "repo detected": "false", "selected git": "/usr/local/bin/git" }, "remediation": null, "durationMs": 31 }, "installation": { "id": "installation", "category": "install", "status": "ok", "summary": "installation looks consistent", "details": { "PATH codex #1": "/Users/REDACTED/.local/bin/codex", "PATH codex #2": "/usr/local/bin/codex", "PATH codex entries": "2", "current executable": "/Users/REDACTED/.local/bin/codex", "install context": "standalone (unix, package /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin, bin /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/bin, resources /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-resources, path /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-path)", "managed by bun": "false", "managed by npm": "false", "managed package root": "not set" }, "remediation": null, "durationMs": 6 }, "mcp.config": { "id": "mcp.config", "category": "mcp", "status": "ok", "summary": "MCP configuration is locally consistent", "details": { "configured servers": "4", "disabled servers": "0", "stdio servers": "4" }, "remediation": null, "durationMs": 1 }, "network.env": { "id": "network.env", "category": "network", "status": "ok", "summary": "network-related environment looks readable", "details": { "proxy env vars": "none" }, "remediation": null, "durationMs": 0 }, "network.provider_reachability": { "id": "network.provider_reachability", "category": "reachability", "status": "ok", "summary": "active provider endpoints are reachable over HTTP", "details": { "ChatGPT base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 404)", "reachability mode": "ChatGPT auth" }, "remediation": null, "durationMs": 498 }, "network.websocket_reachability": { "id": "network.websocket_reachability", "category": "websocket", "status": "ok", "summary": "Responses WebSocket handshake succeeded", "details": { "DNS": "2 IPv4, 2 IPv6, first IPv4", "auth mode": "chatgpt", "connect timeout": "15000 ms", "endpoint": "wss://chatgpt.com/backend-api/<redacted>", "handshake result": "HTTP 101 Switching Protocols", "model provider": "openai", "models etag present": "true", "provider name": "OpenAI", "proxy env vars": "none", "reasoning header": "false", "server model present": "false", "supports websockets": "true", "wire API": "responses" }, "remediation": null, "durationMs": 1641 }, "runtime.provenance": { "id": "runtime.provenance", "category": "runtime", "status": "ok", "summary": "running standalone on macos-x86_64", "details": { "commit": "unknown", "current executable": "/Users/REDACTED/.local/bin/codex", "install method": "standalone (unix, package /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin, bin /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/bin, resources /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-resources, path /Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-path)", "platform": "macos-x86_64", "version": "0.139.0" }, "remediation": null, "durationMs": 0 }, "runtime.search": { "id": "runtime.search", "category": "search", "status": "ok", "summary": "search is OK (bundled)", "details": { "search command": "/Users/REDACTED/.codex/packages/standalone/releases/0.139.0-x86_64-apple-darwin/codex-path/rg", "search command readiness": "file exists", "search provider": "bundled" }, "remediation": null, "durationMs": 0 }, "sandbox.helpers": { "id": "sandbox.helpers", "category": "sandbox", "status": "ok", "summary": "sandbox configuration is readable", "details": { "approval policy": "OnRequest", "codex-linux-sandbox helper": "none", "execve wrapper helper": "/Users/REDACTED/.codex/tmp/arg0/codex-arg0oVM7vy/codex-execve-wrapper", "filesystem sandbox": "restricted", "network sandbox": "restricted" }, "remediation": null, "durationMs": 0 }, "state.paths": { "id": "state.paths", "category": "state", "status": "ok", "summary": "state paths and databases are inspectable", "details": { "CODEX_HOME": "/Users/REDACTED/.codex (dir)", "active rollout files": "171 files, 87245212 total bytes, 510205 average bytes", "archived rollout files": "1 files, 72014 total bytes, 72014 average bytes", "goals DB": "/Users/REDACTED/.codex/goals_1.sqlite (file)", "goals DB integrity": "ok", "log DB": "/Users/REDACTED/.codex/logs_2.sqlite (file)", "log DB integrity": "ok", "log dir": "/Users/REDACTED/.codex/log (dir)", "memories DB": "/Users/REDACTED/.codex/memories_1.sqlite (file)", "memories DB integrity": "ok", "sqlite home": "/Users/REDACTED/.codex (dir)", "standalone release cache": "1 entries in /Users/REDACTED/.codex/packages/standalone/releases", "state DB": "/Users/REDACTED/.codex/state_5.sqlite (file)", "state DB integrity": "ok" }, "remediation": null, "durationMs": 692 }, "state.rollout_db_parity": { "id": "state.rollout_db_parity", "category": "threads", "status": "warning", "summary": "rollout files and state DB thread inventory differ", "details": { "default model provider": "openai", "rollout DB active files": "171", "rollout DB active rows": "168", "rollout DB archive mismatches": "0", "rollout DB archived files": "1", "rollout DB archived rows": "1", "rollout DB duplicate DB paths": "0", "rollout DB duplicate rollout thread ids": "0", "rollout DB malformed file names": "0", "rollout DB missing active rows": "3", "rollout DB missing active sample": [ "/Users/REDACTED/.codex/sessions/2026/04/11/rollout-2026-04-11T16-38-32-019d7cfa-eac3-71d3-b151-6d5df36e820c.jsonl", "/Users/REDACTED/.codex/sessions/2026/04/11/rollout-2026-04-11T16-25-08-019d7cee-a92c-7e02-9507-d8b2604058e3.jsonl", "/Users/REDACTED/.codex/sessions/2026/04/11/rollout-2026-04-11T16-06-40-019d7cdd-bfc0-73c1-9be7-9720aeaf230a.jsonl" ], "rollout DB missing archived rows": "0", "rollout DB model providers": "openai=169", "rollout DB rows": "169", "rollout DB scan cap reached": "false", "rollout DB scan errors": "0", "rollout DB sources": "subagent:thread_spawn=66, cli=49, subagent:other=28, vscode=25, exec=1", "rollout DB stale rows": "0" }, "issues": [ { "severity": "warning", "cause": "rollout files are missing from the state DB", "measured": "3 active, 0 archived", "expected": "every rollout file has a matching threads row", "remedy": null, "fields": [] } ], "remediation": null, "durationMs": 1194 }, "system.environment": { "id": "system.environment", "category": "system", "status": "ok", "summary": "OS language en-DE", "details": { "EDITOR": "not set", "LANG": "de_DE.UTF-8", "LESS": "set", "PAGER": "set", "VISUAL": "not set", "os": "Mac OS 15.7.7 [64-bit]", "os language": "en-DE", "os type": "Mac OS", "os version": "15.7.7" }, "remediation": null, "durationMs": 7 }, "terminal.env": { "id": "terminal.env", "category": "terminal", "status": "ok", "summary": "terminal metadata was detected", "details": { "COLORFGBG": "15;0", "COLORTERM": "truecolor", "TERMINFO_DIRS entry": [ "/Applications/iTerm.app/Contents/Resources/terminfo (dir)", "/usr/share/terminfo (dir)" ], "TERM_PROGRAM": "iTerm.app", "color output": "disabled (stdout is not a terminal)", "effective locale": "de_DE.UTF-8", "stderr is terminal": "false", "stdin is terminal": "false", "stdout is terminal": "false", "terminal": "iTerm2", "terminal size": "80x24", "terminal version": "3.6.11" }, "remediation": null, "durationMs": 11 }, "terminal.title": { "id": "terminal.title", "category": "title", "status": "ok", "summary": "terminal title default", "details": { "terminal title activity": "true", "terminal title items": "activity, project-name", "terminal title project source": "cwd", "terminal title project value": "REDACTED", "terminal title source": "default" }, "remediation": null, "durationMs": 1 }, "updates.status": { "id": "updates.status", "category": "updates", "status": "ok", "summary": "update configuration is locally consistent", "details": { "cached latest version": "0.139.0", "check for update on startup": "true", "dismissed version": "0.139.0", "last checked at": "2026-06-09T23:21:25.044160Z", "latest version": "0.139.0", "latest version status": "current version is not older", "update action": "standalone installer", "version cache": "/Users/REDACTED/.codex/version.json" }, "remediation": null, "durationMs": 128 } } }What happened?
On my Intel Mac mini, Codex sessions kept closing on me without warning: the TUI vanished mid-task and zsh printed
trace trap codex. It happened three sessions in a row within an hour, and every single time it was at the moment the agent deployed a subagent or started running commands through unified_exec — sessions that never reached that point ran fine. Each crash left a report in~/Library/Logs/DiagnosticReports/.All 8 crash reports I collected have the identical faulting stack — V8 isolate creation aborting in
OS::SetPermissions:Redacted crash report excerpt
First I suspected a 0.139.0 regression and downgraded to 0.138.0 — same crash, same stack. It also doesn't matter how Codex is installed: I reproduced it with the npm package, the Homebrew cask and the standalone installer. Sessions that never touch unified_exec run fine, which fits: the V8 isolate is only created when that code path is hit.
Root cause
The x86_64-apple-darwin binaries are signed with the hardened runtime but only carry the
com.apple.security.cs.allow-jitentitlement:allow-jitonly coversMAP_JITmappings. On Intel, V8's code range setup uses plain RWXmmap/mprotectwithoutMAP_JIT, and under the hardened runtime that additionally requirescom.apple.security.cs.allow-unsigned-executable-memory. Without it the call fails with EPERM, V8 hits a CHECK and aborts via SIGTRAP — exactly theOS::SetPermissionsframe at the top of every crash. On Apple Silicon V8 goes throughMAP_JIT+ per-thread write protection, soallow-jitalone is enough there. I assume that's why this never showed up in your release testing.I verified the mechanism in isolation with a small test program signed the same way the shipped binary is:
Signed with hardened runtime +
allow-jitonly (like codex):Signed with hardened runtime +
allow-jit+allow-unsigned-executable-memory:Workaround (verified working)
Re-sign the binary locally, keeping the hardened runtime and adding the missing entitlement:
After re-signing, sessions that spawn subagents and nested sub-shells run without any crash. Drawbacks of the workaround: the Developer ID signature is replaced by an ad-hoc one, and
codex updaterestores the broken signature, so it has to be repeated after every update.Suggested fix
Add
com.apple.security.cs.allow-unsigned-executable-memoryto the entitlements used when signing the x86_64-apple-darwin release binaries. Chromium and Deno ship the same entitlement on Intel macOS for exactly this reason.What were you expecting to happen?
Sessions using unified_exec / subagents complete normally on Intel Macs, like they do on Apple Silicon.
Steps to reproduce
Trace/BPT trap: 5as soon as the V8 isolate is created.Full
.ipscrash reports are available if needed.