Summary
On Windows 11 with desloppify 1.0, Codex batch review can select the packaged Codex Desktop executable under C:\Program Files\WindowsApps\...\codex.exe. Starting that executable with subprocess.Popen fails with [WinError 5] Access is denied, even though the npm Codex CLI is available and works.
Reproduction
- Install Codex Desktop and desloppify 1.0.
- Ensure the Windows app alias/package executable is the first
codex candidate on PATH.
- Run
desloppify review --run-batches --runner codex --parallel.
The runner resolves the inaccessible packaged executable and each batch fails before launch.
Expected
Executable resolution should validate that the selected candidate can actually be launched, prefer a CLI shim (codex.cmd) over a WindowsApps packaged app binary, or fall through to the next PATH candidate after WinError 5. An explicit DESLOPPIFY_CODEX_EXECUTABLE override would also provide a reliable escape hatch.
Workaround
Installing @openai/codex globally and prepending its native CLI directory to PATH makes the review runner work.
Environment
- Windows 11
- Python 3.14.7
- desloppify 1.0
- Codex Desktop package
OpenAI.Codex_26.818.5229.0_x64__2p2nqsd0c76g0
Summary
On Windows 11 with
desloppify 1.0, Codex batch review can select the packaged Codex Desktop executable underC:\Program Files\WindowsApps\...\codex.exe. Starting that executable withsubprocess.Popenfails with[WinError 5] Access is denied, even though the npm Codex CLI is available and works.Reproduction
codexcandidate on PATH.desloppify review --run-batches --runner codex --parallel.The runner resolves the inaccessible packaged executable and each batch fails before launch.
Expected
Executable resolution should validate that the selected candidate can actually be launched, prefer a CLI shim (
codex.cmd) over a WindowsApps packaged app binary, or fall through to the next PATH candidate afterWinError 5. An explicitDESLOPPIFY_CODEX_EXECUTABLEoverride would also provide a reliable escape hatch.Workaround
Installing
@openai/codexglobally and prepending its native CLI directory to PATH makes the review runner work.Environment
OpenAI.Codex_26.818.5229.0_x64__2p2nqsd0c76g0