Unknown parameter: 'prompt_cache_retention'.

Resolved 💬 5 comments Opened Apr 14, 2026 by pjasicek 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 200$

Which model were you using?

gpt-5.4 high

What platform is your computer?

Linux 5.15.0-139-generic x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

Gnome terminal + Tmux

What issue are you seeing?

After a long continuous session I started getting this error as a response to every prompt:

■ Error running remote compact task: {
  "error": {
    "message": "Unknown parameter: 'prompt_cache_retention'.",
    "type": "invalid_request_error",
    "param": "prompt_cache_retention",
    "code": "unknown_parameter"
  }
}

Restarting codex does not help.

What steps can reproduce the bug?

Uploaded thread: 019d77ac-c213-7df3-899b-46d23518fc1d

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 4 months ago

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

  • #17812
  • #17811
  • #17810
  • #17809

Powered by Codex Action

vucinatim · 4 months ago

please fix this fast - summarization is not working at all 🙏

gndk · 4 months ago

Same here, seems like compaction is completely broken and all sessions at that point unrecoverable.

etraut-openai contributor · 4 months ago

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