Codex VS Code extension stuck on infinite loading after frozen chat session

Hello. I have a problem with the Codex extension in VS Code. Everything worked normally before, but one day the Codex chat window froze completely. I could still highlight messages, but I could not type anything or interact with the chat. I restarted VS Code, and after that Codex never loaded again. Now the Codex sidebar only shows an infinite loading spinner and nothing appears at all. I completely cleared all caches, deleted all VS Code folders from AppData, removed all OpenAI-related files, logged out from OpenAI everywhere, cleared cookies and site data, reinstalled VS Code from scratch, reinstalled the Codex extension, restarted my computer, and even tried running VS Code with the --disable-gpu option. Nothing helped. Codex still does not load and stays stuck on the spinner every time. Please help me with any solution.

I have been having the same issue for all updates. I was able to install a much older version 0.4.15 however, which is not Ideal but better than the infinite spinner. Did you manage to resolve this?

ya igot the same pattren and issue

Hi everyone! This fix helped me to solve the problem! Bug report: Codex VS Code extension stuck on loading, never shows login screen - #26 by ai-user2

I had the same issue on Ubuntu.
Problem was with the permissions of the ~/.codex/ folder, specifically, the config file was owned by root for some reason after a reboot.
Running sudo chown -R myuser:myuser ~/.codex solved the issue.

If you are trying to run Codex on Windows, check de Codex dependencies like Python3 and Microsoft Visual C++

You can use install both dependencies using winget