[Windows][26.820.7780.0] Local execution fails to start after updating Codex Desktop
What version of the Codex App are you using (From “About Codex” dialog)?
OpenAI.Codex_26.820.7780.0_x64__2p2nqsd0c76g0
What subscription do you have?
PLUS
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
After updating Codex Desktop to 26.820.7780.0, all new local tasks fail before any command is executed.
Observed user-facing errors include:
Unable to read: local execution environment failed to start.
Unable to read: local command execution service handshake failed.
One observed underlying error was:
failed to spawn code-mode host
C:\Users\<redacted>\AppData\Local\OpenAI\Codex\bin\d0097be4feba73d0\codex-code-mode-host.exe:
The system cannot find the file specified. (os error 2)
The regression is specific to this Windows machine after upgrading to 26.820. The root cause is not yet known.
What steps can reproduce the bug?
- Use a working Codex Desktop installation on Windows 10.0.26200.0.
- Update the app to 26.820.7780.0.
- Create a new local task.
- Request a trivial local command, such as listing a directory.
- Observe that local execution fails during startup or handshake, before the command runs.
The issue persists after:
- Restarting Windows
- Windows repair operations
- A clean Codex configuration test
- Recreating the CUA Node runtime
What is the expected behavior?
After an in-app update, a new local task should start normally and execute basic commands.
If a required local runtime component is unavailable, Codex should report the exact missing component and provide an automatic repair path instead of failing every local task with a generic startup or handshake error.
Additional information
I compared the affected PC with another PC where 26.820.7780.0 works normally:
- Same Windows build
- Same Codex App version
- Same codex.exe hash
- Same node_repl.exe hash
- Configured named pipe matched the actual running named pipe on both PCs
Therefore, this does not appear to be a universally broken 26.820 release, but it is a reproducible machine-specific or state-specific regression triggered by the update.
_Rolling back to the previous 26.818.61809 build restored local execution after completing the rollback procedure._
Please advise what additional diagnostics would be useful. I can provide sanitized Codex Desktop logs and process details.
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
The
failed to spawn code-mode-host ... d0097be4feba73d0\codex-code-mode-host.exe: The system cannot find the file specified (os error 2)is a missing-binary issue, not a config one, which is why the clean-config test didn't help. That hash subfolder not existing on disk after an update usually means AV quarantine or a half-extracted update, worth checking Defender's quarantine history for the codex bin path before reinstalling. If you have a second machine on the same build, copying the whole%LOCALAPPDATA%\OpenAI\Codex\bin\folder over fixes it in minutes, I did exactly that once when an update dropped a helper. oh, btw, in case it might help that, I built a portable Hermes OTG repo, check it, imo it may be able to help you diagnose and figure out the fix in no time. https://github.com/MilkyWay008/Hermes-OTGThis looks like a good match for the local runtime/helper materialization layer rather than a config-only failure: the app is trying to spawn
%LOCALAPPDATA%\OpenAI\Codex\bin\d0097be4feba73d0\codex-code-mode-host.exe, but that helper is not present after the update, while another machine on the same Desktop build works.I maintain WinBridge Recovery: https://github.com/zemeng5208/winbridge-recovery
For this specific failure it can help diagnose/recover the per-user Codex runtime/helper staging layer: whether the expected hash/version directory exists, whether
codex.exe/codex-code-mode-host.exe/ related helpers were only partially materialized, whether stale.staging-*state or a file lock interrupted activation, and whether the user-side copies still match the currently installed official MSIX resources.The important limitation is that this only addresses local state/materialization problems. It does not modify
WindowsApps, bypass package protection, or guarantee a fix. If the current Desktop build itself is selecting the wrong helper hash/path, or repeatedly fails to materialize a valid helper from an Application Protected/EFS source, that remains an upstream Codex relocation/update bug and needs an OpenAI-side fix.I’m also seeing the Windows-side regression after the recent Codex update, with symptoms beyond the GPT-5.6 tool-call failure:
I added the GPT-5.6-specific reproduction to #41049 as well. This report is to confirm that the startup/chat-loading slowdown is also present on an affected Windows installation after the recent update.
Please consider whether these symptoms share the same 26.820 runtime/local-execution regression or represent two overlapping regressions. If there are diagnostic logs that would help isolate startup/chat loading versus code-mode host/tool-call failures, please document the recommended collection steps.
@MilkyWay008 @zemeng5208
I reproduced the issue again with OpenAI.Codex 26.820.9563.0 and collected additional evidence.
Important correction
The previously observed “missing
codex-code-mode-host.exe” condition occurred later during a rollback/cache-version mismatch. It should not be treated as the confirmed root cause of the original 26.820 local-execution regression.In the current clean reproduction, the host executable is present and valid.
Reproduction results
OpenAI.Codex_26.820.9563.0_x64__2p2nqsd0c76g0Local execution environment failed to startLocal command execution service handshake failedcode-mode host exited during handshakeThe active app-server process was:
It was launched with:
Host executable integrity
The host executable exists in both locations:
Both copies have the same SHA-256 hash:
Both Authenticode signatures report:
This rules out a missing host file, a corrupted MSIX copy, and a damaged per-user materialized copy in this reproduction.
Process monitoring result
A short-interval process monitor captured the host process:
The decimal
ExitCodefield was blank in the collector, so I do not want to overstate the exact exit status. However, the process was definitely created from the expected path and then disappeared during the handshake window.There were no matching Windows Application events from:
1000)1001)1026)This does not look like a normal unhandled Windows crash. The current evidence suggests that the host starts successfully but exits before completing its parent/child handshake.
Security-software check
Current assessment
The problem appears to be in the code-mode host initialization or handshake path, rather than MSIX installation or helper-file materialization.
A possible failure mode is that the host does not receive or retain the expected IPC/stdio/pipe handshake channel and exits early, while the parent
codex.exereportscode-mode host exited during handshake. This is an inference from the observed behavior, not a confirmed source-level root cause.Could a maintainer advise:
codex-code-mode-host.exestartup/handshake logging?I can provide sanitized desktop logs, AppX deployment events, hashes, signatures, and additional process traces if needed.
@micizi95
Additional controlled A/B result:
On the same affected Windows machine, with the same Codex Desktop installation, project, configuration, and security software state:
GPT-5.6 consistently fails to execute local tasks with the code-mode host handshake error.
Switching the same workload to GPT-5.5 restores local command execution immediately.
Rolling back Codex Desktop from 26.820.x to 26.818.x also restores normal operation.
This matches the model-specific behavior reported in #41049, #32759, and #38187.
Given that both copies of codex-code-mode-host.exe were present, had identical SHA-256 hashes, valid signatures, and the process was observed starting, this no longer appears to be a missing-file or antivirus-quarantine issue. It appears to be a GPT-5.6/code-mode compatibility regression in the newer runtime.
I performed an additional comparison between the working 26.818 build and the affected 26.820 build. The evidence suggests that this is not simply a missing executable or antivirus quarantine, but a regression in the newer local execution path used by GPT-5.6.
Controlled comparison:
GPT-5.6 local execution works.
GPT-5.6 fails during the Code Mode Host handshake, while GPT-5.5 works.
The same Windows account, workspace, configuration, and security-software state were used.
On 26.820:
codex-code-mode-host.exeexisted in both the App package and per-user cache.F081067C03AE746C22BED3B5106C2CF9C3EB3448E835E218DFCDAFAAF8569ED9I also compared the corresponding bundled Codex CLI versions. Between these builds, the model shell backend changed from
shell_commandtounified_exec.The relevant source change is:
https://github.com/openai/codex/commit/8a40095ea31c8a5e7f50b631e627f4d25931fe9d
This commit, “Standardize shell execution on unified exec (#39757),” modified 116 files, removed the legacy shell-command backend and fallback path, and standardized local command execution on
unified_exec.GPT-5.6 remained configured with:
tool_mode: code_mode_onlyuse_responses_lite: trueGPT-5.5 does not use the same
code_mode_onlyroute. This explains why switching only the model changes the result on the same affected installation.Another relevant change increased the local Code Mode Host startup timeout from 10 to 30 seconds:
https://github.com/openai/codex/commit/275ef855fac71203ffff904d20c860a7717d6e8a
The corresponding source returns
code-mode host exited during handshakewhen the spawned Host process exits before producing the expected handshake data.Current assessment:
The strongest hypothesis is a Windows regression in the
unified_execinitialization or integration path when invoked through the GPT-5.6 Code Mode Host.The exact internal exit point is not yet confirmed because the Host does not emit a useful crash or handshake diagnostic. However, the controlled 26.818 versus 26.820 comparison isolates the regression to the newer Desktop/CLI runtime and its local execution changes.
Current workarounds: