Codex app and CLI not working after update

I updated to the latest and now neither the desktop app or cli wil work. i just get this error message:

 {
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_function_parameters",
    "message": "Invalid schema for function '\_search_content': schema must have type 'object' and not have
'oneOf'/'anyOf'/'allOf'/'enum'/'not' at the top level.",
    "param": "tools\[16\].tools\[0\].parameters"
  },
  "status": 400
}

Any help please.

Which model are you using?

Have you tried another?

You are welcome to discuss Codex issues on the forum, however the official place to report and track them is the GitHub issue tracker for OpenAI Codex.

I did a quick manual search of Codex Issues for invalid_function_parameters and this was found

The follow up in that issue by other users have some suggestions that might be of value.

If that issue matches your problem, consider adding a :+1: reaction on the GitHub issue page itself, not just on the forum topic, as reactions on GitHub help the developers gauge impact and prioritize work.

If it is not the same issue, try searching the existing GitHub issues for a closer match. If you cannot find one, then open a new issue with as much detail as possible.


Take some time to explore the GitHub OpenAI Codex repository. It is one of the best and most up-to-date sources of information about Codex, and it is also a good place to connect with OpenAI staff developers.

Areas that I check regularly

GPT 5.5, Codex, 5.3. Same issues with both.

I did look at this in Git already and it was not helpful and did not work. But I am going to monitor it to see what others come up with too.

What i ended up doing was fully deleting the Codex app and all codex folders / files
Codex
OpenAI Codex
com.openai.codex

in the following areas:

~/Library/Application Support

~/Library/Caches

*~/Library/Saved Application State
*
Then restarted my computer, downloaded Codex again, and then it worked fine.

Thanks for reporting back. Many users do not follow up with what worked.

Did you happen to search the Codex issues? If you did not find an existing issue for your problem, did you open a new one?

Also, since you posted a workaround here, consider adding it to the relevant Codex issue as well. Most programmers are likely to check the Codex issues first rather than this forum, so having your workaround documented there may help others.


I see your comment on GitHub, thanks.

Searching Codex Issues here? or in Git? Can you send a link to where you mean.

When I just googled though the only thing that came up was the saem Git link you sent. Even when I asked ChatGPT it gave me that linnk too haha.

Ok so I wanted to try and trouble shoot more based on the comment in Git regarding the Apps being on or off.

And I found the culprit. It seems to be when its certain Apps (from ChatGPT) that are on. I have only 2 apps connected via ChatGPT (Figma and Insight Timer). When Figma is on or off…Codex work fine.

BUT… as soon as I turned on Insight Timer…I got that same Codex fail error issue.

Again I only have these 2 apps, so I cant say if it is just Insight Time that causes it, but I assume its not just THAT app. but something about that app or with it.

So as the Git comment said, disconnecting or turning off Apps helps, but it seems to be only certain apps that cause the issue since the Figma one can be on and I get no issues at all.

GitHub.

Many more developers report Codex issues there, give feedback there, and the OpenAI Codex staff developers monitor and reply there. The OpenAI Codex staff developers rarely respond here, maybe once or twice a year.


Thanks for asking.

Here is the Codex issues page:

https://github.com/openai/codex/issues

image

Use the search box on that page and enter a few relevant keywords. For example, when I searched manually, I used: invalid_function_parameters

image

Then click the magnifying glass icon to run the search. image


If Google and ChatGPT are only turning up the same GitHub link, then there may not be a matching issue yet. In that case, the best next step is to open a new issue on the Codex issues page.
image

Again, thanks for the update and the nice graphic with pointers. Those really are helpful.

That’s an extremely surprising workaround!

That seems to suggest that logging in with your ChatGPT account in Codex also populates tools meant primarily for use in ChatGPT.

And there was me thinking it was only an Auth method … :thinking::person_shrugging:t3:

So I have to admit that I think the first solution I hd was maybe drastic, but it did work. But, after troubleshooting and trying to reproduce based on what i read on the Git account, I am like 99% sure it has to do with the Apps coming over from ChatGPT. Seems to be this one specific app too. So I would now say… first try to turn off all connected apps. Then turn on one by one and see which breaks it or not. Fail safe is just delete full app and redownload and install fresh.

But correct in saying (or Im assuming youre correct), that when a user logs in to Codex with same account as ChatGPT, it does bring in connected apps. This was my case at least.

To me this feels like a bug so having an issue on GitHub is a good thing.

It looks like the client doesn’t support the tool calls but somehow the context is including the tools.