App-server docs say remote image URLs are supported, but turn/start rejects them
Open 💬 0 comments Opened Jul 17, 2026 by ruixingshi
What version of Codex CLI is running?
0.144.4
What subscription do you have?
pro
Which model were you using?
gpt-5.6-sol
What platform is your computer?
Darwin 24.5.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Warp
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1784279400s since unix epoch",
"overallStatus": "fail",
"codexVersion": "0.144.4",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/ruixingshi/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/ruixingshi/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/ruixingshi/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/ruixingshi/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/ruixingshi/.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/ruixingshi/.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/ruixingshi/.codex",
"config.toml": "/Users/ruixingshi/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/ruixingshi/codex-acp-ts-fix",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, code_mode_host, terminal_resize_reflow, sqlite, 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, remote_plugin, plugin_sharing, image_generation, resize_all_images, skill_mcp_dependency_install, mentions_v2, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, personality, fast_mode, tui_app_server, remote_compaction_v2, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "35",
"log dir": "/Users/ruixingshi/.codex/log",
"mcp servers": "6",
"model": "gpt-5.6-sol",
"model provider": "openai",
"sqlite home": "/Users/ruixingshi/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.39.5 (Apple Git-154)",
"details": {
"PATH git #1": "/usr/bin/git",
"PATH git entries": "1",
"git build options": "git version 2.39.5 (Apple Git-154); cpu: arm64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; feature: fsmonitor--daemon",
"git exec path": "/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core",
"git version": "git version 2.39.5 (Apple Git-154)",
"repo detected": "false",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 115
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/Users/ruixingshi/.local/bin/codex",
"current executable": "/Users/ruixingshi/.local/bin/codex",
"install context": "standalone (unix, package /Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin, bin /Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin/bin, resources /Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin/codex-resources, path /Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin/codex-path)",
"managed by bun": "false",
"managed by npm": "false",
"managed by pnpm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 7
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "6",
"disabled servers": "2",
"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": "fail",
"summary": "one or more required provider endpoints are unreachable over HTTP",
"details": {
"ChatGPT base URL": "https://chatgpt.com/backend-api/ request timed out (required)",
"reachability mode": "ChatGPT auth"
},
"remediation": "Check proxy, VPN, firewall, DNS, and custom CA configuration.",
"durationMs": 3001
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "1 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": 1316
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on macos-aarch64",
"details": {
"commit": "unknown",
"current executable": "/Users/ruixingshi/.local/bin/codex",
"install method": "standalone (unix, package /Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin, bin /Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin/bin, resources /Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin/codex-resources, path /Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin/codex-path)",
"platform": "macos-aarch64",
"version": "0.144.4"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/Users/ruixingshi/.codex/packages/standalone/releases/0.144.4-aarch64-apple-darwin/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": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "/Users/ruixingshi/.codex/tmp/arg0/codex-arg0cxRfus/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/Users/ruixingshi/.codex (dir)",
"active rollout files": "3275 files, 7134655574 total bytes, 2178520 average bytes",
"archived rollout files": "15 files, 93993401 total bytes, 6266226 average bytes",
"goals DB": "/Users/ruixingshi/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/ruixingshi/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/ruixingshi/.codex/log (dir)",
"memories DB": "/Users/ruixingshi/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "/Users/ruixingshi/.codex (dir)",
"standalone release cache": "3 entries in /Users/ruixingshi/.codex/packages/standalone/releases",
"state DB": "/Users/ruixingshi/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 37852
},
"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": "3274",
"rollout DB active rows": "3275",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "15",
"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": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=3290",
"rollout DB rows": "3290",
"rollout DB scan cap reached": "false",
"rollout DB scan error sample": "/Users/ruixingshi/.codex/sessions/2026/06/02/rollout-2026-06-02T00-43-23-019e8411-8d19-7a00-ba25-d81fd7a19876.jsonl (empty session file)",
"rollout DB scan errors": "1",
"rollout DB sources": "vscode=2449, subagent:thread_spawn=371, unknown=336, exec=101, cli=33",
"rollout DB stale row sample": "/Users/ruixingshi/.codex/sessions/2026/04/02/rollout-2026-04-02T10-15-05-019d4bf9-0be7-74e2-8e33-1287c8256d84.jsonl",
"rollout DB stale rows": "1"
},
"issues": [
{
"severity": "warning",
"cause": "state DB rows point at missing or unusable rollout files",
"measured": "1 stale rows",
"expected": "every state DB rollout path is a file on disk",
"remedy": null,
"fields": []
},
{
"severity": "warning",
"cause": "rollout scan was incomplete or found bad files",
"measured": "1 scan errors, 0 malformed names, scan cap reached: false",
"expected": "rollout directories are fully scannable",
"remedy": "Check file permissions and unexpected files under CODEX_HOME sessions.",
"fields": []
}
],
"remediation": null,
"durationMs": 29578
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language zh-Hans-CN",
"details": {
"EDITOR": "not set",
"LC_CTYPE": "UTF-8",
"LESS": "set",
"PAGER": "set",
"VISUAL": "not set",
"os": "Mac OS 15.5.0 [64-bit]",
"os language": "zh-Hans-CN",
"os type": "Mac OS",
"os version": "15.5.0"
},
"remediation": null,
"durationMs": 4
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"TERM_PROGRAM": "WarpTerminal",
"color output": "enabled",
"effective locale": "UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Warp",
"terminal size": "180x67",
"terminal version": "v0.2026.07.15.08.55.stable_01"
},
"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": "cwd",
"terminal title project value": "codex-acp-ts-fix",
"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.144.4",
"check for update on startup": "true",
"last checked at": "2026-07-15T12:27:49.488181Z",
"latest version": "0.144.5",
"latest version status": "newer version is available",
"update action": "standalone installer",
"version cache": "/Users/ruixingshi/.codex/version.json"
},
"remediation": null,
"durationMs": 747
}
}
}
What issue are you seeing?
Hi! I noticed a mismatch between the app-server docs and the actual behavior.
The official docs show remote images like this:
{ "type": "image", "url": "https://.../design.png" }
Remote URL support does not currently work, so the docs example appears to be outdated.
What steps can reproduce the bug?
I tested it with two small scripts:
- Send a real remote PNG URL directly to
turn/start.
It fails with:
``text``
remote image URLs are not supported; use an inline data URL instead
node --input-type=module <<'EOF'
import { spawn } from "node:child_process";
import { createInterface } from "node:readline";
const IMAGE =
"https://raw.githubusercontent.com/github/explore/main/topics/typescript/typescript.png";
const PROMPT = "what's the img";
const app = spawn("codex", ["app-server"], {
stdio: ["pipe", "pipe", "ignore"],
});
const pending = new Map();
let id = 0;
createInterface({ input: app.stdout }).on("line", (line) => {
const message = JSON.parse(line);
const resolve = pending.get(message.id);
if (resolve) {
pending.delete(message.id);
resolve(message);
}
});
const send = (message) =>
app.stdin.write(JSON.stringify(message) + "\n");
const call = (method, params) =>
new Promise((resolve) => {
const requestId = ++id;
pending.set(requestId, resolve);
send({ id: requestId, method, params });
});
try {
// Initialize app-server.
await call("initialize", {
clientInfo: {
name: "image-test",
title: "Image Test",
version: "1.0.0",
},
});
send({ method: "initialized", params: {} });
const thread = await call("thread/start", {
ephemeral: true,
});
// Send the remote image URL directly.
const result = await call("turn/start", {
threadId: thread.result.thread.id,
input: [
{ type: "text", text: PROMPT },
{ type: "image", url: IMAGE },
],
});
console.log(JSON.stringify(result, null, 2));
} finally {
app.kill();
}
EOF
- Download the same image, convert it to a Base64 data URL, and send it again.
That works correctly, and Codex can identify the image.
node --input-type=module <<'EOF'
import { spawn } from "node:child_process";
import { createInterface } from "node:readline";
const REMOTE_IMAGE =
"https://raw.githubusercontent.com/github/explore/main/topics/typescript/typescript.png";
const PROMPT = "what's the img";
// Download and encode the image.
const download = await fetch(REMOTE_IMAGE);
if (!download.ok) {
throw new Error(`Download failed: HTTP ${download.status}`);
}
const mime = download.headers
.get("content-type")
?.split(";")[0] || "image/png";
const bytes = Buffer.from(await download.arrayBuffer());
const IMAGE = `data:${mime};base64,${bytes.toString("base64")}`;
const app = spawn("codex", ["app-server"], {
stdio: ["pipe", "pipe", "ignore"],
});
const pending = new Map();
let id = 0;
let answer = "";
let finish;
const completed = new Promise((resolve) => {
finish = resolve;
});
createInterface({ input: app.stdout }).on("line", (line) => {
const message = JSON.parse(line);
const resolve = pending.get(message.id);
if (resolve) {
pending.delete(message.id);
resolve(message);
return;
}
if (
message.method === "item/completed" &&
message.params.item.type === "agentMessage"
) {
answer = message.params.item.text;
}
if (message.method === "turn/completed") {
finish(message.params.turn);
}
});
const send = (message) =>
app.stdin.write(JSON.stringify(message) + "\n");
const call = (method, params) =>
new Promise((resolve) => {
const requestId = ++id;
pending.set(requestId, resolve);
send({ id: requestId, method, params });
});
try {
// Initialize app-server.
await call("initialize", {
clientInfo: {
name: "image-test",
title: "Image Test",
version: "1.0.0",
},
});
send({ method: "initialized", params: {} });
const thread = await call("thread/start", {
ephemeral: true,
});
// Send the inline Base64 image.
const started = await call("turn/start", {
threadId: thread.result.thread.id,
input: [
{ type: "text", text: PROMPT },
{ type: "image", url: IMAGE },
],
});
if (started.error) {
throw new Error(started.error.message);
}
const turn = await completed;
console.log("Turn status:", turn.status);
console.log("Answer:", answer);
} finally {
app.kill();
}
EOF
Tested with Codex CLI 0.144.4.
What is the expected behavior?
turn/start should accept remote HTTP/HTTPS image URLs as documented and pass the image to the model successfully.
Additional information
_No response_