sudo exists on Windows starting W11 24H2

Resolved 💬 3 comments Opened Jan 26, 2026 by nos1609 Closed Jan 26, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.88.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Windows 11 25H2 ARM64

What terminal emulator and version are you using (if applicable)?

VSCode + PowerShell

What issue are you seeing?

Codex is self-assured that no sudo could exist on Windows despite official MS docs states otherwise.

What steps can reproduce the bug?

Ask to use sudo as elevation in PowerShell

What is the expected behavior?

run sudo in PowerShell

Additional information

https://learn.microsoft.com/en-us/windows/advanced-settings/sudo/
https://devblogs.microsoft.com/commandline/introducing-sudo-for-windows/

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 7 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #9538

Powered by Codex Action

nos1609 · 7 months ago

By the way, even pointing to the “stubbornness” issue suits as workaround, and restores the expected tool usage.
Hope the links to the docs in the current issue would be more helpful to overcome this till the model gets trained against MS docs.

etraut-openai contributor · 7 months ago

Thanks for the analysis. This is a model behavior issue, not something that we can address directly in the Codex harness. We'll report the issue to our colleagues who are responsible for training our next-generation models.

In the interim, you may be able to steer the model with custom prompting if you have a strong need for elevated tool execution.