Skip to content

Shell Commands not working #14796

Closed
Closed

Description

@Haemi87

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

26.311.21342

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

Inside the Codex desktop app, every shell_command invocation fails immediately with exit code 1, even for trivial PowerShell commands.

What steps can reproduce the bug?

  1. Open Codex desktop app on Windows.
  2. Start a session in a local workspace.
  3. Run any trivial shell command through the agent, for example:
    • Write-Output 'ok'
    • pwd
    • Get-Location
  4. Observe that the command fails immediately with exit code 1.
  5. No stdout or stderr is returned.

What is the expected behavior?

Simple PowerShell commands should run successfully and return normal output.

Additional information

Environment at time of failure:

  • Shell: PowerShell
  • PowerShell version shown in terminal: 7.5.5
  • Workspace path is inside OneDrive:
    C:\Users\<user>\OneDrive - ...\Desktop\...\ihpAppEditor

The issue also reproduces when using:

  • login: false
  • explicit powershell -NoProfile -NonInteractive -Command ...
  • file redirection / Out-File
  • Get-Content after writing files

Activity

  1. added
    app
    on Mar 16, 2026
  2. added
    bug
    windows-os
    tool-calls
    on Mar 16, 2026
  3. github-actions commented on Mar 16, 2026

    @github-actions
    Contributor
  4. removed
    app
    on Mar 16, 2026
  5. Haemi87 commented on Mar 19, 2026

    @Haemi87
    Author

    Found the cause. I used PowerShell 7.5 from the Store. After deinstalling it, it used the default 5.1 version and it works now.

  6. ivanjx commented on Mar 19, 2026

    @ivanjx

    codex should still support newer powershell

  7. Haemi87 commented on Mar 19, 2026

    @Haemi87
    Author

    Yes it should. But it didn't. I've also updated to PowerShell 7.6 RC1. Same issues. I could reopen it with a new title: "Shell commands not working with PowerShell versions from store (>=7.5)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions