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] Every shell command spawns a visible console window #50892
CLIIssues related to the Codex CLIbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Every command executed via Codex on Windows spawns a visible powershell.exe console window that appears during execution and disappears on completion. A task running N commands flashes N windows.
Process trace (100ms sampling):
23:18:56.717 powershell.exe (C:\Windows\System32...)
23:18:56.854 conhost.exe
23:18:56.868 OpenConsole.exe
...repeats per exec_command
Root cause analysis:
- codex.exe binary contains zero instances of `CREATE_NO_WINDOW`
- The only `windowsHide:true` in the codebase is for a Node-side curl call
- No `[shell]` / `[terminal]` config keys exist
- No persistent shell — every command spawns a new powershell
Expected: shell subprocesses should be spawned with `CREATE_NO_WINDOW` (or equivalent) so no console window appears.
Environment:
- Windows 11
- codex-cli 0.157.1
- Default terminal: Windows Terminal 1.24
[issue-codex-windows-console-flash.md](https://github.com/user-attachments/files/33028377/issue-codex-windows-console-flash.md)
changed the title [-][Windows] Every shell command spawns a visible console window[/-][+][Windows] Every shell command spawns a visible console window (中文见下)[/+]on Oct 4, 2026
changed the title [-][Windows] Every shell command spawns a visible console window (中文见下)[/-][+][Windows] Every shell command spawns a visible console window [/+]on Oct 4, 2026
CLIIssues related to the Codex CLIbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Oct 4, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
[-][Windows] Every shell command spawns a visible console window[/-][+][Windows] Every shell command spawns a visible console window (中文见下)[/+][-][Windows] Every shell command spawns a visible console window (中文见下)[/-][+][Windows] Every shell command spawns a visible console window [/+]