Hello,
I’m encountering a consistent blocking issue with the Codex client that makes it impossible to continue working after some time.
Problem description
At a certain point (likely when the context becomes large), Codex attempts to run a context compaction task and fails with the following error:
Error running remote compact task:
{
"error": {
"message": "Unknown parameter: 'prompt_cache_retention'.",
"type": "invalid_request_error",
"param": "prompt_cache_retention",
"code": "unknown_parameter"
}
}
After this happens:
-
the session becomes unusable
-
further interaction is not possible
-
restarting the same session does not recover it
What I’ve already tried
-
fully clearing local Codex caches and config directories
-
reinstalling the Codex client
-
starting new sessions
-
reducing context size manually
None of these steps resolved the issue.
Observations
-
The error occurs specifically during the remote context compaction step
-
It appears that the Codex client is sending a deprecated or unsupported parameter (
prompt_cache_retention) -
This suggests a mismatch between the Codex client and the current API
Impact
This is a blocking issue:
-
it breaks long-running workflows
-
makes Codex unreliable for real-world usage
-
requires restarting sessions frequently (losing context)
Questions
-
Is this a known issue with Codex context compaction?
-
Is there a way to disable or bypass the compaction step?
-
Is a client update required, or is there a workaround available?
