Error: AttachConsole failed

Resolved 💬 2 comments Opened May 30, 2026 by jfuentesa Closed Jun 2, 2026

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

26.527.31326

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64 (Windows 10)

What issue are you seeing?

An error shows as a pop-up when running an action from the environment:

<img width="703" height="416" alt="Image" src="https://github.com/user-attachments/assets/9e7e3a70-79a4-4c6c-8376-ac428b152e8d" />

The BAT script runs well without errors.

What steps can reproduce the bug?

  1. Create a new task in the environment.
  2. Execute the task.

Example file in .codex\environments\environment.toml:

# THIS IS AUTOGENERATED. DO NOT EDIT MANUALLY
version = 1
name = "My PHP Project"

[setup]
script = ""

[[actions]]
name = "deploy"
icon = "run"
command = "./deploy_web.bat"

What is the expected behavior?

Execute without errors.

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗