Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.160.0
What subscription do you have?
API key
Which model were you using?
GPT-6.1 Sol low
What platform is your computer?
Linux 6.12.0-124.52.1.el10_1.x86_64 x86_64 unknown
What terminal emulator and version are you using (if applicable)?
VS Code
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1791276134s since unix epoch",
"overallStatus": "fail",
"codexVersion": "0.160.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/home/USER/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/home/USER/.codex/app-server-daemon",
"dedicated pid file": "/home/USER/.codex/app-server-daemon/daemon.pid (file)",
"dedicated update-loop pid file": "/home/USER/.codex/app-server-daemon/daemon-updater.pid (file)",
"mode": "ephemeral",
"pid file": "/home/USER/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/home/USER/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/home/USER/.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": "/home/USER/.codex/auth.json",
"auth storage mode": "File",
"stored API key": "true",
"stored ChatGPT tokens": "false",
"stored agent identity": "false",
"stored auth mode": "api_key"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "/home/USER/.codex",
"active thread overrides": "not inspected",
"config.toml": "/home/USER/.codex/config.toml",
"config.toml parse": "ok",
"configuration load ms": "48",
"configuration scope": "invocation config, including cloud-managed policy",
"cwd": "/home/USER/code",
"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, terminal_resize_reflow, sqlite, write_stdin_approval, hooks, 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, in_app_chat, in_app_dictation, 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, realtime_conversation, tui_app_server, compaction_image_budget, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "52",
"log dir": "/home/USER/.codex/log",
"mcp servers": "0",
"model": "gpt-6.1-sol",
"model provider": "openai",
"sqlite home": "/home/USER/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable found; execution not verified",
"details": {
"PATH git #1": "/usr/bin/git",
"PATH git entries": "1",
"git execution": "not inspected (PATH helpers are not executed)",
"repo detected": "false",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/home/USER/.local/bin/codex",
"current executable": "/home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/bin/codex",
"install context": "standalone (unix, package /home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl, bin /home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/bin, resources /home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/codex-resources, path /home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/codex-path)",
"managed by Vite+": "false",
"managed by bun": "false",
"managed by npm": "false",
"managed by pnpm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 0
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"remediation": null,
"durationMs": 0
},
"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"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "fail",
"summary": "one or more required provider endpoints are unreachable over HTTP",
"details": {
"openai API inference URL": "https://api.openai.com/v1/<redacted> connect failed (required)",
"reachability mode": "API key auth"
},
"remediation": "Check proxy, VPN, firewall, DNS, and custom CA configuration.",
"durationMs": 45
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "warning",
"summary": "Responses WebSocket failed; HTTPS fallback may still work",
"details": {
"DNS": "lookup failed (Operation not permitted (os error 1))",
"auth mode": "api_key",
"connect timeout": "15000 ms",
"endpoint": "wss://api.openai.com/v1/<redacted>",
"handshake transport error": "network error: Operation not permitted (os error 1)",
"model provider": "openai",
"provider name": "OpenAI",
"proxy env vars": "none",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": "Check proxy, VPN, firewall, DNS, custom CA, and WebSocket policy support.",
"durationMs": 17
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on linux-x86_64",
"details": {
"commit": "unknown",
"current executable": "/home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/bin/codex",
"install method": "standalone (unix, package /home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl, bin /home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/bin, resources /home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/codex-resources, path /home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/codex-path)",
"platform": "linux-x86_64",
"version": "0.160.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search command found (bundled); execution not verified",
"details": {
"search command": "/home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/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": "OnRequest",
"codex-linux-sandbox helper": "/home/USER/.codex/packages/standalone/releases/0.160.0-x86_64-unknown-linux-musl/bin/codex",
"denied-read glob rules": "0",
"denied-read rules": "0",
"execve wrapper helper": "none",
"filesystem sandbox": "restricted",
"glob scan max depth": "unbounded",
"managed filesystem source": "none",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "endpoint protection is not inspected on this platform",
"details": {
"endpoint products": "not inspected on this platform"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/home/USER/.codex (dir)",
"active rollout files": "65 files, 87808358 total bytes, 1350897 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/home/USER/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/home/USER/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/home/USER/.codex/log (missing)",
"memories DB": "/home/USER/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"memories v2 DB": "/home/USER/.codex/memories_v2_1.sqlite (missing)",
"memories v2 DB integrity": "skipped (missing)",
"queue DB": "/home/USER/.codex/queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "/home/USER/.codex (dir)",
"standalone release cache": "6 entries in /home/USER/.codex/packages/standalone/releases",
"state DB": "/home/USER/.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "/home/USER/.codex/thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 198
},
"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": "openai",
"rollout DB active files": "65",
"rollout DB active rows": "65",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "0",
"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": "openai=65",
"rollout DB rows": "65",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "subagent:other=40, vscode=23, cli=2",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 34
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (445.0 GiB)",
"details": {
"CODEX_HOME available": "445.0 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "445.0 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language C",
"details": {
"EDITOR": "not set",
"GH_PAGER": "set",
"GIT_PAGER": "set",
"LANG": "C.UTF-8",
"LC_ALL": "C.UTF-8",
"LC_CTYPE": "C.UTF-8",
"PAGER": "set",
"VISUAL": "not set",
"os": "Red Hat Enterprise Linux 10.1.0 [64-bit]",
"os language": "C",
"os type": "Red Hat Enterprise Linux",
"os version": "10.1.0"
},
"remediation": null,
"durationMs": 1
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"NO_COLOR": "1",
"SSH_CLIENT": "present",
"SSH_CONNECTION": "present",
"TERM_PROGRAM": "vscode",
"VSCODE_IPC_HOOK_CLI": "present",
"color output": "disabled (NO_COLOR)",
"effective locale": "C.UTF-8",
"stderr is terminal": "false",
"stdin is terminal": "false",
"stdout is terminal": "false",
"terminal": "VS Code",
"terminal size": "80x24",
"terminal version": "1.139.1"
},
"remediation": null,
"durationMs": 2
},
"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": "project config",
"terminal title project value": "code",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "warning",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.160.1",
"check for update on startup": "true",
"last checked at": "2026-10-06T08:14:27.631146850Z",
"latest version probe": "error sending request for url (https://api.github.com/repos/<redacted>)",
"update action": "standalone installer",
"version cache": "/home/USER/.codex/version.json"
},
"remediation": null,
"durationMs": 47
}
}
}What issue are you seeing?
Codex auto-review classifier repeatedly times out after 90 seconds
Codex CLI with approval_policy = "on-request" and approvals_reviewer = "auto_review" frequently stalls on permission classification, then fails the command before execution. Retries can receive an allow decision within a few seconds.
Local session logs from September 28–October 6, 2026 (through 08:15 UTC), cover 536 classification attempts across 19 sessions:
| Result | Attempts | Total classifier time |
|---|---|---|
Completed, all allow |
504 | 22.8 min |
| Interrupted | 32 | 44.3 min |
| Total | 536 | 67.1 min |
The median attempt took 2.6 seconds, but 26 interrupted attempts lasted approximately 90 seconds. Parent tool outputs contain 25 explicit deadline errors: “The automatic permission approval review did not finish before its deadline.” Six shorter interruptions are not confirmed timeouts. Interrupted attempts account for 66% of classifier time; totals exclude startup and recovery between retries.
No interruptions occurred in 239 attempts on September 28–October 1 (CLI 0.158.0–0.159.3). They first appeared October 2 with 0.160.0 and persisted with 0.160.1. This suggests a useful investigation boundary, but does not establish a version regression. October 5 was worst: 20 of 186 attempts reached 90 seconds.
Example for tracing: parent session 01a0fbe0-dcc8-75d1-a773-6bb1a50b4e90, October 6 at 08:13:10 UTC. Classification ran for 90.003 seconds; a subsequent attempt in the same parent turn returned allow in 3.783 seconds. Parent turn ID: 01a11045-87e7-7f50-9595-6463914ee31a.
Please investigate why classification intermittently reaches its deadline while subsequent attempts finish quickly. Per-attempt timestamps and timeout outputs are available in reviews.csv and timeout-errors.json.
What steps can reproduce the bug?
Uploaded thread: 01a11047-3fe7-7753-a706-79059d28a381
What is the expected behavior?
No response
Additional information
No response
Activity
Duan-AH commentedon Oct 17, 2026
I can add a Windows Codex desktop / ChatGPT-auth Auto-review case with a concrete transport-state correlation (bundled CLI
0.163.0-alpha.10.2, observed 2026-10-17, China Standard Time).Observed sequence
falling back to HTTP.responses_http. One child had 4 timeouts in 34 reviews, each at approximately 90.03–90.05 seconds with no reviewer output; its other 30 reviews completed. Another affected HTTP-heavy conversation had 4 timeouts in 30 reviews.responses_websocket. A benign command after restart completed but did not trigger Guardian, so this does not establish post-restart reviewer recovery.Relevant source behavior
ModelClientretainsdisable_websocketsafter fallback.Timeoutis not retried.Reusableafter successful interrupt/drain, potentially retaining its transport state.Could maintainers investigate a bounded, independent WebSocket recovery attempt when a new Guardian starts after parent HTTP fallback, plus rebuilding a reviewer after timeout instead of reusing its transport state? A failed WebSocket attempt should preserve enough of the 90-second budget for HTTP. Focused tests would cover parent fallback, reviewer connection failure, timeout, and pool recovery.
The sticky fallback and inheritance are confirmed in this version's source; whether they account for every 90-second timeout is still unproven. I have not validated a patch or modified the signed desktop bundle.
alexspeller commentedon Oct 28, 2026
Adding a macOS data point (codex-cli 0.163.0, ChatGPT auth, WebSocket transport,
codex-auto-reviewat low effort). Over 20–27 Oct one Mac ran about 36,300 auto reviews: p50 1.9 s, p99 5.0 s, p99.9 17.9 s. Eleven (0.03 %) hit the 90 s deadline. In every one, the reviewer rollout shows the review prompt submitted 3–122 ms after the turn started and no compaction, then no response at all until the turn was aborted at 90.0 s. In 7 of the 11, other reviews from the same machine and account started and completed in 2–3 s during the stall. Timeouts clustered in two evening windows (22 and 25 Oct, roughly 20:30–21:30 UTC), matching timeouts on a second Mac at the same time. A manual retry of the same action always succeeded at once.So individual reviewer requests stall upstream, and the client has no recovery inside the deadline:
REVIEW_TIMEOUTcovers the whole review,run_with_retrydoes not retryTimeout, and the reviewer stream inherits the provider'sstream_idle_timeout(300 s by default; the built-inopenaiprovider cannot be overridden), so the model client's stream retries can never start before the review expires.Suggestion: within the existing deadline, treat a reviewer attempt with no stream events for a fraction of the remaining budget as stalled, cancel it and resubmit the same review request, still failing closed with the timeout message if the deadline runs out. Equivalently, cap the reviewer stream's idle timeout at a fraction of the remaining review budget so the existing stream retries apply.