I describe the problem and codex runs in circles basically:
codex> I see the problem clearly. Let me create a plan so that I can implement it. The plan is X, Y, Z. Do you want me to implement this?
me> Yes please, looks good. Go ahead!
codex> Okay. Thank you for confirming. So I am going to implement X, Y, Z now. Shall I proceeed?
me> Yes, proceed.
codex> Okay. Implementing.
...codex is working... you see the internal monologue running in circles
codex> Here is what I am going to implement: X, Y, Z
me> Yes, you said that already. Go ahead!
codex> Working on it.
...codex in doing something...
codex> After examining the problem more, indeed, the steps should be X, Y, Z. Do you want me to implement them?
etc.
Very much every sessions ends up being like this. I was unable to get any useful code apart from boilerplate JS from it since 5.4
So instead I just use ChatGPT to create a plan and then ask Opus to code, but it's a hit and miss. Almost every time the prompt seems to be routed to cheaper model that is very dumb (but says Opus 4.6 when asked). I have to start new session many times until I get a good model.