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_

View original on GitHub ↗

13 Comments

jmirving · 9 months ago

I am not sure if this is the same issue, but I am getting the same message when either:

  1. Attempting to start 2 tasks in codex one after the other - generally in unrelated parts of code, or one is a code and one is an ask
  2. Asking a follow up code question in an existing code modification, ie, fine tuning an MR
x011 · 9 months ago

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.

eth62 · 9 months ago

Same for me, fresh repo -> Setting up environment (STUCK)

cottom · 8 months ago

same

ddr-oai contributor · 6 months ago

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!

Aman-Badhan · 5 months ago

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" />

chris15davis15 · 5 months ago

m\\\\

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 alt="Image" width="2000" height="305" src="https://private-user-images.githubusercontent.com/226297765/540433396-b281fa7c-e673-4b2b-b533-d732e83f6176.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzA5MTA5ODEsIm5iZiI6MTc3MDkxMDY4MSwicGF0aCI6Ii8yMjYyOTc3NjUvNTQwNDMzMzk2LWIyODFmYTdjLWU2NzMtNGIyYi1iNTMzLWQ3MzJlODNmNjE3Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDIxMlQxNTM4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNDBhMzYwOWJkMGY5OThmYTMwZWJmODg3ODNjZDJhM2QzNmQwNzEzYzMwNTFmOTY1NTQxNTgyODhlMTUzNjczJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.YL3kgjxrC6zNWAM7H3sAecW2SoQkKEeZjHH6OozuPvc">

I am having this issue right now as well. Would love to know if any fixes are found.

samverrall · 4 months ago

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

Codex Review: Something went wrong. Try again later by commenting “https://github.com/codex review”.

Unknown error

I then tried to remention codex with "review" - but the same ocurred, hanging on env indefinitely. @ddr-oai

haddockdaniel · 4 months ago

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.

YimingZhao-art · 4 months ago

It's still there

kylealwyn · 4 months ago

@ddr-oai seem to be hitting this as well - task_e_69b1e82ba3b083268b16a64c6af41a86 and task_e_69b1e61f4b9083268f12c4510b1e6772 both stuck

hypackel · 2 months ago

Still having this issue

vera · 17 days ago

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