Skip to content

[Windows] Every shell command spawns a visible console window  #50892

Open

Description

@wanggang5828

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)

Activity

  1. added
    bug
    CLI
    windows-os
    tool-calls
    on Oct 4, 2026
  2. 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
  3. 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
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

    CLIbugtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions