Error: AttachConsole failed

Resolved 💬 2 comments Opened May 30, 2026 by jfuentesa Closed Jun 2, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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 ↗

2 Comments

github-actions[bot] contributor · 2 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #25272
  • #25175

Powered by Codex Action

jfuentesa · 2 months ago

The version 26.601.20914 (Released 2 jun 2026) fixes the problem.