Codex on Windows under pwsh should not load profile when run shell as a tool call

Resolved 💬 3 comments Opened Nov 6, 2025 by doggy8088 Closed Nov 11, 2025

What feature would you like to see?

When run shell command in Windows should add -NoProfile to the pwsh.exe command execution.

<img width="1393" height="265" alt="Image" src="https://github.com/user-attachments/assets/469c054d-a3b8-4faa-8a9a-9f716282ef9f" />

Additional information

The PowerShell script run by Codex CLI should not be affected by the default profile. The default pwsh profile should not be loaded it because it might contains many unrelated to Codex run.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗