Getting 400 error in one of my session ["invalid_request_error"]
Open 💬 3 comments Opened Jul 14, 2026 by agn-7
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
I get the following error in middle of one of my session in both CLI and VScode extension. I also tried to close the session and open it up again using codex resume but the same happened!
■ Error running remote compact task: {
"type": "error",
"error": {
"type": "invalid_request_error",
"code": "invalid_value",
"message": "Invalid 'input[284].output[1].image_url'. Expected a valid URL, but got a value with an invalid format.",
"param": "input[284].output[1].image_url"
},
"status": 400
}
> codex --version
codex-cli 0.144.4
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
<img width="776" height="86" alt="Image" src="https://github.com/user-attachments/assets/0c969d11-2ed6-466f-800a-7e4a679a3e83" />
how to fix this?
Seeing a similar error after a
codex resumeoncodex-cli 0.146.0Intel Mac:For me I was able to get codex to repair it in a new session with a
backup session and surgical repair. It reported: