Error running remote compact task
Resolved 💬 17 comments Opened Apr 14, 2026 by tsoofbaror 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?
codex-cli 0.120.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.4 xhigh
What platform is your computer?
Darwin 24.3.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
cmux
What issue are you seeing?
Just got:
Error running remote compact task: {
"error": {
"message": "Unknown parameter: 'prompt_cache_retention'.",
"type": "invalid_request_error",
"param": "prompt_cache_retention",
"code": "unknown_parameter"
}
}
without any option to continue the conversation. /compact let to the same thing.
What steps can reproduce the bug?
Uploaded thread: 019d8cfa-cf33-7473-a505-8de4adc7ad1d
What is the expected behavior?
_No response_
Additional information
_No response_
17 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I also have the same issue.
<img width="1734" height="1640" alt="Image" src="https://github.com/user-attachments/assets/4f52bc65-7aca-49b7-95f9-fb57e870b376" />
Same issue here.
thread ID 019d4b5b-01b3-7533-a3c0-b4aaed5d56c8
Same issue.
Same issue.
same issue
same issue
Same here (Desktop Version 26.409.20454 (1462))
Same issue, fix asap please. Big misstep. On Pro, using CachyOS Codex CLI.
<img width="803" height="530" alt="Image" src="https://github.com/user-attachments/assets/47ef7592-40ca-4dfa-bdf9-ee02390fb9b8" />
Desktop version: Codex 26.409.20454
I have the same issue and cannot move on.
Error running remote compact task: {"error": { "message": "Unknown parameter: 'prompt_cache_retention'.", "type": "invalid_request_error", "param": "prompt_cache_retention", "code": "unknown_parameter" } }
What is the fix for this or when will there be a fix for this?
@EzTiger you could try this https://github.com/openai/codex/issues/17809#issuecomment-4246044036 but I suggest to wait for official update. I have now retried and compaction works fine (I have NOT enabled that workaround).
We rolled back the change that caused this regression, so this should be addressed now. Apologies for the inconvenience.
still exist in codex-cli 0.124.0
still exist in codex-cli 0.128.0
still exists in codex-cli 0.128.0
please fix it.
yep, just happened to me on OpenAI Codex (v0.128.0)
please reopen the issue