image_generation_user_error
Resolved 💬 32 comments Opened Jun 2, 2026 by PBLIZZ Closed Jun 3, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.136.0
What subscription do you have?
Pro x5
Which model were you using?
gpt 5.5 xhigh
What platform is your computer?
Darwin 25.5.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Antigravity IDE built in terminal
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1780442986s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.136.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/peterjamesblizzard/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/peterjamesblizzard/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/peterjamesblizzard/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/peterjamesblizzard/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/peterjamesblizzard/.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": "/Users/peterjamesblizzard/.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": "/Users/peterjamesblizzard/.codex",
"config.toml": "/Users/peterjamesblizzard/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/peterjamesblizzard/Garnier/PBLIZZ/portfolio-tracker",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, memories, hooks, request_rule, enable_request_compression, multi_agent, apps, tool_suggest, plugins, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, image_generation, skill_mcp_dependency_install, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, prevent_idle_sleep, workspace_dependencies",
"feature flag overrides": "memories=true, request_rule=true, prevent_idle_sleep=true",
"feature flags enabled": "30",
"log dir": "/Users/peterjamesblizzard/.codex/log",
"mcp servers": "6",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "/Users/peterjamesblizzard/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.54.0",
"details": {
".git entry": "directory",
"PATH git #1": "/opt/homebrew/bin/git",
"PATH git #2": "/usr/bin/git",
"PATH git entries": "2",
"git branch": "ralph/wave-9-responsive-sidebar-behavior",
"git build options": "git version 2.54.0; cpu: arm64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.7.1; zlib: 1.2.12; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
"git exec path": "/opt/homebrew/opt/git/libexec/git-core",
"git version": "git version 2.54.0",
"repo detected": "true",
"repo root": "/Users/peterjamesblizzard/Garnier/PBLIZZ/portfolio-tracker",
"selected git": "/opt/homebrew/bin/git"
},
"remediation": null,
"durationMs": 14
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/opt/homebrew/bin/codex",
"PATH codex #2": "/Users/peterjamesblizzard/.nvm/versions/node/v23.8.0/bin/codex",
"PATH codex entries": "2",
"current executable": "/opt/homebrew/bin/codex",
"install context": "brew",
"managed by bun": "false",
"managed by npm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 4
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "6",
"disabled servers": "0",
"stdio servers": "6"
},
"remediation": null,
"durationMs": 0
},
"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 403)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 241
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 0 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": 690
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running brew on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": "/opt/homebrew/bin/codex",
"install method": "brew",
"platform": "macos-aarch64",
"version": "0.136.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (system)",
"details": {
"search command": "rg",
"search command readiness": "ripgrep 15.1.0",
"search provider": "system"
},
"remediation": null,
"durationMs": 2
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "/Users/peterjamesblizzard/.codex/tmp/arg0/codex-arg0vbAutU/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"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": "/Users/peterjamesblizzard/.codex (dir)",
"active rollout files": "508 files, 979835961 total bytes, 1928810 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/Users/peterjamesblizzard/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/peterjamesblizzard/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/peterjamesblizzard/.codex/log (dir)",
"memories DB": "/Users/peterjamesblizzard/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "/Users/peterjamesblizzard/.codex (dir)",
"state DB": "/Users/peterjamesblizzard/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 442
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "warning",
"summary": "rollout files and state DB thread inventory differ",
"details": {
"default model provider": "openai",
"rollout DB active files": "508",
"rollout DB active rows": "502",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "15",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "6",
"rollout DB missing active sample": [
"/Users/peterjamesblizzard/.codex/sessions/2026/04/09/rollout-2026-04-09T19-31-30-019d734c-8d56-7712-ac4c-a9a04bb4672b.jsonl",
"/Users/peterjamesblizzard/.codex/sessions/2026/04/09/rollout-2026-04-09T19-31-30-019d734c-8e38-7af0-84b0-49a26f6f9083.jsonl",
"/Users/peterjamesblizzard/.codex/sessions/2026/04/09/rollout-2026-04-09T19-31-30-019d734c-8f67-7142-b7d4-209017c4063f.jsonl",
"/Users/peterjamesblizzard/.codex/sessions/2026/04/09/rollout-2026-04-09T19-31-29-019d734c-8be8-7b51-a282-d85e6cd3deb7.jsonl",
"/Users/peterjamesblizzard/.codex/sessions/2026/04/09/rollout-2026-04-09T19-31-29-019d734c-8c22-7602-9e73-d20a12e2f737.jsonl"
],
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=517",
"rollout DB rows": "517",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "vscode=229, subagent:thread_spawn=185, cli=77, subagent:other=23, exec=3",
"rollout DB stale row sample": [
"/Users/peterjamesblizzard/.codex/archived_sessions/rollout-2025-09-14T02-22-19-30319a91-dc96-4d31-9de8-cb4527de9d49.jsonl",
"/Users/peterjamesblizzard/.codex/archived_sessions/rollout-2025-09-14T13-00-33-befaa2c9-fa38-4c2a-865b-f250863b91e7.jsonl",
"/Users/peterjamesblizzard/.codex/archived_sessions/rollout-2025-10-07T18-01-39-0199bf68-2bee-7521-baab-0e64df73396c.jsonl",
"/Users/peterjamesblizzard/.codex/archived_sessions/rollout-2025-10-08T01-26-54-0199c0ff-d0c1-78c3-97b0-5038bf9c7553.jsonl",
"/Users/peterjamesblizzard/.codex/archived_sessions/rollout-2025-10-09T07-28-21-0199c771-1577-78c2-90dc-1466ff5cb020.jsonl"
],
"rollout DB stale rows": "15"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "6 active, 0 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
},
{
"severity": "warning",
"cause": "state DB rows point at missing or unusable rollout files",
"measured": "15 stale rows",
"expected": "every state DB rollout path is a file on disk",
"remedy": null,
"fields": []
}
],
"remediation": null,
"durationMs": 1432
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"LANG": "C.UTF-8",
"os": "Mac OS 26.5.0 [64-bit]",
"os language": "en-US",
"os type": "Mac OS",
"os version": "26.5.0"
},
"remediation": null,
"durationMs": 3
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"TERM_PROGRAM": "vscode",
"VSCODE_INJECTION": "present",
"color output": "enabled",
"effective locale": "C.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "VS Code",
"terminal size": "185x45",
"terminal version": "1.107.0"
},
"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": "portfolio-tracker",
"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.136.0",
"check for update on startup": "true",
"last checked at": "2026-06-02T13:40:58.026544Z",
"latest version": "0.136.0",
"latest version status": "current version is not older",
"update action": "brew upgrade --cask codex",
"version cache": "/Users/peterjamesblizzard/.codex/version.json"
},
"remediation": null,
"durationMs": 192
}
}
}
What issue are you seeing?
<img width="1316" height="593" alt="Image" src="https://github.com/user-attachments/assets/0878cd98-0eeb-4b17-827d-c3a112469763" />
What steps can reproduce the bug?
Uploaded thread: 019e8a82-2368-7333-bea4-4dbcea4df77d
What is the expected behavior?
An answer to what i am asking and not just an error message
Additional information
_No response_
32 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Came to report this very issue. Literally just started for me a few minutes ago post-update.
The model 'gpt-image-2' does not exist.
Same here.
Same
Getting this error as well
Same
+1
same
Got this same error with the latest codex app for windows with a plus subscription :/
+1
+1
+1
+1
It's literally all attempts to use the cli. I'm not even asking for image generation.
+1
I'm getting this issue on the Mac Codex App: Version 26.601.20914 • Released Jun 2, 2026
+1
+1
+1
+1
+1
+1
Same issue
+1
same
+1
+1
model: gpt 5.4 -medium
Codex-cli: 0.136.0 (updated today)
thread ID 019e8aa7-59c8-7053-962a-e00933afbe3b
https://status.openai.com/incidents/01KT5B2V94YX1T1M88BVQHB58J
I can reproduce the same failure in a normal text-only Codex Desktop conversation: no image request, no attached images, but the turn fails with:
What I found locally:
gpt-image-2is not present in my Codex config or hooks.codex features listshowsimage_generationenabled.After that, restart the Codex session/app.
Suggested code-side fix: the image generation path should not route normal text-only turns through image generation at all. Also, any hard-coded/default fallback model named
gpt-image-2should be replaced or resolved dynamically. The currently documented GPT Image model names aregpt-image-1.5,gpt-image-1, andgpt-image-1-mini;gpt-image-2appears to be an invalid/stale model id.or you can try adding this prompt: Do not use image_generation or any image tool. Answer with text only.
Adding a Windows Codex Desktop datapoint with a workaround that fixed normal text sessions for me.
Environment:
OpenAI.Codex_26.601.1994.0_x64gpt-5.5xhighWhat I observed:
gpt-5.5; this was not caused by the configured model changing togpt-image-2.turn_contextstill showedmodel: "gpt-5.5".I also saw the same structured-turn failure during automatic thread-title generation, which suggests the failing image-generation tool declaration is being attached outside explicit image-generation requests.
Workaround that fixed it:
This added:
After a full Codex Desktop restart, normal text sessions worked again.
One local wrinkle: my config had
service_tier = "priority", and the CLI rejected that while running feature commands. This form worked around that parser issue:Disabling local imagegen skill metadata alone was not the decisive fix; the effective fix was disabling the
image_generationfeature and restarting Codex Desktop.Thanks for reporting the issue. This incident has been mitigated, so you should no longer see the error.