Codex VS Code extension cannot execute any local shell command on Windows (PowerShell 8009001d / CreateProcessWithLogonW 1056)
Open 💬 3 comments Opened Apr 8, 2026 by fengxiaozi-liu
What version of the IDE extension are you using?
openai.chatgpt-26.325.31654-win32-x64
What subscription do you have?
plus
Which IDE are you using?
vscode
What platform is your computer?
Windows_NT x64 10.0.26200
What issue are you seeing?
The Codex VS Code extension cannot execute any local shell command in my environment.
Symptoms:
- Any command executed by Codex fails before the command actually runs
- Even minimal commands such as
Get-Locationfail - Codex cannot read local files such as
feature.md - Manual PowerShell works normally
- VS Code integrated terminal works normally
Observed errors:
- Internal Windows PowerShell error with code
8009001d - Sometimes
CreateProcessWithLogonW failed: 1056
What I verified:
powershell -NoProfileworks correctly when run manuallySystemRoot,WINDIR, andComSpecare present in my PowerShell environment- VS Code terminal works
code --statusshowspty-host,OpenConsole.exe,powershell.exe, andcodex.exe app-serverare running- Reinstalling VS Code did not fix it
- Reinstalling the extension and deleting the extension directory did not fix it
- The same problem happens in a new Codex conversation
Environment:
- VS Code 1.114.0
- Windows 10.0.26200 x64
- Extension version: openai.chatgpt-26.325.31654-win32-x64
Minimal reproduction:
- Open VS Code
- Open a workspace
- Start a Codex chat
- Ask Codex to run a minimal local command such as
Get-Location - The command fails with the errors above
<img width="859" height="207" alt="Image" src="https://github.com/user-attachments/assets/8f2b82bc-b5de-4c59-ae35-dcab7b7664bf" />
What steps can reproduce the bug?
I can provide code --status output and extension logs if needed.
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗