Error running remote compact task: invalid_request_error

Resolved 💬 2 comments Opened Apr 14, 2026 by yazzaoui Closed Apr 14, 2026

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 high

What platform is your computer?

Darwin 25.3.0 arm64 arm

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

iTerm2

What issue are you seeing?

At compaction, the following error is being returned

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

The compaction failure is causing the session to be unusable. I tried to exist and resume but it didn't work, the session seems dead.

What steps can reproduce the bug?

Long lived session.

What is the expected behavior?

Compaction can succeed and session can resume.

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗