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_

View original on GitHub ↗

17 Comments

github-actions[bot] contributor · 3 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #17811
  • #17810
  • #17809

Powered by Codex Action

nanomader · 3 months ago
Or mention your thread ID 019d8d0d-526d-7632-9d80-28cfb78533d2 in an existing issue.

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" />

EricSongXinLe · 3 months ago

Same issue here.
thread ID 019d4b5b-01b3-7533-a3c0-b4aaed5d56c8

michalzarsm · 3 months ago

Same issue.

liudesheng9 · 3 months ago

Same issue.

brycedbjork · 3 months ago

same issue

vikaswakde · 3 months ago

same issue

bartdeboer · 3 months ago

Same here (Desktop Version 26.409.20454 (1462))

Agistaris · 3 months ago

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" />

EzTiger · 3 months ago

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?

nanomader · 3 months ago
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).

etraut-openai contributor · 3 months ago

We rolled back the change that caused this regression, so this should be addressed now. Apologies for the inconvenience.

sinopec · 2 months ago
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

linQian99 · 2 months ago

still exist in codex-cli 0.128.0

gudlarohan · 2 months ago

still exists in codex-cli 0.128.0

please fix it.

nextdimension · 2 months ago

yep, just happened to me on OpenAI Codex (v0.128.0)

nextdimension · 2 months ago

please reopen the issue