Commands do not return on powershell on 0.142.5
Resolved 💬 5 comments Opened Jul 6, 2026 by kendonB Closed Aug 4, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.142.5
What subscription do you have?
Pro
Which model were you using?
5.5
What platform is your computer?
Windows x64 11
What terminal emulator and version are you using (if applicable)?
Windows Terminal
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1783305225s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.142.5",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "C:\\Users\\KennyBell\\.codex\\app-server-control\\app-server-control.sock",
"daemon state dir": "C:\\Users\\KennyBell\\.codex\\app-server-daemon",
"mode": "ephemeral",
"pid file": "C:\\Users\\KennyBell\\.codex\\app-server-daemon\\app-server.pid (missing)",
"settings": "C:\\Users\\KennyBell\\.codex\\app-server-daemon\\settings.json (missing)",
"status": "not running",
"update-loop pid file": "C:\\Users\\KennyBell\\.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\\KennyBell\\.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\\KennyBell\\.codex",
"config.toml": "C:\\Users\\KennyBell\\.codex\\config.toml",
"config.toml parse": "ok",
"cwd": "C:\\Users\\KennyBell",
"enabled feature flags": "<redacted>",
"feature flag overrides": "memories=true, default_mode_request_user_input=true",
"feature flags enabled": "35",
"log dir": "C:\\Users\\KennyBell\\.codex\\log",
"mcp servers": "1",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "C:\\Users\\KennyBell\\.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.54.0.windows.1",
"details": {
"PATH git #1": "C:\\Program Files\\Git\\cmd\\git.exe",
"PATH git entries": "1",
"git build options": "git version 2.54.0.windows.1; cpu: x86_64; built from commit: 2b8a3ab140826ac423c2845ef81d4c6ac4f7bf3c; 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.19.0; OpenSSL: OpenSSL 3.5.6 7 Apr 2026; zlib: 1.3.2; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
"git exec path": "C:/Program Files/Git/mingw64/libexec/git-core",
"git version": "git version 2.54.0.windows.1",
"repo detected": "false",
"selected git": "C:\\Program Files\\Git\\cmd\\git.exe"
},
"remediation": null,
"durationMs": 190
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "C:\\Program Files\\nodejs\\codex",
"PATH codex #2": "C:\\Program Files\\nodejs\\codex.cmd",
"PATH codex #3": "C:\\Users\\KennyBell\\AppData\\Local\\Programs\\OpenAI\\Codex\\bin\\codex.exe",
"PATH codex #4": "C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v19.9.0\\codex",
"PATH codex #5": "C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v19.9.0\\codex.cmd",
"PATH codex entries": "5",
"current executable": "C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\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\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"managed by bun": "false",
"managed by npm": "true",
"managed package root": "C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex",
"npm update target": "C:\\Program Files\\nodejs\\node_modules\\@openai\\codex"
},
"remediation": null,
"durationMs": 3935
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "warning",
"summary": "MCP configuration has optional issues",
"details": {
"configured servers": "1",
"disabled servers": "0",
"node_repl": "stdio command \"/mnt/c/Users/KennyBell/AppData/Local/OpenAI/Codex/runtimes/cua_node/789504f803e82e2b/bin/node_repl.exe\" is not resolvable (The system cannot find the path specified. (os error 3))",
"stdio servers": "1"
},
"remediation": "Set the missing MCP env vars or disable the affected server.",
"durationMs": 2
},
"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": 216
},
"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",
"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": 599
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on windows-x86_64",
"details": {
"commit": "unknown",
"current executable": "C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\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\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"platform": "windows-x86_64",
"version": "0.142.5"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "C:\\Users\\KennyBell\\AppData\\Roaming\\nvm\\v20.19.4\\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": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "none",
"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": "C:\\Users\\KennyBell\\.codex (dir)",
"active rollout files": "909 files, 635191167 total bytes, 698780 average bytes",
"archived rollout files": "7 files, 5776891 total bytes, 825270 average bytes",
"goals DB": "C:\\Users\\KennyBell\\.codex\\goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "C:\\Users\\KennyBell\\.codex\\logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "C:\\Users\\KennyBell\\.codex\\log (missing)",
"memories DB": "C:\\Users\\KennyBell\\.codex\\memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "C:\\Users\\KennyBell\\.codex (dir)",
"state DB": "C:\\Users\\KennyBell\\.codex\\state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 517
},
"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": "909",
"rollout DB active rows": "890",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "7",
"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": "19",
"rollout DB missing active sample": [
"C:\\Users\\KennyBell\\.codex\\sessions\\2026\\06\\13\\rollout-2026-06-13T10-11-20-019ebde3-c212-7d42-b98f-a94089abf9f6.jsonl",
"C:\\Users\\KennyBell\\.codex\\sessions\\2026\\06\\13\\rollout-2026-06-13T12-32-12-019ebe64-ba21-7ee0-ad67-bac7d5877117.jsonl",
"C:\\Users\\KennyBell\\.codex\\sessions\\2026\\06\\04\\rollout-2026-06-04T07-46-16-019e8f05-b349-7580-899d-7ef04c34868c.jsonl",
"C:\\Users\\KennyBell\\.codex\\sessions\\2026\\06\\02\\rollout-2026-06-02T07-59-44-019e84c5-5022-7ae1-9f98-74965442dc20.jsonl",
"C:\\Users\\KennyBell\\.codex\\sessions\\2026\\06\\02\\rollout-2026-06-02T08-11-28-019e84d0-10d1-77b0-9ce8-5dd3ca61994c.jsonl"
],
"rollout DB missing archived rows": "6",
"rollout DB missing archived sample": [
"C:\\Users\\KennyBell\\.codex\\archived_sessions\\rollout-2026-03-05T21-26-31-019cbd1b-0802-7343-8c87-a06ba63549fe.jsonl",
"C:\\Users\\KennyBell\\.codex\\archived_sessions\\rollout-2026-05-07T09-08-05-019dff1e-8e2f-7fd0-b95f-aac4fc4ff959.jsonl",
"C:\\Users\\KennyBell\\.codex\\archived_sessions\\rollout-2026-05-30T12-38-44-019e7651-ac98-7980-9b1d-0dbc456812b7.jsonl",
"C:\\Users\\KennyBell\\.codex\\archived_sessions\\rollout-2026-05-30T12-39-55-019e7652-c2a3-7531-8519-d55526448a7c.jsonl",
"C:\\Users\\KennyBell\\.codex\\archived_sessions\\rollout-2026-05-30T12-40-15-019e7653-0ed4-7a62-8f8a-6ed02f9b744d.jsonl"
],
"rollout DB model providers": "openai=891",
"rollout DB rows": "891",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "exec=487, cli=210, vscode=64, subagent:thread_spawn=61, subagent:review=43, subagent:other=26",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "19 active, 6 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
}
],
"remediation": null,
"durationMs": 45719
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"EDITOR": "not set",
"VISUAL": "not set",
"os": "Windows 10.0.26200 (Windows 11 Professional) [64-bit]",
"os language": "en-US",
"os type": "Windows",
"os version": "10.0.26200"
},
"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": "437",
"console output code page": "437",
"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": 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": "cwd",
"terminal title project value": "KennyBell",
"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.142.5",
"check for update on startup": "true",
"last checked at": "2026-07-05T23:52:39.579790800Z",
"latest version": "0.142.5",
"latest version status": "current version is not older",
"npm update target": "C:\\Program Files\\nodejs\\node_modules\\@openai\\codex",
"update action": "npm install -g @openai/codex",
"version cache": "C:\\Users\\KennyBell\\.codex\\version.json"
},
"remediation": null,
"durationMs": 632
}
}
}
What issue are you seeing?
I ask codex to do anything in powershell and no commands return anything. It was also completely confused about what was happening as the first time it happened it explained the problem away by saying it was searching cloud backed folder.
But asking it to run codex --version also fails to return
What steps can reproduce the bug?
say "please run codex --version"
<img width="582" height="220" alt="Image" src="https://github.com/user-attachments/assets/591770eb-1834-4423-8af7-0df1e74f455c" />
The UI still shows "Working" but it ticks up forever.
What is the expected behavior?
it works
Additional information
_No response_
5 Comments
Repro-d on a colleague's device. We both use WSL CLI as the main codex surface.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
<img width="1355" height="807" alt="Image" src="https://github.com/user-attachments/assets/f5a0556b-eb20-48ed-b73e-ad1e27b1bb3d" />
Tried changing sandbox from "elevated" to "unelevated" in config.toml, which did make commands return something, but the sandbox is completely broken with extremely safe commands being denied and (very inefficiently) escalated to the auto review bot.
Apologies for the slop, but 5.5 xhigh thinks this:
<details>
<summary>Click to expand code</summary>
```text
• The concrete upstream change I’d propose is in:
codex-rs/windows-sandbox-rs/src/token.rs
Not a script. This is the Windows sandbox token setup code. The failing call is
SetTokenInformation(TokenDefaultDacl), and error 1344 is ERROR_ALLOTTED_SPACE_EXCEEDED.
The patch should make the default-DACL setup non-fatal for that specific capacity error. That DACL is a
compatibility aid for child-created PowerShell pipes/IPC; the restricted token has already been created. So the
safer behaviour is: try full DACL, retry smaller DACL, then continue with the token’s existing default DACL rather
than killing every command before spawn.
diff --git a/codex-rs/windows-sandbox-rs/src/token.rs b/codex-rs/windows-sandbox-rs/src/token.rs
index 000000000..000000000 100644
--- a/codex-rs/windows-sandbox-rs/src/token.rs
+++ b/codex-rs/windows-sandbox-rs/src/token.rs
@@ -4,6 +4,7 @@ use anyhow::anyhow;
use std::ffi::c_void;
use windows_sys::Win32::Foundation::CloseHandle;
+use windows_sys::Win32::Foundation::ERROR_ALLOTTED_SPACE_EXCEEDED;
use windows_sys::Win32::Foundation::ERROR_SUCCESS;
use windows_sys::Win32::Foundation::GetLastError;
use windows_sys::Win32::Foundation::HANDLE;
@@ -49,11 +50,49 @@ struct TokenDefaultDaclInfo {
default_dacl: *mut ACL,
}
+#[derive(Debug)]
+enum DefaultDaclError {
+}
+
+impl std::fmt::Display for DefaultDaclError {
+}
+
+impl std::error::Error for DefaultDaclError {}
+
+fn is_default_dacl_capacity_error(err: &DefaultDaclError) -> bool {
+}
+
/// Sets a permissive default DACL so sandboxed processes can create pipes/IPC objects
/// without hitting ACCESS_DENIED when PowerShell builds pipelines.
unsafe fn set_default_dacl(h_token: HANDLE, sids: &[*mut c_void]) -> Result<()> {
if sids.is_empty() {
return Ok(());
}
+}
+
+unsafe fn set_default_dacl_once(
+) -> std::result::Result<(), DefaultDaclError> {
let entries: Vec<EXPLICIT_ACCESS_W> = sids
.iter()
.map(|sid| EXPLICIT_ACCESS_W {
@@ -81,7 +120,7 @@ unsafe fn set_default_dacl(h_token: HANDLE, sids: &[*mut c_void]) -> Result<()>
&mut p_new_dacl,
);
if res != ERROR_SUCCESS {
}
let mut info = TokenDefaultDaclInfo {
default_dacl: p_new_dacl,
@@ -101,9 +140,7 @@ unsafe fn set_default_dacl(h_token: HANDLE, sids: &[*mut c_void]) -> Result<()>
if !p_new_dacl.is_null() {
LocalFree(p_new_dacl as HLOCAL);
}
}
if !p_new_dacl.is_null() {
LocalFree(p_new_dacl as HLOCAL);
@@ -448,6 +485,7 @@ unsafe fn create_token_with_caps_from(
}
let mut dacl_sids: Vec<*mut c_void> = Vec::with_capacity(psid_capabilities.len() + 2);
dacl_sids.push(psid_logon);
dacl_sids.push(psid_everyone);
dacl_sids.extend_from_slice(psid_capabilities);
@@ -457,3 +495,19 @@ unsafe fn create_token_with_caps_from(
enable_single_privilege(new_token, "SeChangeNotifyPrivilege")?;
Ok(new_token)
}
+
+#[cfg(test)]
+mod tests {
+
+}
I would not start by changing src/bin/command_runner/win.rs: that runner already sends a spawn_failed error frame
if token creation fails after pipe setup. The immediate bug is that token.rs makes an IPC-helper DACL failure
fatal, so basic commands never get to spawn.
```
</details>
fixed