Hi,
recently I’ve noticed Codex is behaving very strangely (in VSCode) - first it does everything as expected, but after a few prompts, it begins to malfunction and either write gibberish or not update files at all (says “I’ve change these files” while it hadn’t).
I hope I am at the right place writing this. If not, kindly point me to the right place where I should bring up this issue.
Thank you in advance.
Hi @lubacareer,
Welcome to the community!
Did you try clearing the chat (context) and testing again in a new chat to see how it works?
Hi, thank you. Yes, I did. I started a new chat and still experienced those difficulties.
Update - 16/09/25 - Now it says:
“exceeded retry limit, last status: 401 Unauthorized“, even though I tried setting my API key, just in case.
Update - Apparently changing the API key in auth.json in .codex helped, but it still says I have no access to a newer model - gpt5-codex. I’d like to know how do I get access to it? Is there a plan?
Thank you!
According to a post I’ve seen by the user moogman (I cannot send links here for some reason), this is a fix for the unauthorized error:
-
Shut down vscode/cursor
-
mv ~/.codex/auth.json ~/.codex/auth.json.bak
-
Start vscode/cursor back up, and log back in (Select login with ChatGPT, not with API).
Until the next bug!