Codex on VS Code(Windows) fails to start PowerShell for shell_command calls, causing all local shell operations to fail
Open 💬 6 comments Opened Apr 10, 2026 by sedipsek
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the IDE extension are you using?
26.406.31014
What subscription do you have?
ChatGPT Plus
Which IDE are you using?
VS Code
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
On Windows, Codex was able to complete browser-based actions such as a Playwright full-page screenshot, but every shell_command call failed at PowerShell startup.
Symptoms:
shell_commandfails immediately instead of running the requested command.- Simple commands such as
Get-LocationandGet-ChildItemfail. - Even attempts to invoke
cmd /c ...through the shell tool still fail because the failure happens before the actual command runs. - As a result, Codex could not perform basic local file operations such as checking for a file or moving it.
Observed output:
Exit code: -65536
´°€½ Windows PowerShell ... 8009001d ...
### What steps can reproduce the bug?
Uploaded thread: 019d76ea-171d-7a01-9ffa-7c7bb5e9c4d5
- Run Codex in a Windows environment.
- Ask it to perform a browser automation task first, such as taking a full-page screenshot with Playwright.
- Then ask it to perform a local shell-based task, such as checking whether a file exists or moving a file.
- Codex attempts to use
shell_command, but the call fails during PowerShell initialization.
Actual flow that reproduced the issue:
- Asked Codex to take a full-page screenshot of
https://scin.kr/ - Codex successfully created
scin-kr-fullpage.png - Asked Codex to move that file into a target folder
- Codex tried commands such as
Get-Location,Get-ChildItem, andcmd /c ... - All of them failed with the same PowerShell startup error
Minimal repro:
- Ask Codex on Windows to run any simple shell command
- Examples: print current directory, list files, or move a file
- Instead of executing the command, Codex fails at PowerShell startup
What is the expected behavior?
Codex should be able to run shell_command normally on Windows.
For example:
- Basic PowerShell commands like
Get-Locationshould succeed Get-ChildItemshould be able to list files- Local file operations such as copy/move should work
- If PowerShell startup fails, Codex should either fall back to another safe shell strategy or surface a clear, readable error message explaining the root cause
Additional information
- Playwright-based browser automation worked correctly.
- The failure seems specific to
shell_commandexecution, not browser automation. - The error output includes
8009001d, which may suggest a Windows PowerShell / security context / profile initialization problem, but from the user perspective this makes Codex unable to perform any shell-based local task. - Uploaded thread ID:
019d76ea-171d-7a01-9ffa-7c7bb5e9c4d5
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I’m also hitting this issue consistently on Windows, and it is not an isolated failure in one command or one project.
In my case, this breaks normal Codex workflow broadly because shell-based operations fail repeatedly, which makes it difficult or impossible to continue with regular tasks such as file checks, file moves, and other local command execution.
Because of that, this is effectively blocking normal progress rather than being a minor inconvenience.
I’m also hitting this issue consistently on Windows
have anyone find a solution?
um this problem was solved by itself;;;;
I find the same problems in win10 too