AttachConsole failed when closing built-in terminal on Windows
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:
- Open Codex Desktop on Windows.
- Open the built-in bottom terminal.
- Close the terminal tab or run "exit" inside PowerShell.
- 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?
- Open Codex Desktop on Windows.
- Open the built-in bottom terminal.
- 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.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗