Codex CLI v0.120.0 fails to resume old sessions: Unknown parameter 'prompt_cache_retention'

Resolved 💬 4 comments Opened Apr 14, 2026 by JulioGalindo Closed Apr 14, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Summary

Resuming an older Codex session consistently fails with a remote compact error.

Environment

  • Codex CLI: 0.120.0
  • OS: macOS
  • Model: gpt-5.4
  • Session ID: 019d6fa0-db65-7f83-9531-35df54674d76

Exact repro

```bash
codex resume 019d6fa0-db65-7f83-9531-35df54674d76 "ping" --no-alt-screen

I also tried:

codex resume 019d6fa0-db65-7f83-9531-35df54674d76 "ping" --no-alt-screen --disable enable_request_compression

Actual result

Codex fails with:

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

Expected result

The session should resume normally, or compact successfully without sending unsupported parameters.

Notes

  • I could reproduce this directly from the CLI.
  • The failure appears tied to remote compaction of a large old session.
  • I did not find prompt_cache_retention in my local editable Codex config.

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 4 months ago

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

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

Powered by Codex Action

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.

JulioGalindo · 4 months ago

Thanks for the quick turnaround! It’s working perfectly now.