You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows exec_command: requesting Windows PowerShell 5.1 runs PowerShell 7.6.6 #56169
appIssues related to the Codex desktop appbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
In a local Windows desktop Codex task, an exec_command invocation set the shell field to the Windows PowerShell 5.1 executable. A harmless read-only identity diagnostic inside that invocation reported PowerShell 7.6.6 instead. The invocation returned terminal exit code 0.
This is one observed request/effective-shell mismatch, not a claim that every Windows invocation behaves this way.
What steps can reproduce the bug?
Through the exposed exec_command tool, select the Windows PowerShell 5.1 executable using shell, with login: false.
Run a read-only identity diagnostic containing $PSVersionTable.PSVersion.ToString().
Observed version in this instance: 7.6.6, rather than 5.1.
What is the expected behavior?
Honor the requested shell, or explicitly reject an unsupported shell selection rather than silently use a different runtime.
Additional information
A separate earlier invocation returned only a generic CreateProcess rejection containing blocked by policy, without a specific rule or reason. I have not established that this rejection and the shell mismatch share a cause.
Please clarify the supported shell-selection contract on Windows and the supported diagnostic route for the generic rejection. This is not a request to bypass or disable safeguards.
This minimal report intentionally contains no project source, filesystem paths, session identifiers or logs. The desktop app version was not captured for this report.
appIssues related to the Codex desktop appbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Oct 22, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action