{
"schemaVersion": 1,
"generatedAt": "1779514009s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.131.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/Nick_1/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/Nick_1/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/Nick_1/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/Nick_1/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/Nick_1/.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/Nick_1/.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/Nick_1/.codex",
"config.toml": "/Users/Nick_1/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/Nick_1/Documents/Personal_Projects/bug-bounty",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_search, tool_suggest, plugins, plugin_hooks, 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": "goals=true",
"feature flags enabled": "29",
"log dir": "/Users/Nick_1/.codex/log",
"mcp servers": "1",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "/Users/Nick_1/.codex"
},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/opt/homebrew/bin/codex",
"current executable": "/opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex/codex",
"install context": "npm",
"managed by bun": "false",
"managed by npm": "true",
"managed package root": "/opt/homebrew/lib/node_modules/@openai/codex",
"npm update target": "/opt/homebrew/lib/node_modules/@openai/codex"
},
"remediation": null,
"durationMs": 136
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "1",
"disabled servers": "0",
"stdio servers": "1"
},
"remediation": null,
"durationMs": 0
},
"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 403)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 342
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv6",
"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": 865
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": "/opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex/codex",
"install method": "npm",
"platform": "macos-aarch64",
"version": "0.131.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (system)",
"details": {
"search command": "rg",
"search command readiness": "ripgrep 15.1.0 (rev af60c2de9d)",
"search provider": "system"
},
"remediation": null,
"durationMs": 7
},
"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/Nick_1/.codex/tmp/arg0/codex-arg0u6mkVG/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/Nick_1/.codex (dir)",
"active rollout files": "159 files, 1732124282 total bytes, 10893863 average bytes",
"archived rollout files": "5 files, 2358987 total bytes, 471797 average bytes",
"log DB": "/Users/Nick_1/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/Nick_1/.codex/log (dir)",
"sqlite home": "/Users/Nick_1/.codex (dir)",
"state DB": "/Users/Nick_1/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 291
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"TERM_PROGRAM": "Apple_Terminal",
"color output": "enabled",
"effective locale": "en_US.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Apple Terminal",
"terminal size": "204x39",
"terminal version": "453"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.133.0",
"check for update on startup": "true",
"last checked at": "2026-05-23T05:20:11.585101Z",
"latest version": "0.133.0",
"latest version status": "newer version is available",
"npm update target": "/opt/homebrew/lib/node_modules/@openai/codex",
"update action": "npm install -g @openai/codex",
"version cache": "/Users/Nick_1/.codex/version.json"
},
"remediation": null,
"durationMs": 465
}
}
}
Goal failed twice with "Failed to read thread goal: thread/goal/get failed in TUI" but still used tokens. Went from over 70% left to 4% of my 5h limit.
Try to run a goal, get "Failed to read thread goal: thread/goal/get failed in TUI" error.
Receiving the error doesn't tell me why it failed. But at least, it shouldn't have used up all my tokens as if it had run the goal.
What version of Codex CLI is running?
codex-cli 0.131.0
What subscription do you have?
Plus
Which model were you using?
got-5.5 high
What platform is your computer?
arwin 23.6.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Terminal.app
Codex doctor report
{ "schemaVersion": 1, "generatedAt": "1779514009s since unix epoch", "overallStatus": "ok", "codexVersion": "0.131.0", "checks": { "app_server.status": { "id": "app_server.status", "category": "app-server", "status": "ok", "summary": "background server is not running", "details": { "control socket": "/Users/Nick_1/.codex/app-server-control/app-server-control.sock", "daemon state dir": "/Users/Nick_1/.codex/app-server-daemon", "mode": "ephemeral", "pid file": "/Users/Nick_1/.codex/app-server-daemon/app-server.pid (missing)", "settings": "/Users/Nick_1/.codex/app-server-daemon/settings.json (missing)", "status": "not running", "update-loop pid file": "/Users/Nick_1/.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/Nick_1/.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/Nick_1/.codex", "config.toml": "/Users/Nick_1/.codex/config.toml", "config.toml parse": "ok", "cwd": "/Users/Nick_1/Documents/Personal_Projects/bug-bounty", "enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_search, tool_suggest, plugins, plugin_hooks, 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": "goals=true", "feature flags enabled": "29", "log dir": "/Users/Nick_1/.codex/log", "mcp servers": "1", "model": "gpt-5.5", "model provider": "openai", "sqlite home": "/Users/Nick_1/.codex" }, "remediation": null, "durationMs": 0 }, "installation": { "id": "installation", "category": "install", "status": "ok", "summary": "installation looks consistent", "details": { "PATH codex #1": "/opt/homebrew/bin/codex", "current executable": "/opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex/codex", "install context": "npm", "managed by bun": "false", "managed by npm": "true", "managed package root": "/opt/homebrew/lib/node_modules/@openai/codex", "npm update target": "/opt/homebrew/lib/node_modules/@openai/codex" }, "remediation": null, "durationMs": 136 }, "mcp.config": { "id": "mcp.config", "category": "mcp", "status": "ok", "summary": "MCP configuration is locally consistent", "details": { "configured servers": "1", "disabled servers": "0", "stdio servers": "1" }, "remediation": null, "durationMs": 0 }, "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 403)", "reachability mode": "ChatGPT auth" }, "remediation": null, "durationMs": 342 }, "network.websocket_reachability": { "id": "network.websocket_reachability", "category": "websocket", "status": "ok", "summary": "Responses WebSocket handshake succeeded", "details": { "DNS": "2 IPv4, 2 IPv6, first IPv6", "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": 865 }, "runtime.provenance": { "id": "runtime.provenance", "category": "runtime", "status": "ok", "summary": "running npm on macos-aarch64", "details": { "commit": "unknown", "current executable": "/opt/homebrew/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex/codex", "install method": "npm", "platform": "macos-aarch64", "version": "0.131.0" }, "remediation": null, "durationMs": 0 }, "runtime.search": { "id": "runtime.search", "category": "search", "status": "ok", "summary": "search is OK (system)", "details": { "search command": "rg", "search command readiness": "ripgrep 15.1.0 (rev af60c2de9d)", "search provider": "system" }, "remediation": null, "durationMs": 7 }, "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/Nick_1/.codex/tmp/arg0/codex-arg0u6mkVG/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/Nick_1/.codex (dir)", "active rollout files": "159 files, 1732124282 total bytes, 10893863 average bytes", "archived rollout files": "5 files, 2358987 total bytes, 471797 average bytes", "log DB": "/Users/Nick_1/.codex/logs_2.sqlite (file)", "log DB integrity": "ok", "log dir": "/Users/Nick_1/.codex/log (dir)", "sqlite home": "/Users/Nick_1/.codex (dir)", "state DB": "/Users/Nick_1/.codex/state_5.sqlite (file)", "state DB integrity": "ok" }, "remediation": null, "durationMs": 291 }, "terminal.env": { "id": "terminal.env", "category": "terminal", "status": "ok", "summary": "terminal metadata was detected", "details": { "TERM_PROGRAM": "Apple_Terminal", "color output": "enabled", "effective locale": "en_US.UTF-8", "stderr is terminal": "true", "stdin is terminal": "true", "stdout is terminal": "true", "terminal": "Apple Terminal", "terminal size": "204x39", "terminal version": "453" }, "remediation": null, "durationMs": 0 }, "updates.status": { "id": "updates.status", "category": "updates", "status": "ok", "summary": "update configuration is locally consistent", "details": { "cached latest version": "0.133.0", "check for update on startup": "true", "last checked at": "2026-05-23T05:20:11.585101Z", "latest version": "0.133.0", "latest version status": "newer version is available", "npm update target": "/opt/homebrew/lib/node_modules/@openai/codex", "update action": "npm install -g @openai/codex", "version cache": "/Users/Nick_1/.codex/version.json" }, "remediation": null, "durationMs": 465 } } }What issue are you seeing?
Goal failed twice with "Failed to read thread goal: thread/goal/get failed in TUI" but still used tokens. Went from over 70% left to 4% of my 5h limit.
What steps can reproduce the bug?
Try to run a goal, get "Failed to read thread goal: thread/goal/get failed in TUI" error.
What is the expected behavior?
Receiving the error doesn't tell me why it failed. But at least, it shouldn't have used up all my tokens as if it had run the goal.
Additional information
No response