Environment setup hanging indefinitely
Resolved 💬 13 comments Opened Sep 19, 2025 by k-thornton Closed Jan 9, 2026
💡 Likely answer: A maintainer (ddr-oai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
current online version
Which model were you using?
5.1 codex
What platform is your computer?
Mac (not applicable)
What steps can reproduce the bug?
I have an open session on the web version of codex that has been stuck at "Setting up environment" for an entire week now.
I got into this state by attempting to stop the task exactly as it was starting. Clearly this caused some bad state which I'm still stuck in. Link to my session:
https://chatgpt.com/codex/tasks/task_b_68c9b63cc89c832fb564473d6373c1c7
What is the expected behavior?
I'd have expected the environment setup to abort and the agent would return to neutral state.
What do you see instead?
_No response_
Additional information
_No response_
13 Comments
I am not sure if this is the same issue, but I am getting the same message when either:
I'm still having the same problem. Any updates on this? I tried deleting the environment and creating a new one, but the issue persists.
Same for me, fresh repo -> Setting up environment (STUCK)
same
We have investigated the task launch process and made some changes that should theoretically catch these going forward. Please re-open this if you get new borked tasks and we'll investigate!
I just had this. Created a PR and OpenAI to automatically review but when it spawned the instance in web, it's just hanging here
<img width="2476" height="305" alt="Image" src="https://github.com/user-attachments/assets/b281fa7c-e673-4b2b-b533-d732e83f6176" />
m\\\\
I am having this issue right now as well. Would love to know if any fixes are found.
I'm also having this issue. Seems to hang on env setup, if cancelling and re-mentioning codex - it will comment on your PR with
I then tried to remention codex with "review" - but the same ocurred, hanging on env indefinitely. @ddr-oai
I found a workaround that works for me (I am using ChatGPT codex). If you up the simultaneous versions to 2...it works every time for some reason BUT it takes away from your usage. Sounds kind of like a money grab to me because it ALWAYS works when i use more than 1 to do it but i never get credited when it takes up my credits with this garbage second version which i dont want or need.
It's still there
@ddr-oai seem to be hitting this as well -
task_e_69b1e82ba3b083268b16a64c6af41a86andtask_e_69b1e61f4b9083268f12c4510b1e6772both stuckStill having this issue
I also have this issue with code reviews requested via GitHub. The resulting code review execution that I can see in Codex Cloud hangs with an empty "Environment setup" as in the screenshot above