Skip to content

Codex desktop on Windows cannot start PowerShell host in session (8009001d) #13917

@TaylorAdamCA

Description

@TaylorAdamCA

What version of the Codex App are you using (From “About Codex” dialog)?

26.305.950.0

What subscription do you have?

Go, Planning to go Pro if I can get it to work

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Summary

Codex desktop is unable to run any shell command on Windows because its managed PowerShell host fails during initialization.

This blocks all repo access and file operations from the assistant, even for trivial commands like Get-Location.

Environment

  • OS: Windows
  • App: Codex desktop
  • Shell configured in session: PowerShell
  • Workspace: local repo on Windows filesystem

What I Expected

Codex should be able to start the shell host and run normal commands in the workspace, for example:

Get-Location
Get-ChildItem -Force
git status --short

What Actually Happened

`Every command fails before execution with the same PowerShell host startup error.

Observed errors:

Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 8009001d.

Also saw once during earlier attempts:

CreateProcessWithLogonW failed: 1056

Impact

This makes the coding agent unusable for local development tasks because it cannot:

  • inspect files
  • search the repo
  • edit code
  • run tests
  • run git commands

Result

The command does not run. The shell host fails immediately with:

Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 8009001d.

Troubleshooting Already Tried

  • Restarted Codex
  • Restarted the session/thread
  • Granted full access
  • Rebooted Windows
  • Installed Windows updates
  • Ran sfc /scannow with no issues found
  • Reinstalled the Codex desktop app

Additional Notes

PowerShell itself appears to work normally outside Codex. Running this manually succeeds:

powershell -NoProfile -Command "Write-Output ok"

That suggests the problem is specific to the Codex desktop shell host / PowerShell integration rather than Windows PowerShell itself.

Request

Please investigate the Windows PowerShell host initialization path in Codex desktop, specifically around the managed host startup and any crypto/profile-related dependency that could trigger error 8009001d.

What steps can reproduce the bug?

Steps To Reproduce

  1. Open Codex desktop on Windows.
  2. Open any local workspace.
  3. Start a new chat/session.
  4. Ask the agent to run any simple shell command in the workspace, examples:
Get-Location
Get-ChildItem -Force
git status --short

What is the expected behavior?

What I Expected

Codex should be able to start the shell host and run normal commands in the workspace, for example:

Get-Location
Get-ChildItem -Force
git status --short

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions