Codex for Windows: recurring visible PowerShell windows, including after closing the app

Subject: Codex for Windows: recurring visible PowerShell windows, including after closing the app

While using Codex for Windows, and even after closing the app window, PowerShell windows repeatedly appear and disappear shortly afterward. At one point, two windows appeared simultaneously.

I restarted the PC and closed the Codex/ChatGPT windows and related processes, but the behavior continued.

The Windows PowerShell log shows that this internal process-monitoring command is repeatedly launched:

powershell.exe -NoProfile -NonInteractive -Command
Get-CimInstance Win32_PerfFormattedData_PerfProc_Process
Get-CimInstance Win32_Process

During an earlier process-tree check, the parent process of powershell.exe was codex.exe. This suggests that Codex’s internal process monitor is launching visible console windows and may leave background processes running after the UI is closed.

Expected behavior: internal PowerShell commands should run without visible console windows, and all Codex-related background processes should stop when Codex is closed.

Welcome to the forum!

You are welcome to discuss Codex issues on the forum, however the official place to report and track them is the GitHub issue tracker for OpenAI Codex.

I had ChatGPT look for the closest related issue and it identified:

If that issue matches your problem, consider adding a :+1: reaction on the GitHub issue page itself, not just on the forum topic, as reactions on GitHub help the developers gauge impact and prioritize work.

If it is not the same issue, try searching the existing GitHub issues for a closer match. If you cannot find one, then open a new issue with as much detail as possible.

Hi @Jozso72,

Sorry for the delayed response.

If you're still experiencing the recurring PowerShell windows, could you please try the following troubleshooting steps?

  1. Update the app: Open the Microsoft Store and check for updates to the ChatGPT/Codex Windows app. Please note that similar behavior has also been reported on newer versions, so updating may not fully resolve the issue.
  2. Fully quit the app: Press Ctrl + Q to quit the app completely instead of simply closing its window. Then open Windows Task Manager and check whether any ChatGPT.exe, Codex.exe, or codex.exe processes are still running. If any remain, end those processes and check whether the PowerShell windows stop appearing.
  3. Try an alternative: If the issue continues, you can temporarily use Codex CLI through Windows Subsystem for Linux (WSL2), if available, while keeping the desktop app fully closed.

Please let me know whether these steps help or if the issue persists.

-Aish