### What version of Codex CLI is running?
codex-cli 0.153.4
### What subscript…ion do you have?
ChatGPT Pro 20x
### Which model were you using?
gpt-6-astra, reasoning selection: ultra
### What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
### What terminal emulator and version are you using (if applicable)?
Windows Terminal Microsoft.WindowsTerminal 1.24.11911.0 winget
### Codex doctor report
```json
> codex doctor --json
{
"schemaVersion": 1,
"generatedAt": "1788675783s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.153.4",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "C:\\Users\\FengYeeLx\\.codex\\app-server-control\\app-server-control.sock",
"daemon state dir": "C:\\Users\\FengYeeLx\\.codex\\app-server-daemon",
"mode": "ephemeral",
"pid file": "C:\\Users\\FengYeeLx\\.codex\\app-server-daemon\\app-server.pid (missing)",
"settings": "C:\\Users\\FengYeeLx\\.codex\\app-server-daemon\\settings.json (missing)",
"status": "not running",
"update-loop pid file": "C:\\Users\\FengYeeLx\\.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": "C:\\Users\\FengYeeLx\\.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": "C:\\Users\\FengYeeLx\\.codex",
"config.toml": "C:\\Users\\FengYeeLx\\.codex\\config.toml",
"config.toml parse": "ok",
"cwd": "C:\\Users\\FengYeeLx\\Desktop",
"enabled feature flags": "<redacted>",
"feature flag overrides": "apps=false, external_migration=true, prevent_idle_sleep=true",
"feature flags enabled": "49",
"log dir": "C:\\Users\\FengYeeLx\\.codex\\log",
"mcp servers": "3",
"model": "gpt-6-astra",
"model provider": "openai",
"sqlite home": "C:\\Users\\FengYeeLx\\.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\\AppData\\Local\\Codex/Logs",
"running": "false",
"version": "26.901.5280.0"
},
"remediation": null,
"durationMs": 0
},
"desktop.app_server.handshake": {
"id": "desktop.app_server.handshake",
"category": "desktop",
"status": "ok",
"summary": "the desktop application is not running",
"details": {},
"remediation": null,
"durationMs": 0
},
"desktop.security.enforcement": {
"id": "desktop.security.enforcement",
"category": "desktop",
"status": "ok",
"summary": "no locally visible recent Codex security enforcement was found",
"details": {},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.55.0.windows.5",
"details": {
"PATH git #1": "C:\\Git\\cmd\\git.exe",
"PATH git entries": "1",
"git build options": "git version 2.55.0.windows.5; cpu: x86_64; built from commit: 32c4f7689275d233577576630e1ac5b7eb354eb0; sizeof-long: 4; sizeof-size_t: 8; shell-path: D:/git-sdk-64-build-installers/usr/bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.21.0; OpenSSL: OpenSSL 3.5.7 9 Jun 2026; zlib: 1.3.2; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
"git exec path": "C:/Git/mingw64/libexec/git-core",
"git version": "git version 2.55.0.windows.5",
"repo detected": "false",
"selected git": "C:\\Git\\cmd\\git.exe"
},
"remediation": null,
"durationMs": 35
},
"git.worktree.dev_drive": {
"id": "git.worktree.dev_drive",
"category": "git",
"status": "ok",
"summary": "no Git worktree is active",
"details": {},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "C:\\Users\\FengYeeLx\\AppData\\Local\\fnm_multishells\\6380_1788675365695\\codex",
"PATH codex #2": "C:\\Users\\FengYeeLx\\AppData\\Local\\fnm_multishells\\6380_1788675365695\\codex.cmd",
"PATH codex entries": "2",
"current executable": "C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
"install context": "npm (package C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"managed by Vite+": "false",
"managed by bun": "false",
"managed by npm": "true",
"managed by pnpm": "false",
"managed package root": "C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex",
"npm update target": "C:\\Users\\FengYeeLx\\AppData\\Local\\fnm_multishells\\6380_1788675365695\\node_modules\\@openai\\codex"
},
"remediation": null,
"durationMs": 213
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "3",
"disabled servers": "0",
"stdio servers": "3"
},
"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 present": "HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy",
"respect system proxy": "disabled"
},
"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 inference URL": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)",
"desktop assets CDN": "https://persistent.oaistatic.com/codex-app-prod/<redacted> reachable (HTTP 200)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 1791
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 0 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",
"provider name": "OpenAI",
"proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 3661
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on windows-x86_64",
"details": {
"commit": "unknown",
"current executable": "C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
"install method": "npm (package C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"platform": "windows-x86_64",
"version": "0.153.4"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "C:\\Users\\FengYeeLx\\AppData\\Roaming\\fnm\\node-versions\\v24.14.0\\installation\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path\\rg.exe",
"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": "Never",
"codex-linux-sandbox helper": "none",
"denied-read restrictions": "false",
"execve wrapper helper": "none",
"filesystem sandbox": "unrestricted",
"network sandbox": "enabled",
"sandbox backend": "elevated",
"sandbox provisioning": "complete"
},
"remediation": null,
"durationMs": 1
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "no supported endpoint protection detected",
"details": {
"endpoint products": "none detected"
},
"remediation": null,
"durationMs": 10
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "C:\\Users\\FengYeeLx\\.codex (dir)",
"active rollout files": "622 files, 10652642126 total bytes, 17126434 average bytes",
"archived rollout files": "19 files, 81508500 total bytes, 4289921 average bytes",
"goals DB": "C:\\Users\\FengYeeLx\\.codex\\goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "C:\\Users\\FengYeeLx\\.codex\\logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "C:\\Users\\FengYeeLx\\.codex\\log (dir)",
"memories DB": "C:\\Users\\FengYeeLx\\.codex\\memories_1.sqlite (file)",
"memories DB integrity": "ok",
"queue DB": "C:\\Users\\FengYeeLx\\.codex\\queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "C:\\Users\\FengYeeLx\\.codex (dir)",
"state DB": "C:\\Users\\FengYeeLx\\.codex\\state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "C:\\Users\\FengYeeLx\\.codex\\thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 6355
},
"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": "622",
"rollout DB active rows": "1541",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "19",
"rollout DB archived rows": "19",
"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": "<redacted>",
"rollout DB rows": "1560",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "subagent:thread_spawn=1420, cli=91, exec=21, vscode=21, subagent:other=7",
"rollout DB stale row sample": [
"C:\\Users\\FengYeeLx\\.codex\\sessions\\2026\\04\\02\\rollout-2026-04-02T04-44-54-019d4c82-31af-73d3-8cec-4db55ef6ad4c.jsonl",
"C:\\Users\\FengYeeLx\\.codex\\sessions\\2026\\04\\03\\rollout-2026-04-03T00-39-44-019d4f10-a78d-74e2-892f-5f1b7d004e54.jsonl",
"C:\\Users\\FengYeeLx\\.codex\\sessions\\2026\\05\\19\\rollout-2026-05-19T20-42-49-019e4042-a50f-7d53-80f5-663b2424dff2.jsonl",
"C:\\Users\\FengYeeLx\\.codex\\sessions\\2026\\05\\19\\rollout-2026-05-19T20-48-49-019e4048-21d2-76e0-ac4b-d088c784bb6a.jsonl",
"C:\\Users\\FengYeeLx\\.codex\\sessions\\2026\\05\\19\\rollout-2026-05-19T16-34-54-019e3f5f-a8a3-7110-b319-1c7d416df691.jsonl"
],
"rollout DB stale rows": "919"
},
"issues": [
{
"severity": "warning",
"cause": "state DB rows point at missing or unusable rollout files",
"measured": "919 stale rows",
"expected": "every state DB rollout path is a file on disk",
"remedy": null,
"fields": []
}
],
"remediation": null,
"durationMs": 304
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (410.6 GiB)",
"details": {
"CODEX_HOME available": "410.6 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "410.6 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language zh-CN",
"details": {
"EDITOR": "not set",
"VISUAL": "not set",
"os": "Windows 10.0.26100 (Windows 11 EnterpriseS) [64-bit]",
"os language": "zh-CN",
"os type": "Windows",
"os version": "10.0.26100"
},
"remediation": null,
"durationMs": 0
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"WT_SESSION": "present",
"color output": "enabled",
"console input code page": "936",
"console output code page": "936",
"stderr console mode": "0x00000007 (VT processing: true)",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout console mode": "0x00000007 (VT processing: true)",
"stdout is terminal": "true",
"terminal": "Windows Terminal",
"terminal size": "120x30"
},
"remediation": null,
"durationMs": 0
},
"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": "Desktop",
"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.153.4",
"check for update on startup": "true",
"desktop application": "OpenAI.Codex",
"desktop latest build": "26.901.6511.0",
"desktop update status": "available",
"last checked at": "2026-09-05T10:43:22.463336400Z",
"latest version": "0.153.4",
"latest version status": "current version is not older",
"npm update target": "C:\\Users\\FengYeeLx\\AppData\\Local\\fnm_multishells\\6380_1788675365695\\node_modules\\@openai\\codex",
"update action": "npm install -g @openai/codex",
"version cache": "C:\\Users\\FengYeeLx\\.codex\\version.json"
},
"remediation": null,
"durationMs": 3234
}
}
}
```
### What issue are you seeing?
This issue entry exists only to associate an internally uploaded Codex diagnostic thread with two already-filed public reliability reports. It is not intended to introduce a third independent bug report.
Uploaded thread:
`01a0755c-377e-75a1-9085-6f6a34bda5cf`
Existing public reports:
* #43022 — Severe WS stalls in 0.153.4: live Ping/Pong still trips the idle watchdog (Windows loopback-only reproduction)
* #43015 — Severe CLI reliability failure: 63.8 MB image-history requests before any compaction, WebSocket fallback, and prolonged stalls on Windows
#43022 documents a deterministic loopback-only reproduction using the actual installed Windows Codex CLI binary. WebSocket protocol Ping frames receive valid Pong responses, but the application-event idle watchdog still expires and abandons the WebSocket. An application-level JSON heartbeat or a longer idle threshold allows the same delayed response to complete.
#43015 separately documents an image-history/request-size failure in which active history produced an approximately 63.8 MB request before compression and approximately 45.85 MB after zstd compression, followed by repeated stream failures, retries, fallback, and severe workflow stalls.
The two reports describe distinct mechanisms that can produce overlapping user-visible reliability symptoms.
Please associate the uploaded internal diagnostic thread and its available logs/diagnostics with #43022 and #43015 and route the relevant evidence to Codex CLI engineering.
### What steps can reproduce the bug?
Uploaded thread: 01a0755c-377e-75a1-9085-6f6a34bda5cf
### What is the expected behavior?
The complete sanitized reproduction is already documented in #43022.
For the WebSocket failure:
1. Run the actual Codex CLI 0.153.4 binary against the localhost-only synthetic peer provided in #43022.
2. Use a 1,500 ms stream idle threshold and delay the synthetic completion for 3.2 seconds.
3. Send WebSocket protocol Ping frames during the delay.
4. Observe that Codex replies with valid Pong frames but nevertheless reports:
`idle timeout waiting for websocket`
5. Observe HTTP fallback.
6. Repeat with an application-level JSON heartbeat instead of protocol Ping.
7. Observe normal WebSocket completion without the idle error.
8. Repeat with protocol Ping but a 6,000 ms idle threshold.
9. Observe normal WebSocket completion.
For the separate image-history failure, see the measured production reproduction conditions in #43015.
Uploaded diagnostic thread:
`01a0755c-377e-75a1-9085-6f6a34bda5cf`
---
For #43022, transport liveness and application-level response silence should not be represented by one undifferentiated inactivity condition. A live WebSocket with valid protocol-level Ping/Pong activity should not be reported as a dead WebSocket merely because no forwarded Responses application event arrived during a legitimate long reasoning interval. Genuine transport failures must still be detected within a bounded time.
For #43015, Codex should prevent unbounded aggregate serialized image-history growth, account for serialized request bytes in addition to model-token estimates, and provide a supported recovery path before an affected session becomes severely degraded.
The uploaded internal diagnostics should be associated with the existing public reports rather than treated as evidence for an unrelated new issue.
### Additional information
Uploaded through Codex /feedback:
Thread: 01a0755c-377e-75a1-9085-6f6a34bda5cf
Existing public issues:
#43022
#43015
Closely related existing trackers:
#39771
#41338
#24550
The public reports intentionally omit credentials, private repository contents, raw private prompts, private images, and other sensitive session material. The uploaded feedback bundle is intended to provide OpenAI with additional internal diagnostic context that cannot appropriately be placed in the public GitHub issue.