Codex Desktop cannot launch direct bash -lc from Windows, but wsl.exe --cd works
What version of the Codex App are you using (From “About Codex” dialog)?
26.506.31421
What subscription do you have?
Pro $200
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What issue are you seeing?
Summary
Codex Desktop on Windows cannot launch direct bash -lc even from a normal Windows cwd, but launching Bash through wsl.exe --cd works.
Correlation id: d59c19ac-741f-4d5f-bcb5-7afaebb3b76d
Reproduction details
From a Codex Desktop Windows shell context:
Set-Location -LiteralPath $env:USERPROFILE
bash -lc 'echo ok'
Actual result
Access is denied.
Error code: Bash/Service/CreateInstance/E_ACCESSDENIED
This also occurs when the active workspace is a WSL UNC path, but changing PowerShell's cwd to $env:USERPROFILE first does not fix it.
Workaround that succeeds
wsl.exe -d Ubuntu --cd /home/ekane/src/github.com/sentrylink/webapp -- bash -lc 'echo ok'
Expected behavior
Direct bash -lc should work the same way it does in an interactive PowerShell session, or Codex should clearly document/surface that direct bash.exe launch is blocked and recommend the wsl.exe --cd ... -- bash -lc ... pattern.
Impact
For WSL checkouts, this makes shell-feature commands harder and increases quoting issues because commands must be routed through PowerShell -> wsl.exe -> Bash.