0.148.0 sends prompt_cache_retention on gpt-5.6-sol and every turn fails
I updated to 0.148.0 today and every single turn now fails with the below.
{
"error": {
"message": "prompt_cache_retention is not supported on this model",
"type": "invalid_request_error",
"param": "prompt_cache_retention",
"code": "invalid_parameter"
}
}
Codex is still sending prompt_cache_retention on gpt-5.6-sol. That model does not accept it anymore.
I checked my own rollout logs. Same machine, same model, same config, same auth. The only thing that changed is the version.
0.147.0 + gpt-5.6-sol = 10 sessions, 45 turns, 0 errors (Aug 14-18)
0.148.0 + gpt-5.6-sol = 1 session, 3 turns, 3 errors (Aug 19)
On the failing day my update check finished at 02:12Z, the first 0.148.0 session started at 02:14Z, and all 3 of its turns errored at 02:16Z, 02:34Z and 02:41Z.
To reproduce:
1- npm install -g @openai/codex@0.148.0
2- set model = "gpt-5.6-sol" in config.toml
3- send any prompt
Environment: Codex CLI 0.148.0 from npm, win32-x64, Windows 11 10.0.26200, Node v22.22.3, model_reasoning_effort xhigh, ChatGPT account auth and not an API key. Default ChatGPT backend, I did not test Azure or a custom model_provider.
Just to be clear this is NOT the 0.120.0 compaction bug (#17809 to #17819, all closed). Those said "Unknown parameter" and only happened during compaction. Mine says "is not supported on this model" and it happens on every normal turn. My first failure was at 154k tokens in a 258k window so there was no compaction involved.
One thing that makes this confusing to diagnose. When a turn has already started tool calls the work still finishes, but the final message never comes back, so it reads as stuck instead of failed. A turn with no tool calls dies in 4 seconds.
The fix is to gate prompt_cache_retention on the model instead of always sending it. Your own repo already says this in codex-rs/skills/src/assets/samples/openai-docs/references/upgrading-to-gpt-5p6-sol.md:
Treat the older prompt_cache_retention shape as deprecated
Same pattern as #31882 where use_responses_lite and multi_agent_version are hardcoded for sol/terra/luna. A shared capability table would close both.
Workaround for anyone else hitting this, downgrade with npm install -g @openai/codex@0.147.0. Switching to gpt-5.5 also works because that model still accepts the parameter.
0.149.0-alpha.1 was cut at 2026-08-19T00:54Z and I do not see a related commit on main, so I expect it is still broken.
Related: #31882, #25604, #35300.
Thank you
42 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same Issue
Same issue here—it's blocking my workflow. Unfortunately, I haven't found a workaround yet.
Same Issue
Same issue here!!!
Same Issue
same issue !!!! pls fix asap
OpenAI, don't you test before releasing? Such a basic error is truly baffling.
Given your GPT-5.6-Sol's excessive safety alignment and over-cautiousness, it should have been impossible for it to pass its own readiness check for release.
lol same issue
same issue, even i changed model from 5.6 sol to 5.5
same issue,i tried to open another chat window,but it does not disappear
Same Issue!
same issue!
same issue!
same issue!!!
same issue!!!
Same Issue!
It seems that this issue only occurs when multiple windows are running simultaneously. I have three sessions, one of which is stable, while the other two keep encountering this error.
Same Issue!
same issue
payload:
filter:
protocol: "codex"
from-protocol: "responses"
params:
<img width="523" height="259" alt="Image" src="https://github.com/user-attachments/assets/94feb858-4ebc-43f5-bcc2-b3a5db0569d7" />
可以在cpa中先临时把这个参数过滤掉 等后续修复
Removed
prompt_cache_retentionfrom client config but still bumping into the same error frequentlySame Issue
same issue
same issue
same issue
yikes, my workaroud here is: https://github.com/SamSaffron/term-llm/commit/26b16336d5db8b1bf6004dee949ec8df3bb72f56
so if you need something urgently a 10 line patch to codex would probably do the same thing while oai sort out the issue.
same issue
Same issue,Every conversation is 100% reproduced.
For the record I don't think anything is being sent, this is just some weird internal routing thing. the instruction is being injected server side.
same issue
codex-cli 0.147.0-alpha.6.6 version
gpt-5.6-sol
same issue
Same issue!
Same issue
codex-cli 0.147.0-alpha.6.6 version gpt-5.6-sol same issue
v0.147.0 also reproduces this issue, too. But it's intermittent.
gpt-5.6-terra, luna same issue!!
I re-installed the previous version codex but still got the error code. All down!!!
same issue on the pro plan. Could not complete even one session. while "https://status.openai.com/" says it is fully operational.
gpt-5.6-sol,gpt-5.5, same issue!!
Additional sanitized data point from Windows with
gpt-5.6-luna:Environment
0.148.0from npmgpt-5.6-lunahighconfig.tomlcontains neitherprompt_cache_retentionnorprompt_cache_optionsFailure pattern
During one agent turn, the official endpoint returned eight successful HTTP 200 continuation responses between approximately
2026-08-19 06:05:28Zand06:07:20Z, followed by HTTP 400 at06:07:24Z:This makes the failure intermittent within the same tool-using turn rather than a deterministic startup/configuration failure.
Local request-shape control
I also redirected the same
0.148.0binary to a loopback-only Responses endpoint using an ephemeral run (--ephemeral --ignore-user-config --ignore-rules) and captured only the top-level JSON field names. Forgpt-5.6-luna, Codex generated:Relevant values/presence:
The actual failure was observed against
https://chatgpt.com/backend-api/codex/responses, not the loopback provider. This control strongly supports the theory that the deprecated retention field is being injected or transformed in the ChatGPT/Codex backend routing path (or another provider-specific layer), rather than coming from the user's config or the provider-agnostic request body.The current GPT-5.6 migration guidance says to replace
prompt_cache_retentionwithprompt_cache_options.ttl:https://developers.openai.com/api/docs/guides/latest-model
No prompts, auth headers, account identifiers, thread IDs, or full logs are included here.
https://github.com/Simpidbit/retrycodex/
Just retry, this project works
This should be resolved now. It was a server-side configuration issue.
Still occurs.