Skip to content

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

Closed

Description

@JulioGalindo

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

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.

Activity

  1. added
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    contextIssues related to context management (including compaction)
    on Apr 14, 2026
  2. Higor-Matos commented on Apr 14, 2026

    @Higor-Matos
  3. etraut-openai commented on Apr 14, 2026

    @etraut-openai
    Contributor

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

  4. JulioGalindo commented on Apr 14, 2026

    @JulioGalindo
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingcontextIssues related to context management (including compaction)sessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions