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
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
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.
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:
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.
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.
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.
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.
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.
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.
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.
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 25, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Ruijunzhang commentedon Sep 25, 2026
same issue here, if start code with
codex --no-daemonThe issue disappreas.
kiroeko commentedon Sep 25, 2026
Yes, same
znowfox commentedon Sep 25, 2026
vibe coding noobs
Mostafa-shaban-mohamed commentedon Sep 25, 2026
I would love to know the solution for this issue if you know
MistahK24 commentedon Sep 25, 2026
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:
%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-daemonowningnode_repl.exe, the browser-controlnode.exe ... cua-repl.mjs, andcodex-code-mode-host.exe. Each of these had a non-headlessconhost.exechild; Windows TerminalOpenConsole.exe -Embeddingprocesses appeared at corresponding times. These are observations, not a source-level diagnosis.Controlled startup comparison on the same installation/configuration:
--disable daemon_auto_startwhile 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.codex --no-daemon --no-alt-screenlaunched 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.--no-daemonagain 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.
ry4nyu commentedon Sep 25, 2026
Additional reproduction on Windows:
unified_execexecutorpowershell.exeorcmd.exeis launched byunified_exec, Windows briefly creates a blackconhost.execonsole window.unified_execrestores 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_execseem to lack the correct hidden-window creation flags. The current workaround is to disableunified_exec.MaxSteins36 commentedon Sep 26, 2026
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.
Re-Lyz commentedon Sep 26, 2026
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
Re-Lyz commentedon Sep 26, 2026
v0.156.1
xCatG commentedon Sep 28, 2026
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 😭
HayashiNiizuki commentedon Sep 28, 2026
same issue
codex cli version: codex-cli 0.157.1
os: windows 11
terminal: powershell 7
fabiopedrosa commentedon Sep 29, 2026
same issue, hundreds of these
Amaurgit commentedon Oct 1, 2026
Same with all versions since 0.157, the last good one was 0.156.1. Updated to 0.159.++ and still the same.
IkhlasJihad commentedon Oct 1, 2026
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
OpenAI.Codex, version 26.928.3736.0 (collected when preparing this report).app-server-daemon/releases/0.158.0-x86_64-pc-windows-msvc. Running that executable with--versionreportscodex-cli 0.158.0.sandbox_permissions: "use_default"),tty: false. No interactive terminal or visible window was explicitly requested.Minimal reproduction
Send the agent this prompt:
Observed behavior and evidence
Get-Locationlaunches and 15SUCCESSentries from 2026-10-01 13:44:16.829 to 13:46:54.855.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
codex-48076-sandbox-excerpt-2026-10-01.txt(sanitized; unrelated commands and personal profile path omitted codex-48076-sandbox-excerpt-2026-10-01.txtCodex.blank.terminal.issue.mp4
xCatG commentedon Oct 7, 2026
Updated to 0.160.1 via
codex app-server daemon update --from-cliseems to have resolved the problem for megoodman-oai commentedon Nov 16, 2026
The window in the original report was titled
codex-code-mode-host.exe. #48138 starts that helper withCREATE_NO_WINDOWon Windows. An affected user also reported that the flashing stopped after updating the managed daemon to 0.160.1.