AttachConsole failed when closing built-in terminal on Windows

Open 💬 1 comment Opened Jun 1, 2026 by rapidtargett-ux

What version of the Codex App are you using (From “About Codex” dialog)?

26.527.7698.0 x64

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows x64

What issue are you seeing?

Windows Codex Desktop 26.527.7698.0 x64

Bug:
When I close or exit the built-in bottom terminal in Codex Desktop, the app shows:

"A JavaScript error occurred in the main process"
Uncaught Exception:
Error: AttachConsole failed

Steps to reproduce:

  1. Open Codex Desktop on Windows.
  2. Open the built-in bottom terminal.
  3. Close the terminal tab or run "exit" inside PowerShell.
  4. Error dialog appears.

Expected:
The terminal closes without crashing or showing an Electron main process error.

Actual:
Codex shows a JavaScript error dialog with "AttachConsole failed".

Environment:
Windows
PowerShell
Codex Desktop 26.527.7698.0 x64

What steps can reproduce the bug?

  1. Open Codex Desktop on Windows.
  2. Open the built-in bottom terminal.
  3. Close the terminal tab.

The same issue also happens if I run "exit" inside the built-in PowerShell terminal.

What is the expected behavior?

The built-in terminal should close normally without showing an error dialog.

Additional information

The error dialog says:

A JavaScript error occurred in the main process

Uncaught Exception:
Error: AttachConsole failed

This happens consistently when closing or exiting the built-in bottom terminal.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗