Compaction fails with - Unknown parameter: 'prompt_cache_retention'.
Resolved 💬 2 comments Opened Apr 14, 2026 by TomasSaite Closed Apr 14, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.120.0
What subscription do you have?
ChatGPT Pro
Which model were you using?
GPT-5.4
What platform is your computer?
Linux 5.15.158-2-pve x86_64 unknown
What terminal emulator and version are you using (if applicable)?
Terminal.app
What issue are you seeing?
When I try /compact or it auto-compacts it fails with this:
■ Error running remote compact task: {
"error": {
"message": "Unknown parameter: 'prompt_cache_retention'.",
"type": "invalid_request_error",
"param": "prompt_cache_retention",
"code": "unknown_parameter"
}
}
What steps can reproduce the bug?
/compact
What is the expected behavior?
IT compacts
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
We rolled back the change that caused this regression, so this should be addressed now. Apologies for the inconvenience.