Repository navigation
Open
Description
What version of Codex CLI is running?
codex-cli 0.142.4
What subscription do you have?
Corporate
Which model were you using?
gpt-5.6-sol
What platform is your computer?
Linux 6.17.0-35-generic x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
QTerminal 1.4.0
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1782743605s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.142.4",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "$HOME/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "$HOME/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "$HOME/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "$HOME/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "$HOME/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "$HOME/.codex/auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "$HOME/.codex",
"config.toml": "$HOME/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "$HOME/git/develop",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, memories, hooks, enable_request_compression, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, plugin_sharing, image_generation, resize_all_images, skill_mcp_dependency_install, mentions_v2, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, prevent_idle_sleep, auto_compaction, remote_compaction_v2, workspace_dependencies",
"feature flag overrides": "memories=true, prevent_idle_sleep=true",
"feature flags enabled": "35",
"log dir": "$HOME/.codex/log",
"mcp servers": "19",
"model": "gpt-5.6-sol",
"model provider": "openai",
"sqlite home": "$HOME/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.53.0",
"details": {
".git entry": "directory",
"PATH git #1": "/usr/local/bin/git",
"PATH git #2": "/usr/bin/git",
"PATH git #3": "/bin/git",
"PATH git entries": "3",
"core.fsmonitor": "true",
"git branch": "xxxxxxx",
"git build options": "git version 2.53.0; cpu: x86_64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; rust: disabled; gettext: enabled; libcurl: 8.5.0; OpenSSL: OpenSSL 3.0.13 30 Jan 2024; zlib: 1.3; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
"git exec path": "/usr/local/libexec/git-core",
"git version": "git version 2.53.0",
"repo detected": "true",
"repo root": "$HOME/git/develop",
"selected git": "/usr/local/bin/git"
},
"remediation": null,
"durationMs": 38
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/usr/local/bin/codex",
"PATH codex #2": "/usr/local/bin/codex",
"PATH codex entries": "2",
"current executable": "/usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install context": "npm (package /usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
"managed by bun": "false",
"managed by npm": "true",
"managed package root": "/usr/local/lib/node_modules/@openai/codex",
"npm update target": "/usr/local/lib/node_modules/@openai/codex"
},
"remediation": null,
"durationMs": 163
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "19",
"disabled servers": "0",
"stdio servers": "14",
"streamable_http servers": "5"
},
"remediation": null,
"durationMs": 4686
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"proxy env vars": "none"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 404)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 272
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv4",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"models etag present": "true",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 1682
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on linux-x86_64",
"details": {
"commit": "unknown",
"current executable": "/usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install method": "npm (package /usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
"platform": "linux-x86_64",
"version": "0.142.4"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/usr/local/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "Never",
"codex-linux-sandbox helper": "$HOME/.codex/tmp/arg0/codex-arg0nHetaC/codex-linux-sandbox",
"execve wrapper helper": "$HOME/.codex/tmp/arg0/codex-arg0nHetaC/codex-execve-wrapper",
"filesystem sandbox": "unrestricted",
"network sandbox": "enabled"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "$HOME/.codex (dir)",
"active rollout files": "707 files, 1448227245 total bytes, 2048411 average bytes",
"archived rollout files": "187 files, 199744078 total bytes, 1068150 average bytes",
"goals DB": "$HOME/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "$HOME/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "$HOME/.codex/log (dir)",
"memories DB": "$HOME/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "$HOME/.codex (dir)",
"state DB": "$HOME/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 342
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "ok",
"summary": "rollout files and state DB thread inventory agree",
"details": {
"default model provider": "openai",
"rollout DB active files": "707",
"rollout DB active rows": "707",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "187",
"rollout DB archived rows": "187",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=894",
"rollout DB rows": "894",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "subagent:thread_spawn=622, vscode=134, cli=80, exec=37, subagent:review=21",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 10265
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"EDITOR": "not set",
"LANG": "en_US.UTF-8",
"LC_CTYPE": "pt_BR.utf8",
"VISUAL": "not set",
"os": "Ubuntu 24.4.0 (noble) [64-bit]",
"os language": "en-US",
"os type": "Ubuntu",
"os version": "24.4.0"
},
"remediation": null,
"durationMs": 8
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORFGBG": "15;0",
"COLORTERM": "truecolor",
"DISPLAY": "present",
"TERM": "xterm-256color",
"color output": "enabled",
"effective locale": "pt_BR.utf8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "unknown",
"terminal size": "153x59"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "git repo root",
"terminal title project value": "develop",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.142.4",
"check for update on startup": "true",
"last checked at": "2026-06-29T13:51:56.089630302Z",
"latest version": "0.142.4",
"latest version status": "current version is not older",
"npm update target": "/usr/local/lib/node_modules/@openai/codex",
"update action": "npm install -g @openai/codex",
"version cache": "$HOME/.codex/version.json"
},
"remediation": null,
"durationMs": 1318
}
}
}What issue are you seeing?
The /model command gives me the option ultra for reasoning effort on gpt-5.6-sol, but when I select that I get the following error:
{
"type": "error",
"error": {
"type": "invalid_request_error",
"code": "invalid_value",
"message": "Invalid value: 'max'. Supported values are: 'none', 'minimal', 'low', 'medium', 'high', and 'xhigh'.",
"param": "reasoning.effort"
},
"status": 400
}
What steps can reproduce the bug?
Uploaded thread: 019f13a6-ac12-7e53-bd0e-0ebd0211a554
What is the expected behavior?
When I select ultra, I'd like to see no errors and the model using the effort level selected.
Additional information
No response
Reacted by Chris DiMartino
Activity
wgu9 commentedon Jun 29, 2026
Current
mainappears to have already moved in the right direction here.On
80f54d1(Treat max as a first-class reasoning effort (#30467)),codex-rs/protocol/src/openai_models.rsnow has:ReasoningEffort::Max"max"FromStraccepting"max""max"parse/serialize behaviorThere is also a client-side normalization in
codex-rs/core/src/client.rswhereUltrais mapped toMaxbefore the request is sent.So this looks likely fixed on current
mainbut not yet in the reported release/build path. A useful verification after the next release would be: selecting Ultra should no longer send unsupportedreasoning.effort=maxfrom an older enum/validation path, and any remaining failure would likely be model/backend-specific rather than CLI enum parsing.zmcddn commentedon Jul 15, 2026
I can confirm the same failure in a newer Codex release and through the non-interactive CLI path.
Environment
Codex CLI:
0.144.1Model:
gpt-5.5Invocation: non-interactive workflow execution
Global config:
The caller explicitly selects
gpt-5.5but does not pass a reasoning-effort override. Codex inheritsultrafrom~/.codex/config.tomland sends:The backend then rejects the request:
This suggests the issue is not limited to the
/modelTUI flow. The non-interactive request-building path also allows an incompatible effective model/effort pair to reach the backend.Expected behavior
Before sending the request, Codex should validate the inherited effort against the selected model’s supported reasoning levels. It should either:
Because the model was explicitly selected here, silently switching models would be undesirable; however, sending a predictably invalid
maxvalue should be prevented.I can provide sanitized invocation logs and session metadata if useful.
Fix the three defects that made Codex unusable, and stop advertising …