Skip to content

blank windows terminal window #48076

Closed
Closed

Description

@Mostafa-shaban-mohamed

What version of Codex CLI is running?

0.157.0

What subscription do you have?

Plus

Which model were you using?

gpt-6 sol

What platform is your computer?

windows

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

codex code

Codex doctor report

What issue are you seeing?

After updating Codex on September 25, 2026, a blank Windows Terminal window for codex-code-mode-host.exe repeatedly opens and closes while I use Codex. This did not happen before the update. The window title points to the app-server-daemon release 0.157.0. Screenshot attached.

What steps can reproduce the bug?

Uploaded thread: 01a0d865-0397-71b3-ae31-6bb56f96e809

What is the expected behavior?

Image

Additional information

No response

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added
    app
    windows-os
    app-server
    on Sep 25, 2026
  3. Ruijunzhang commented on Sep 25, 2026

    @Ruijunzhang

    same issue here, if start code with

    codex --no-daemon

    The issue disappreas.

  4. kiroeko commented on Sep 25, 2026

    @kiroeko

    Yes, same

  5. znowfox commented on Sep 25, 2026

    @znowfox

    vibe coding noobs

  6. Mostafa-shaban-mohamed commented on Sep 25, 2026

    @Mostafa-shaban-mohamed
    Author

    vibe coding noobs

    I would love to know the solution for this issue if you know

  7. MistahK24 commented on Sep 25, 2026

    @MistahK24

    Adding another reproduction on Codex CLI 0.157.0 (global npm install), with managed app-server 0.157.0 on native Windows x64 and Windows Terminal 1.24.11911.0.

    Symptoms:

    • Two extra terminal tabs/windows appear immediately after launching Codex, before sending a message, and remain after exiting the CLI.
    • One observed tab title points to %USERPROFILE%\.codex\packages\app-server-daemon\releases\0.157.0-x86_64-pc-windows-msvc\bin\codex-code-mode-host.exe.

    Process inspection showed the managed codex.exe app-server --listen unix:// --managed-daemon owning node_repl.exe, the browser-control node.exe ... cua-repl.mjs, and codex-code-mode-host.exe. Each of these had a non-headless conhost.exe child; Windows Terminal OpenConsole.exe -Embedding processes appeared at corresponding times. These are observations, not a source-level diagnosis.

    Controlled startup comparison on the same installation/configuration:

    1. Starting a fresh interactive CLI with --disable daemon_auto_start while the daemon was already running still attached to that daemon and produced two new helper consoles. Disabling auto-start alone did not bypass the existing daemon.
    2. Starting with codex --no-daemon --no-alt-screen launched the browser Node and node_repl helpers under the CLI process, with zero separate helper conhost processes. Exiting this test session terminated its helpers cleanly.
    3. Repeated startup after configuring the local launcher to pass --no-daemon again produced zero separate helper consoles.

    This verifies the no-daemon workaround for startup on this machine. We did not exhaustively test all subsequent tool execution paths or identify the introducing commit. The code-mode-host console was observed in the affected session; its full tool execution path was not separately exercised in the no-daemon startup control.

    Related report with daemon-side process creation analysis: #44768.

  8. ry4nyu commented on Sep 25, 2026

    @ry4nyu

    Additional reproduction on Windows:

    • Codex CLI: 0.157.0
    • OS: Windows 11
    • Affected path: the new unified_exec executor
    • Reproduction: when powershell.exe or cmd.exe is launched by unified_exec, Windows briefly creates a black conhost.exe console window.
    • This happens even when using the same PowerShell/terminal configuration that worked with the old executor.
    • Disabling unified_exec restores the old executor behavior and the flashing console window no longer appears.

    This does not appear to be a PowerShell, Zed, or Windows Terminal configuration issue. The subprocesses launched by unified_exec seem to lack the correct hidden-window creation flags. The current workaround is to disable unified_exec.

  9. MaxSteins36 commented on Sep 26, 2026

    @MaxSteins36

    Opening Codex, sending any prompt, any tool call it uses or command run opens like 10 shells for a second then closes. Sometimes a few of them linger though. One prompt left like 4 shells open and throughout the turn flicker opened hundreds of shells.

  10. Re-Lyz commented on Sep 26, 2026

    @Re-Lyz

    me too, after updating v0.157.0 to v0.157.1 today, ready to back to 0.157.0 see if the problem can be solved

  11. Re-Lyz commented on Sep 26, 2026

    @Re-Lyz

    me too, after updating v0.157.0 to v0.157.1 today, ready to back to 0.157.0 see if the problem can be solved

    v0.156.1

  12. xCatG commented on Sep 28, 2026

    @xCatG

    I ran into the same issue, on 0.157.0 and still happening in 0.158.0

    a video of the windows terminals... https://youtu.be/kAvP1GPkVJY 😭

  13. HayashiNiizuki commented on Sep 28, 2026

    @HayashiNiizuki

    same issue
    codex cli version: codex-cli 0.157.1
    os: windows 11
    terminal: powershell 7

  14. fabiopedrosa commented on Sep 29, 2026

    @fabiopedrosa

    same issue, hundreds of these

  15. Amaurgit commented on Oct 1, 2026

    @Amaurgit

    Same with all versions since 0.157, the last good one was 0.156.1. Updated to 0.159.++ and still the same.

  16. IkhlasJihad commented on Oct 1, 2026

    @IkhlasJihad

    Also reproducing this on Windows 11 with the 0.158.0 runtime, the latest version. I recorded blank terminal windows repeatedly appearing and closing while the agent executed background shell commands.

    Environment

    • OS: Windows 11 Pro 25H2, build 26200.9550, x64.
    • Installed desktop app package: OpenAI.Codex, version 26.928.3736.0 (collected when preparing this report).
    • Runtime used in the incident log: 0.158.0, under app-server-daemon/releases/0.158.0-x86_64-pc-windows-msvc. Running that executable with --version reports codex-cli 0.158.0.
    • Shell: Windows PowerShell 5.1.26100.9549.
    • Reproduction tool settings: default sandbox (sandbox_permissions: "use_default"), tty: false. No interactive terminal or visible window was explicitly requested.

    Minimal reproduction

    Send the agent this prompt:

    Run Get-Location five times sequentially using separate shell tool calls. Use the default sandbox, don’t request interactive terminals, and don’t modify any files. Report how long each call takes.

    Observed behavior and evidence

    • Blank terminal windows appear and close during command execution; captured in my screen recording.
    • Commands complete successfully. The attached excerpt contains 15 Get-Location launches and 15 SUCCESS entries from 2026-10-01 13:44:16.829 to 13:46:54.855.
    • The excerpt also includes two earlier helper-resolution entries showing the 0.158.0 runtime being selected for the sandbox.
    • Expected: these background commands should execute without opening visible terminal windows.

    This reproduces with a simple read-only PowerShell command, without project-specific tooling. I have not verified which process owns the flashing windows, or tested the --no-daemon / executor workarounds mentioned above, so I am reporting the symptom and correlated logs rather than claiming a root cause.

    Attachments

  17. xCatG commented on Oct 7, 2026

    @xCatG

    Updated to 0.160.1 via codex app-server daemon update --from-cli seems to have resolved the problem for me

  18. goodman-oai commented on Nov 16, 2026

    @goodman-oai
    Contributor

    The window in the original report was titled codex-code-mode-host.exe. #48138 starts that helper with CREATE_NO_WINDOW on Windows. An affected user also reported that the flashing stopped after updating the managed daemon to 0.160.1.

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

    appapp-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions