Repository navigation
Description
What version of Codex CLI is running?
0.162.1
What subscription do you have?
PRO 100
Which model were you using?
No response
What platform is your computer?
Darwin 27.0.0 arm64 arm (MACOS)
What terminal emulator and version are you using (if applicable)?
No response
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1791605949s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.162.1",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is running",
"details": {
"app-server version": "0.161.0",
"control socket": "/Users/nghi/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/nghi/.codex/app-server-daemon",
"dedicated pid file": "/Users/nghi/.codex/app-server-daemon/daemon.pid (missing)",
"dedicated update-loop pid file": "/Users/nghi/.codex/app-server-daemon/daemon-updater.pid (file)",
"mode": "persistent",
"pid file": "/Users/nghi/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/nghi/.codex/app-server-daemon/settings.json (file)",
"status": "running",
"update-loop pid file": "/Users/nghi/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 19
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "/Users/nghi/.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/nghi/.codex",
"active thread overrides": "not inspected",
"config.toml": "/Users/nghi/.codex/config.toml",
"config.toml parse": "ok",
"configuration load ms": "84",
"configuration scope": "invocation config, including cloud-managed policy",
"configured TUI mode": "fullscreen",
"cwd": "/Volumes/data/hdg/vvpanel",
"enabled feature flags": "daemon_auto_start, shell_tool, view_image, sleep_tool, unified_exec, unified_exec_tty, unified_exec_zsh_fork, shell_snapshot, content_item_kinds, code_mode_host, instant_interrupt, terminal_resize_reflow, sqlite, memories, write_stdin_approval, hooks, api_key_model_discovery, enable_request_compression, unbounded_connection_retries, worktrees, system_proxy_fallback, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, browser_annotation_api, in_app_chat, in_app_dictation, in_app_voice, in_app_local_automation, in_app_updates, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, item_ids, skill_mcp_dependency_install, skill_search, mentions_v2, steer, guardian_approval, guardian_reuse_parent_compaction, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, fast_mode, ultrafast_mode, realtime_conversation, tui_app_server, compaction_image_budget, workspace_dependencies",
"feature flag overrides": "memories=true",
"feature flags enabled": "58",
"log dir": "/Users/nghi/.codex/log",
"mcp servers": "6",
"model": "gpt-6.1-sol",
"model provider": "sleev",
"sqlite home": "/Users/nghi/.codex"
},
"remediation": null,
"durationMs": 0
},
"desktop.app.version": {
"id": "desktop.app.version",
"category": "desktop",
"status": "ok",
"summary": "the desktop application is installed",
"details": {
"log directory": "$HOME/Library/Logs/com.openai.codex",
"running": "true",
"version": "26.1007.21159"
},
"remediation": null,
"durationMs": 0
},
"desktop.app_server.handshake": {
"id": "desktop.app_server.handshake",
"category": "desktop",
"status": "ok",
"summary": "the desktop app-server initialized successfully",
"details": {},
"remediation": null,
"durationMs": 0
},
"desktop.security.enforcement": {
"id": "desktop.security.enforcement",
"category": "desktop",
"status": "ok",
"summary": "the desktop application passed available macos security assessments",
"details": {
"gatekeeper": "accepted"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable found; execution not verified",
"details": {
".git entry": "directory",
"PATH git #1": "/usr/bin/git",
"PATH git entries": "1",
"git execution": "not inspected (PATH helpers are not executed)",
"repo detected": "true",
"repo root": "/Volumes/data/hdg/vvpanel",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/Users/nghi/.bun/bin/codex",
"current executable": "/Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin/codex",
"install context": "bun (package /Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin, bin /Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin, resources /Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-resources, path /Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path)",
"managed by Vite+": "false",
"managed by bun": "true",
"managed by npm": "false",
"managed by pnpm": "false",
"managed package root": "/Users/nghi/.bun/install/global/node_modules/@openai/codex"
},
"remediation": null,
"durationMs": 3
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "warning",
"summary": "MCP configuration has optional issues",
"details": {
"Huong-Da-Console": "bearer token env var HDG_MY_MCP_KEY is not set",
"computer-use": "stdio command \"./Codex Computer Use.app/Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient\" is not resolvable (No such file or directory (os error 2))",
"configured servers": "6",
"disabled servers": "0",
"optional reachability failed": "signoz: http://10.252.2.3:21024/mcp (HEAD connect failed; GET connect failed)",
"stdio servers": "4",
"streamable_http servers": "2"
},
"remediation": "Set the missing MCP env vars or disable the affected server.",
"durationMs": 286
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"managed proxy": "not configured",
"proxy env vars": "none",
"respect system proxy": "disabled",
"system proxy": "direct"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "warning",
"summary": "provider endpoint checks returned warnings",
"details": {
"desktop assets CDN": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 200)",
"reachability mode": "ChatGPT auth",
"sleev API inference URL": "http://127.0.0.1:17321/v1/<redacted> reachable (HTTP 405)",
"sleev API route probe": "http://127.0.0.1:17321/v1/<redacted> returned HTTP 400 (warning)"
},
"remediation": "Check proxy, VPN, firewall, DNS, and custom CA configuration.",
"durationMs": 39
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "1 IPv4, 0 IPv6, first IPv4",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "ws://127.0.0.1:17321/v1/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "sleev",
"provider name": "Sleev",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 403
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running bun on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": "/Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin/codex",
"install method": "bun (package /Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin, bin /Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/bin, resources /Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-resources, path /Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path)",
"platform": "macos-aarch64",
"version": "0.162.1"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search command found (bundled); execution not verified",
"details": {
"search command": "/Users/nghi/.bun/install/global/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.filesystem_paths": {
"id": "sandbox.filesystem_paths",
"category": "sandbox",
"status": "ok",
"summary": "no explicit filesystem paths to probe",
"details": {},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "Never",
"codex-linux-sandbox helper": "none",
"denied-read glob rules": "0",
"denied-read rules": "0",
"execve wrapper helper": "/Users/nghi/.codex/tmp/arg0/codex-arg0Ssrcjd/codex-execve-wrapper",
"filesystem sandbox": "unrestricted",
"glob scan max depth": "unbounded",
"managed filesystem source": "none",
"network sandbox": "enabled"
},
"remediation": null,
"durationMs": 0
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "no supported endpoint protection detected",
"details": {
"endpoint products": "none detected"
},
"remediation": null,
"durationMs": 103
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/Users/nghi/.codex (dir)",
"active rollout files": "306 files, 2145370703 total bytes, 7011015 average bytes",
"archived rollout files": "50 files, 211730591 total bytes, 4234611 average bytes",
"goals DB": "/Users/nghi/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/nghi/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/nghi/.codex/log (dir)",
"memories DB": "/Users/nghi/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"memories v2 DB": "/Users/nghi/.codex/memories_v2_1.sqlite (missing)",
"memories v2 DB integrity": "skipped (missing)",
"queue DB": "/Users/nghi/.codex/queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "/Users/nghi/.codex (dir)",
"state DB": "/Users/nghi/.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "/Users/nghi/.codex/thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 7892
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "ok",
"summary": "rollout files and state DB thread inventory agree",
"details": {
"default model provider": "sleev",
"rollout DB active files": "306",
"rollout DB active rows": "306",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "50",
"rollout DB archived rows": "50",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "sleev=356",
"rollout DB rows": "356",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "vscode=177, subagent:thread_spawn=95, cli=43, subagent:review=28, subagent:other=12, exec=1",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 334
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (30.3 GiB)",
"details": {
"CODEX_HOME available": "30.3 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "363.0 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-VN",
"details": {
"EDITOR": "not set",
"LANG": "C",
"LC_ALL": "C",
"LC_CTYPE": "UTF-8",
"VISUAL": "not set",
"os": "Mac OS 27.0.1 [64-bit]",
"os language": "en-VN",
"os type": "Mac OS",
"os version": "27.0.1"
},
"remediation": null,
"durationMs": 6
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "warning",
"summary": "locale is not UTF-8 - unicode glyphs may render incorrectly",
"details": {
"SSH_CLIENT": "present",
"SSH_CONNECTION": "present",
"color output": "enabled",
"effective locale": "C",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Apple Terminal",
"terminal size": "303x68"
},
"issues": [
{
"severity": "warning",
"cause": "locale is not UTF-8 - unicode glyphs may render incorrectly",
"measured": "C",
"expected": "UTF-8 locale, for example en_US.UTF-8",
"remedy": "export LANG=en_US.UTF-8 or another UTF-8 locale",
"fields": [
"effective locale"
]
}
],
"remediation": null,
"durationMs": 1
},
"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": "git repo root",
"terminal title project value": "vvpanel",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.162.1",
"check for update on startup": "true",
"last checked at": "2026-10-10T03:42:35.099623Z",
"latest version": "0.162.1",
"latest version status": "current version is not older",
"update action": "bun install -g @openai/codex",
"version cache": "/Users/nghi/.codex/version.json"
},
"remediation": null,
"durationMs": 660
}
}
}What issue are you seeing?
nghi@Nghis-Mac-mini vvpanel % codex
Error: account/read failed during TUI bootstrap: account/read failed: failed to load workspace requirements (code -32603)
What steps can reproduce the bug?
Codex CLI 0.162.1 – TUI Bootstrap Failure After Upgrade (macOS)
After upgrading Codex CLI to 0.162.1 on macOS, running codex fails with:
Error: account/read failed during TUI bootstrap:
account/read failed: failed to load workspace requirements (code -32603)
- Authentication is valid (
Logged in using ChatGPT). - Logging out and back in does not help.
- File descriptor limit is
1048576. - Workaround:
codex -c log_dir="$HOME/.codex/log"works. - However, setting the exact same
log_dirin~/.codex/config.toml(root level) does not resolve the issue. - Restarting the app-server daemon reports:
app server is running but is not managed by codex app-server daemon.
Expected: Codex should start normally without CLI overrides.
This issue appeared immediately after upgrading the CLI and may be a regression in the TUI bootstrap or configuration loading process.
What is the expected behavior?
Codex CLI should start normally when running codex after upgrading, without requiring additional CLI flags or workarounds. Configuration values in ~/.codex/config.toml should behave consistently with equivalent -c command-line overrides.
Additional information
The issue started immediately after upgrading to Codex CLI 0.162.1 on macOS.
Interestingly, passing -c log_dir="$HOME/.codex/log" allows Codex to start successfully, but setting the exact same value in ~/.codex/config.toml (at the root level) does not work.
Authentication is valid, and logging out and back in does not resolve the issue. The file descriptor limit is also sufficiently high (1048576).
This suggests a possible regression in configuration loading or TUI bootstrap behavior introduced by the CLI upgrade.
Activity
github-actions commentedon Oct 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
LanternCX commentedon Oct 14, 2026
Same issue on macOS.
The TUI bootstrap fails with
failed to load workspace requirements (code -32603).codex -c log_dir="$HOME/.codex/log"With this flag, Codex starts successfully. Without it, the error persists.
Zefrain commentedon Oct 15, 2026
I encountered the same
account/read failed during TUI bootstrap: failed to load workspace requirements (code -32603)error.A simpler workaround fixed it for me:
touch ~/.codex/log/codex-tui.logAfter creating the log file,
codexstarts normally without the-c log_dir=...override.This suggests that handling of a missing TUI log file may be involved in the bootstrap failure, although I haven't confirmed the underlying cause.
etraut-openai commentedon Nov 15, 2026
(response from codex)
Please update and restart the background app-server, then retry
codexwithout the-c log_dirflag. Your doctor report shows CLI 0.162.1 using app-server 0.161.0; the flag may work because it starts a separate embedded server. If startup still fails, please share the new error message.