Codex stating new version of codex required when in most recent version
What version of Codex CLI is running?
codex-cli 0.143.0
What subscription do you have?
NVIDIA
Which model were you using?
gpt-5.6-sol
What platform is your computer?
_No response_
What terminal emulator and version are you using (if applicable)?
_No response_
Codex doctor report
What issue are you seeing?
⚠ Model metadata for gpt-5.6-sol not found. Defaulting to fallback metadata; this can degrade performance and cause issues.
⚠ Falling back from WebSockets to HTTPS transport. stream disconnected before completion: websocket closed by
server before response.completed
■ Error running remote compact task: {"detail":"The 'gpt-5.6-sol' model requires a newer version of Codex. Please
upgrade to the latest app or CLI and try again."}
Token usage: __
To continue this session, run codex resume 019f244a-489a-7482-803e-1644660fafb7
[10:39:38] radwankar@DJQTT9QWYL ___ % brew update codex
Warning: Use brew upgrade codex to upgrade formulae; running it instead.
Warning: Not upgrading codex, the latest version is already installed
What steps can reproduce the bug?
Resume a conversation when previously using gpt-5.6-sol.
What is the expected behavior?
_No response_
Additional information
_No response_
11 Comments
Problem persists even when I switch to a new model.
Several others are having this issue.
For me it was resolved by uninstalling my homebrew install and reinstalling with npm.
I'm guessing they are the same so maybe just the act of installing/reinstalling fixing whatever was going wrong.
So my problem is resolved but I'll leave the bug open because it would be great for that flow to be fixed in the future.
I’m getting the same error-gpt-5.6-sol displays the message “a newer version is required,” even though I already had the latest version (0.144.0) installed. Reinstalling didn’t help at first, and the
codex doctorcommand revealed the issue. The problem stemmed from two different things.npm install -g @openai/codexupdated one copy (/usr/lib/node_modules), but the Codex that was actually running was a different one (in my NVM environment). Therefore, every reinstallation affected the wrong copy and didn’t change anything.codex doctorimmediately points this out (“npm install will update the other installation”). It’s worth checking this before reinstalling anything.codex app-serverdaemon was storing an outdated model directory and constantly overwriting the cache, which is why gpt-5.6-sol never appeared. Deleting the cache while the daemon was running didn’t work-it simply wrote it back.Here’s what helped me solve the problem:
After that, gpt-5.6-sol resolved and started normally. Login credentials and history remained intact; no re-login was required.
In short: First, run
codex doctorto check for inconsistencies caused by a dual installation, then clear the model cache while the daemon is stopped, not while it is running.@alesha-pro Thank You, So much solution worked
I reproduced the same user-facing failure on Linux with
codex-cli 0.144.1and ChatGPT authentication. This case adds evidence that the generic upgrade error can be caused by stale app-server/model-catalog state even when the installed CLI is current.Observed split:
codex exec -m gpt-5.6-solprocess succeeded.Model metadata ... not foundand the same 400 "requires a newer version of Codex" response.failed to refresh available models: timeout waiting for child process to exit.codex remote-control stop/startreported that the app server was running but was not managed by the current daemon.model_catalog_jsonoverride. Removing that override fixed newly started processes, but the existing app-server retained stale state.Recovery did not require reinstalling Codex, logging in again, or deleting caches:
codex remote-control start --json.Afterward:
codex app-server daemon versionreported both CLI and app-server as0.144.1.codex debug modelsreturned full metadata forgpt-5.6-solwithupgrade: null.codexandcodex -m gpt-5.6-solselected Sol, and an interactive request completed successfully.This suggests Codex could improve the failure path by detecting an unmanaged/stale app-server or catalog-refresh failure and recommending a daemon restart/catalog reload, instead of reporting only that the installed CLI must be upgraded.
Same issue here, via Zed + codex-acp.
Setup:
v0.144.1, macOS) using thecodex-acpACP adaptergpt-5.6-solReproduction pattern:
This error is not triggered on every request — it only happens when the conversation context is close to the limit and the client attempts an automatic remote compact. Fresh/short sessions with the exact same model work fine with no errors at all. The moment context usage gets high enough to trigger compaction, the compact request itself fails with:
This confirms it's specific to the
/responses/compactcode path, not general inference with this model.Additional detail from gateway-side logs: the main
/responsesrequest that triggers compaction sometimes also gets a 400 with the same message before the compact call is even attempted, followed by the compact retry also failing (502 downstream). So it looks like both the compact endpoint and, in some cases, the standard endpoint rejectgpt-5.6-solonce the payload/context crosses some size threshold — possibly unrelated to compact specifically, but to request size in general.Workaround currently in use: starting a new session before context gets close to full, or switching away from
gpt-5.6-solfor long-running sessions.Would be good to know if this is being tracked/fixed upstream, or if there's a version pin that's supposed to resolve it — "upgrade to latest" doesn't seem to help since CLI is already current (as others have also reported).
I found the root cause and wanted to document it here in case it helps others.
Root cause
The issue was not that Codex CLI needed a newer version.
Instead, there were two separate problems on my machine.
1. CLI and app-server were running different versions
The CLI itself had already been updated to
0.144.0, but a long-running app-server process was still running an older version (0.142.5).codex doctorandcodex app-server daemon versionhelped identify this.This app-server was a persistent
code_mode_hostinstance rather than the normal managed daemon, so it wasn't stopped by the usual daemon management commands.Its logs showed repeated model refresh failures, including:
As a result, it continued serving stale model metadata.
Interestingly, normal
codex execand interactive CLI sessions were not using this stale process—they started a fresh app-server from the current CLI binary—so only the persistent daemon exhibited the problem.The fix was:
~/.codex/cache/...).After that:
and GPT-5.6 models immediately became available.
---
2. Rollout state DB inconsistency
Separately,
codex doctorreported rollout/thread inventory inconsistencies.After inspecting the SQLite database directly, I found that archived sessions had been moved on disk, but the corresponding
rollout_pathvalues in the state database had never been updated.Updating those records resolved all doctor warnings.
This issue was unrelated to GPT-5.6 availability, but I fixed it while investigating.
---
Verification
After fixing the stale app-server state, all GPT-5.6 models worked correctly:
gpt-5.6-solgpt-5.6-terragpt-5.6-lunausing Codex CLI
0.144.0.So in my case the error message:
was misleading—the installed CLI version was already sufficient.
Hopefully this helps anyone who encounters the same symptoms.
Closing this issue since it is resolved on my machine.
I managed to fix it. There were two parts to the problem.
First, I had multiple Codex installations (same as the comment above describes), including npm and standalone versions. I removed all of them and installed Codex again from scratch using the official standalone installer.
The main issue, however, was the model cache. My Mac Codex app had an active remote connection to the EC2 instance. Because of that, the Codex app-server and proxy processes on EC2 kept restarting whenever I killed them. They were also restoring the old model cache, so deleting the cache alone didn’t work.
What fixed it:
After that, GPT-5.6 appeared in the model list and worked normally. I didn’t need to log in again.
Additional Raspberry Pi 5 / Linux ARM64 reproduction
I reproduced the same user-facing failure on a Raspberry Pi 5 running Debian 12 (
aarch64) with Codex CLI and the current native package both at0.144.1.The observed state before recovery was:
0.144.1./proc/<pid>/exe --versionreportedcodex-cli 0.142.0.~/.codex/models_cache.jsonwas stamped withclient_version: 0.142.0and contained nogpt-5.6-*entries./usr/local/bin/codexresolved to the same current NVM/npm wrapper, so there was no second active installation explaining the version skew.I stopped only the identified old app-server process group, renamed the model cache to a backup, and restarted Codex from the current installation. After recovery:
0.144.1.client_version: 0.144.1and included Sol, Terra, and Luna.OKand exit code 0:I also checked the installed ARM64 package metadata, ELF target, and embedded version strings; all were consistent with
0.144.1. I found no evidence of an ARM64 packaging defect.Important limitation: the stale process and stale cache were observed together and removed in the same recovery. I did not independently isolate which one was sufficient, and I did not capture filesystem audit data proving which PID wrote the cache.
This adds Raspberry Pi/Linux ARM64 evidence that the generic “requires a newer version” response can accompany local CLI/app-server version skew and stale model-catalog state. It may be useful for
codex doctorto flag an unmanaged app-server whose reported version differs from the invoking CLI and provide a supported restart/catalog-refresh remediation.Just to also note.... reboot your Linux box. But that is the easy way to get this to work for all you non-tech folks.
I updated the codex, then ran a command
codex exec -m gpt-5.6-sol "Show model name"on my Linux box, and it fixed the issue.