You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enabling unified_exec in config.toml causes all shell commands to fail (exit code -1073741502) #7466
After I enable unified_exec in my Codex config, all shell commands triggered from Codex stop working.
I added this to %USERPROFILE%.codex\config.toml:
[features]
unified_exec = true
After that, any command Codex tries to run via the integrated shell fails immediately with exit code -1073741502 (Windows error 0xC0000142 – process initialization failed), with no stdout/stderr output at all.
This happens regardless of the actual command:
pwsh -NoLogo -Command "node -v"
Before enabling unified_exec, the same commands executed via Codex worked normally.
From a normal PowerShell window on the same machine, these commands work fine, so it’s not an OS or Node/curl issue; it only breaks when Codex is using unified_exec.
So effectively, enabling unified_exec = true makes Codex’s command execution backend unusable on my Windows machine.
If needed, I can provide the relevant excerpts from codex-tui.log, but currently the UI just shows something like “Process exited with code -1073741502” and empty output.
What steps can reproduce the bug?
On Windows, create or edit %USERPROFILE%.codex\config.toml and add:
[features]
unified_exec = true
In a project, ask the assistant to run a simple command, e.g.:
pwsh -NoLogo -Command "Get-Location"
or pwsh -NoLogo -Command "node -v"
The command exits with code -1073741502.
No stdout/stderr is shown, even for very simple commands
What is the expected behavior?
No response
Additional information
When an error occurs, codex-tui.log does not have new logs
Activity
448523760 commentedon Dec 2, 2025
After reproducing the issue locally, I believe the problem is caused by the default deserialization of the ExecCommandArgs struct.
The
shellfield uses a hard-coded default:This causes Codex to execute the LLM-generated commands using bash on Windows.
fix(unified_exec): use platform default shell when unified_exec shell…
fix(unified_exec): use platform default shell when unified_exec shell… (
fix(unified_exec): use platform default shell when unified_exec shell… (
fix(unified_exec): use platform default shell when unified_exec shell… (