Windows Codex App: unified exec fails with `helper_unknown_error: setup refresh had errors`
What version of the Codex App are you using (From “About Codex” dialog)?
26.819.11345
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What issue are you seeing?
The Codex App cannot start the unified exec terminal helper.
Exact error:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors
The failure occurs before any command starts, including read-only commands such as:
git rev-parse HEAD
Reproduced in:
- the existing project chat;
- a newly created chat in the same local project;
- after restarting the Codex App;
- after restarting Windows;
- after Workspace dependency diagnostics reported
Codex dependencies look healthy; - after reinstalling the Workspace bundle;
- with
[windows] sandbox = "elevated"; - with
[windows] sandbox = "unelevated".
The local project path contains Cyrillic characters. The project and commands worked previously with the same path.
Expected behavior:
The unified exec helper starts and executes the read-only command.
Actual behavior:
The helper fails during setup refresh before the command is launched.
Impact:
Terminal preflight cannot run. Repository staging and commit operations are intentionally paused. No repository changes, staging, or commits were performed during troubleshooting.
The existing .codex/.sandbox/sandbox.log does not contain the current failures. Its last records predate the currently installed Codex App version.
Feedback ID:01a03853-2618-7b90-9ce3-1d74d3c81a1d
What steps can reproduce the bug?
- Open the Codex App on Windows.
- Open an existing local-project chat or create a new chat in the same project.
- Ask Codex to run a basic read-only terminal command such as
git rev-parse HEAD. - The terminal helper fails before the command starts with:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors. - Repeat after restarting the app or creating another project chat; the same failure occurs.
What is the expected behavior?
The unified exec terminal helper should initialize successfully and execute the requested command in the configured local project directory.
Additional information
_No response_
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
The suggested duplicate #40215 describes the same failure, but it was closed automatically without a documented resolution or confirmed fixed version.
The issue remains reproducible in Codex App version
26.819.11345after restarting Windows, reinstalling the Workspace bundle, creating a new project chat, and testing both Windows sandbox modes.Regular Windows PowerShell works normally. A manual read-only Git check outside Codex confirmed that the local repository exists, its HEAD is readable, and the staged index is empty. The failure is isolated to the Codex unified exec/local command runner before process creation.
Please keep #40596 open, or link it to the current active tracking issue if this regression is already being investigated.
Feedback ID:
01a03853-2618-7b90-9ce3-1d74d3c81a1dSaw
helper_unknown_error: setup refresh had errorson 26.819.11345, it's the same Windows regression as #40215, which got auto-closed without a fix note, so staying on this build keeps you stuck. While you wait for a patched build, two things helped me: copy the project to a pure-ASCII path, your Cyrillic path is the one variable that's different from the other reporters, and tail.codex/.sandbox/sandbox.logright after the failure, that's where setup refresh writes the real error. And on the Windows install-breaks side of things, I built a portable Hermes OTG, a spare agent on a USB stick that runs outside the broken install so you can still dig in and fix things, https://github.com/MilkyWay008/Hermes-OTG.Additional diagnostic information from another affected Windows user.
Environment
26.818.8289.026.819.1134526100, x64workspace-writeThe error occurred with both PowerShell and
cmd.exe, before the requested command was started. The bundled PowerShell executable itself works when launched manually.Concrete sandbox error
The sandbox log contains:
D:\Projecthas the following relevant ACL state:Ordinary file operations are possible, but the sandbox setup helper cannot modify the directory ACL.
Possible project/workspace-root synchronization bug
I also observed the following behavior:
D:\Projectremained in the sandbox setup payload.Expected behavior
Editing a project's source folders should refresh the sandbox workspace roots, or the UI should clearly state that changes apply only to newly created tasks.
Actual behavior
The existing task retained the old workspace root. Sandbox setup repeatedly attempted to modify its ACL, failed with Win32 error 5, and prevented every local command from starting.
Workaround
Creating a new Codex project with the actual repository folder registered during initial project creation worked correctly.
Confirmed workaround on Windows
I was hitting the same error:
Codex could not start PowerShell, CMD, Git, or any local process.
I checked:
and found:
5=Access Denied.Then I checked the
.gitowner:It was unexpectedly owned by:
instead of my normal Windows account.
Fix
I closed Codex completely, opened PowerShell as Administrator, and ran:
After reopening Codex, local execution worked again immediately:
No reinstall, reclone,
.gitdeletion, or recursive permission reset was needed.So if you are seeing
setup refresh had errors, check whether your.gitdirectory is owned byCodexSandboxOffline. Restoring ownership to the normal Windows user may fix the issue.I’m experiencing the same issue in the ChatGPT/Codex desktop app on Windows.
App version: 26.820.9563.0
Windows build: 10.0.26200.9168
Subscription: ChatGPT Pro
Error:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors
Standalone Windows CMD works normally, but the failure occurs before PowerShell or cmd can start inside Codex.
Troubleshooting already completed:
The error remains unchanged and no files were modified.
Feedback ID:
no-active-thread-01a041e7-0c0f-7852-90e8-f9c5f11dc036
Hola, he dejado la solución en git a ese problema que también me paso
https://github.com/openai/codex/issues/40596#issuecomment-5429209321
El jue, 27 ago 2026, 8:52, yanchao123585-a11y @.***>
escribió:
Thank you very much for sharing this workaround, and thanks to everyone who confirmed the same issue.
This resolved the problem on my system. The repository root was owned by my normal Windows account, but the
.gitdirectory was unexpectedly owned byCodexSandboxOffline.After fully closing Codex, restoring ownership of
.gitto my normal Windows account from an Administrator PowerShell session, and reopening Codex, unified exec started working again.A read-only preflight then confirmed the correct working directory, the expected HEAD, and an empty staged index. No project files were modified during the ownership repair.
This strongly suggests that the failure was caused by an incorrect Windows ownership/ACL state affecting
.git.Thank you again for identifying and sharing the fix.