Error Using o4-mini with Codex CLI: invalid_request_error (400) – Missing Required Item
Resolved 💬 5 comments Opened Jun 6, 2025 by ai-da-stas Closed Aug 12, 2025
What version of Codex is running?
v0.1.2505172129
Which model were you using?
o4-mini
What platform is your computer?
Linux 6.11.0-26-generic x86_64 x86_64
What steps can reproduce the bug?
run:codex --auto-edit "some task"
What is the expected behavior?
The model must reason and perform the task
What do you see instead?
Every request now returns a 400 invalid_request_error indicating that the 'reasoning' item is missing its required subsequent parameter. This did not occur before—only started today.
⚠️ OpenAI rejected the request (request ID: req_f155dbc7a484c75c6bf03e1b3fa748b6). Error details: Status: 400, Code: unknown, Type: invalid_request_error, Message: 400 Item 'rs_68429258f9e881998368d94c3aec3d5808b5452e84add280' of type 'reasoning' was provided without its required following item.. Please verify your settings and try again.
Additional information
Now I tried to switch the model to codex-mini-latest, so far it seems to work, as soon as it completes the task - I will write in the comments.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗