Skip to content

Windows CLI regression in 0.156.x/0.157.0: startup and command execution open multiple terminal windows #48070

Closed as duplicate

Description

@Citaborg

Summary

On Windows, Codex CLI 0.156.x and 0.157.0 open many separate terminal windows during startup and when running commands. These windows appear in front of the working terminal and interrupt normal use. Downgrading the npm-installed CLI to 0.155.0 resolves the behavior on the same machine.

Versions tested

  • codex-cli 0.157.0: reproduces.
  • codex-cli 0.156.x: reproduces (exact patch version not recorded).
  • codex-cli 0.155.0: does not reproduce.

Steps to reproduce

  1. On Windows, install the CLI globally with npm (npm install -g @openai/codex@0.157.0).
  2. Close/terminate existing Codex processes and start codex in the terminal.
  3. Observe multiple separate terminal windows opening at startup. Command execution also opens separate windows.
  4. Downgrade with npm install -g @openai/codex@0.155.0 and start Codex again: the extra windows stop appearing.

Expected behavior

Codex starts and runs its commands without spawning visible separate terminal windows or stealing focus.

Additional context

The behavior persisted after terminating Codex processes and starting a new session on 0.156.x/0.157.0. The specific child executable shown in the extra windows and the exact Windows build/terminal host have not yet been captured. This may be related to #44856, but that report describes the symptom in a second concurrent session, whereas here it occurs on startup after restarting Codex. Also possibly related to #37599 if the spawned executable is codex-code-mode-host.exe; this has not been confirmed.

Activity

  1. added
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    windows-osIssues related to Codex on Windows systems
    on Sep 25, 2026
  2. hi-fox commented on Sep 25, 2026

    @hi-fox

    Mine fails to even start now they added this daemon:

    Error: host Job Object prevents daemon detachment; start from a host that allows breakaway
    To work without the background server, rerun the same command with --no-daemon (including resume or fork and its arguments).

  3. etraut-openai commented on Sep 29, 2026

    @etraut-openai
    Contributor

    We're using #48074 to track this.

  4. Prefee commented on Oct 1, 2026

    @Prefee

    0.159.3 pop out Terminal windows in windows 11, I am go back to 0.155.0 and restart my laptop, it is OK.

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

    CLIIssues related to the Codex CLIbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions