Skip to content

0.157.0 background server compatibility check fails when workspace_dependencies is enabled #48160

Closed

Description

@seankwalker

What version of Codex CLI is running?

0.157.0

What subscription do you have?

ChatGPT Pro

Which model were you using?

gpt-6-astra

What platform is your computer?

Darwin 25.6.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Ghostty, inside tmux 3.7b

Codex doctor report

{ "schemaVersion": 1, "generatedAt": "1790360572s since unix epoch", "overallStatus": "warning", "codexVersion": "0.157.0", "checks": { "app_server.status": { "id": "app_server.status", "category": "app-server", "status": "ok", "summary": "background server is running", "details": { "app-server version": "0.157.0", "control socket": "/Users/sean/.codex/app-server-control/app-server-control.sock", "daemon state dir": "/Users/sean/.codex/app-server-daemon", "dedicated pid file": "/Users/sean/.codex/app-server-daemon/daemon.pid (file)", "dedicated update-loop pid file": "/Users/sean/.codex/app-server-daemon/daemon-updater.pid (file)", "mode": "ephemeral", "pid file": "/Users/sean/.codex/app-server-daemon/app-server.pid (missing)", "settings": "/Users/sean/.codex/app-server-daemon/settings.json (missing)", "status": "running", "update-loop pid file": "/Users/sean/.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/sean/.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": "warning", "summary": "config loaded", "details": { "CODEX_HOME": "/Users/sean/.codex", "active thread overrides": "not inspected", "config.toml": "/Users/sean/.codex/config.toml", "config.toml parse": "ok", "configuration load ms": "3", "configuration scope": "invocation config, including cloud-managed policy", "cwd": "/Users/sean", "enabled feature flags": "daemon_auto_start, shell_tool, view_image, sleep_tool, unified_exec, unified_exec_tty, unified_exec_zsh_fork, shell_snapshot, content_item_kinds, code_mode_host, terminal_resize_reflow, sqlite, hooks, enable_request_compression, unbounded_connection_retries, worktrees, system_proxy_fallback, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, in_app_chat, in_app_dictation, in_app_local_automation, in_app_updates, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, item_ids, skill_mcp_dependency_install, skill_search, mentions_v2, steer, guardian_approval, guardianv2.thread_context, guardian_reuse_parent_compaction, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, fast_mode, realtime_conversation, tui_app_server, compaction_image_budget, workspace_dependencies", "feature flag overrides": "none", "feature flags enabled": "52", "log dir": "/Users/sean/.codex/log", "mcp servers": "3", "model": "gpt-6-astra", "model provider": "openai", "sqlite home": "/Users/sean/.codex", "startup warning": "Codex is ignoring 1 unrecognized configuration setting. Check for typos or deprecated settings.\n user (/Users/sean/.codex/config.toml): \`features.experimental_use_rmcp_client\` is ignored.", "startup warning MCP": "1", "startup warning deprecated": "1", "startup warning hooks": "0", "startup warning plugins": "0", "startup warning skills": "0", "startup warnings": "1" }, "remediation": null, "durationMs": 0 }, "git.environment": { "id": "git.environment", "category": "git", "status": "ok", "summary": "git executable found; execution not verified", "details": { "PATH git #1": "/usr/bin/git", "PATH git entries": "1", "git execution": "not inspected (PATH helpers are not executed)", "repo detected": "false", "selected git": "/usr/bin/git" }, "remediation": null, "durationMs": 0 }, "installation": { "id": "installation", "category": "install", "status": "ok", "summary": "installation looks consistent", "details": { "PATH codex #1": "/opt/homebrew/bin/codex", "current executable": "/opt/homebrew/bin/codex", "install context": "brew (package /opt/homebrew/Caskroom/codex/0.157.0, bin /opt/homebrew/Caskroom/codex/0.157.0/bin, resources /opt/homebrew/Caskroom/codex/0.157.0/codex-resources, path /opt/homebrew/Caskroom/codex/0.157.0/codex-path)", "managed by Vite+": "false", "managed by bun": "false", "managed by npm": "false", "managed by pnpm": "false", "managed package root": "not set" }, "remediation": null, "durationMs": 0 }, "mcp.config": { "id": "mcp.config", "category": "mcp", "status": "ok", "summary": "MCP configuration is locally consistent", "details": { "configured servers": "3", "disabled servers": "0", "streamable_http servers": "3" }, "remediation": null, "durationMs": 534 }, "network.env": { "id": "network.env", "category": "network", "status": "ok", "summary": "network-related environment looks readable", "details": { "managed proxy": "not configured", "proxy env vars": "none", "respect system proxy": "disabled", "system proxy": "direct" }, "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 inference URL": "[https://chatgpt.com/backend-api/](https://chatgpt.com/backend-api/)\<redacted> reachable (HTTP 405)", "reachability mode": "ChatGPT auth" }, "remediation": null, "durationMs": 348 }, "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", "provider name": "OpenAI", "proxy env vars": "none", "reasoning header": "false", "server model present": "false", "supports websockets": "true", "wire API": "responses" }, "remediation": null, "durationMs": 721 }, "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 (package /opt/homebrew/Caskroom/codex/0.157.0, bin /opt/homebrew/Caskroom/codex/0.157.0/bin, resources /opt/homebrew/Caskroom/codex/0.157.0/codex-resources, path /opt/homebrew/Caskroom/codex/0.157.0/codex-path)", "platform": "macos-aarch64", "version": "0.157.0" }, "remediation": null, "durationMs": 0 }, "runtime.search": { "id": "runtime.search", "category": "search", "status": "ok", "summary": "search command found (bundled); execution not verified", "details": { "search command": "/opt/homebrew/Caskroom/codex/0.157.0/codex-path/rg", "search command readiness": "file exists", "search provider": "bundled" }, "remediation": null, "durationMs": 0 }, "sandbox.filesystem_paths": { "id": "sandbox.filesystem_paths", "category": "sandbox", "status": "ok", "summary": "no explicit filesystem paths to probe", "details": {}, "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", "denied-read glob rules": "0", "denied-read rules": "0", "execve wrapper helper": "/Users/sean/.codex/tmp/arg0/codex-arg04xNKcx/codex-execve-wrapper", "filesystem sandbox": "restricted", "glob scan max depth": "unbounded", "managed filesystem source": "none", "network sandbox": "restricted" }, "remediation": null, "durationMs": 0 }, "security.endpoint": { "id": "security.endpoint", "category": "security", "status": "ok", "summary": "no supported endpoint protection detected", "details": { "endpoint products": "none detected" }, "remediation": null, "durationMs": 8 }, "state.paths": { "id": "state.paths", "category": "state", "status": "ok", "summary": "state paths and databases are inspectable", "details": { "CODEX_HOME": "/Users/sean/.codex (dir)", "active rollout files": "5613 files, 19565833047 total bytes, 3485806 average bytes", "archived rollout files": "1 files, 81410 total bytes, 81410 average bytes", "goals DB": "/Users/sean/.codex/goals_1.sqlite (file)", "goals DB integrity": "ok", "log DB": "/Users/sean/.codex/logs_2.sqlite (file)", "log DB integrity": "ok", "log dir": "/Users/sean/.codex/log (missing)", "memories DB": "/Users/sean/.codex/memories_1.sqlite (file)", "memories DB integrity": "ok", "memories v2 DB": "/Users/sean/.codex/memories_v2_1.sqlite (missing)", "memories v2 DB integrity": "skipped (missing)", "queue DB": "/Users/sean/.codex/queue_1.sqlite (file)", "queue DB integrity": "ok", "sqlite home": "/Users/sean/.codex (dir)", "state DB": "/Users/sean/.codex/state_5.sqlite (file)", "state DB integrity": "ok", "thread history DB": "/Users/sean/.codex/thread_history_1.sqlite (file)", "thread history DB integrity": "ok" }, "remediation": null, "durationMs": 601 }, "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": "5613", "rollout DB active rows": "5613", "rollout DB archive mismatches": "0", "rollout DB archived files": "1", "rollout DB archived rows": "1", "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": "1", "rollout DB missing archived sample": "/Users/sean/.codex/archived_sessions/archived_sessions/rollout-2026-07-09T11-29-38-019f4824-7b4f-7a22-94c6-912a46586055.jsonl", "rollout DB model providers": "openai=5614", "rollout DB rows": "5614", "rollout DB scan cap reached": "false", "rollout DB scan errors": "0", "rollout DB sources": "subagent\:thread_spawn=5405, vscode=99, cli=89, exec=20, subagent\:other=1", "rollout DB stale row sample": "/Users/sean/.codex/archived_sessions/rollout-2026-07-09T11-29-38-019f4824-7b4f-7a22-94c6-912a46586055.jsonl", "rollout DB stale rows": "1" }, "issues": [ { "severity": "warning", "cause": "rollout files are missing from the state DB", "measured": "0 active, 1 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": "1 stale rows", "expected": "every state DB rollout path is a file on disk", "remedy": null, "fields": [] } ], "remediation": null, "durationMs": 862 }, "system.disk": { "id": "system.disk", "category": "disk", "status": "ok", "summary": "sufficient free disk space (1553.2 GiB)", "details": { "CODEX_HOME available": "1553.2 GiB", "failure threshold": "1.0 GiB", "warning threshold": "5.0 GiB", "worktree available": "1553.2 GiB" }, "remediation": null, "durationMs": 0 }, "system.environment": { "id": "system.environment", "category": "system", "status": "ok", "summary": "OS language en-US", "details": { "EDITOR": "set", "LANG": "en_US.UTF-8", "LC_ALL": "en_US.UTF-8", "LC_CTYPE": "en_US.UTF-8", "LESS": "set", "PAGER": "set", "VISUAL": "not set", "os": "Mac OS 26.6.2 [64-bit]", "os language": "en-US", "os type": "Mac OS", "os version": "26.6.2" }, "remediation": null, "durationMs": 1 }, "terminal.env": { "id": "terminal.env", "category": "terminal", "status": "ok", "summary": "terminal metadata was detected", "details": { "CLICOLOR": "1", "COLORTERM": "truecolor", "TERMINFO": "/Applications/Ghostty.app/Contents/Resources/terminfo (dir)", "color output": "disabled (stdout is not a terminal)", "effective locale": "en_US.UTF-8", "multiplexer": "tmux 3.7b", "stderr is terminal": "true", "stdin is terminal": "true", "stdout is terminal": "false", "terminal": "Ghostty", "terminal size": "255x65", "tmux options": "not inspected (PATH helpers are not executed)" }, "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": "sean", "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.157.0", "check for update on startup": "true", "last checked at": "2026-09-25T18:08:37.321251Z", "latest version": "0.157.0", "latest version status": "current version is not older", "update action": "brew upgrade --cask codex", "version cache": "/Users/sean/.codex/version.json" }, "remediation": null, "durationMs": 265 } } }

What issue are you seeing?

After upgrading to Codex CLI 0.157.0, starting codex with the background server enabled consistently shows the following compatibility error:

Cannot use the background server
Experimental feature request failed

The available options are:

  1. Run without daemon this time
  2. Cancel

The UI also says:

Restart with these settings (disabled)
Restart cannot resolve this compatibility check.

codex doctor --all --json reports that the background server is running and that both the CLI and app-server are version 0.157.0.

I isolated the problem to the workspace_dependencies feature. Disabling only that feature and restarting the daemon makes normal daemon-backed Codex sessions work again:

codex features disable workspace_dependencies
codex app-server daemon stop
codex

With workspace_dependencies disabled, Codex starts successfully using the background server, including the new detach/reconnect behavior when exiting a session.

What steps can reproduce the bug?

  1. Install/upgrade to Codex CLI 0.157.0.

  2. Have the following features enabled:

    • daemon_auto_start
    • workspace_dependencies
  3. Stop any existing background server to ensure a fresh start:

    codex app-server daemon stop
    

Run:

codex

Codex displays:

Cannot use the background server
Experimental feature request failed

and says that restarting cannot resolve the compatibility check.

Disable only workspace_dependencies:

codex features disable workspace_dependencies
codex app-server daemon stop

Run codex again.

Result: Codex now starts successfully with the background daemon.

Relevant doctor state before applying the workaround:

Codex CLI: 0.157.0
app-server: 0.157.0
background server status: running
daemon_auto_start: enabled
workspace_dependencies: enabled
feature flag overrides: none
install: Homebrew, macOS Apple Silicon

What is the expected behavior?

Codex should be able to start and attach to the 0.157.0 background server when workspace_dependencies is enabled.

Additional information

No response

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added
    CLI
    app-server
    on Sep 25, 2026
  3. kuhku commented on Sep 27, 2026

    @kuhku

    This also occurs on Codex CLI 0.157.1 (macOS arm64, standalone install, Ghostty). codex doctor reports that the background server is running and is also version 0.157.1. workspace_dependencies is enabled. Launching codex shows “Cannot use the background server / Experimental feature request failed.” I have not tested disabling workspace_dependencies yet.

  4. goodman-oai commented on Nov 16, 2026

    @goodman-oai
    Contributor

    The fix in #52648 shipped in 0.163.0. With workspace_dependencies enabled in saved configuration, plain codex now skips the compatibility request that failed here. I verified on macOS with 0.169.0 that a turn completed on the already-running managed daemon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIapp-serverbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions