Regression in 0.147.0: upgrade leaves all tools unavailable with existing code_mode_host=false
What version of Codex CLI is running?
0.147.0
What subscription do you have?
Pro 20x
Which model were you using?
5.6 Sol
What platform is your computer?
Darwin 25.5.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Apple Terminal 470.2, no multiplexer
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1786075741s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.147.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/<redacted>/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/<redacted>/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/<redacted>/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/<redacted>/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/<redacted>/.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/<redacted>/.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/<redacted>/.codex",
"config.toml": "/Users/<redacted>/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/<redacted>",
"enabled feature flags": "shell_tool, view_image, 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, 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, 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": "39",
"log dir": "/Users/<redacted>/.codex/log",
"mcp servers": "1",
"model": "gpt-5.6-sol",
"model provider": "openai",
"sqlite home": "/Users/<redacted>/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.52.0",
"details": {
"PATH git #1": "/opt/homebrew/bin/git",
"PATH git #2": "/usr/bin/git",
"PATH git entries": "2",
"git build options": "git version 2.52.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; 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.52.0",
"repo detected": "false",
"selected git": "/opt/homebrew/bin/git"
},
"remediation": null,
"durationMs": 99
},
"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.147.0, bin /opt/homebrew/Caskroom/codex/0.147.0/bin, resources /opt/homebrew/Caskroom/codex/0.147.0/codex-resources, path /opt/homebrew/Caskroom/codex/0.147.0/codex-path)",
"managed by bun": "false",
"managed by npm": "false",
"managed by pnpm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 3
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "1",
"disabled servers": "0",
"streamable_http servers": "1"
},
"remediation": null,
"durationMs": 166
},
"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": 412
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv6",
"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": 597
},
"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.147.0, bin /opt/homebrew/Caskroom/codex/0.147.0/bin, resources /opt/homebrew/Caskroom/codex/0.147.0/codex-resources, path /opt/homebrew/Caskroom/codex/0.147.0/codex-path)",
"platform": "macos-aarch64",
"version": "0.147.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/opt/homebrew/Caskroom/codex/0.147.0/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/<redacted>/.codex/tmp/arg0/codex-arg0m59IMe/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/<redacted>/.codex (dir)",
"active rollout files": "879 files, 3719187789 total bytes, 4231157 average bytes",
"archived rollout files": "36 files, 186410422 total bytes, 5178067 average bytes",
"goals DB": "/Users/<redacted>/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/<redacted>/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/<redacted>/.codex/log (dir)",
"memories DB": "/Users/<redacted>/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"queue DB": "/Users/<redacted>/.codex/queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "/Users/<redacted>/.codex (dir)",
"state DB": "/Users/<redacted>/.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "/Users/<redacted>/.codex/thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 1016
},
"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": "849",
"rollout DB active rows": "849",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "36",
"rollout DB archived rows": "36",
"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=885",
"rollout DB rows": "885",
"rollout DB scan cap reached": "false",
"rollout DB scan error sample": [
"/Users/<redacted>/.codex/sessions/2025/08/31/rollout-2025-08-31T23-11-47-e1ee9577-18a3-441b-a465-88df3bfcff75.jsonl (rollout at /Users/<redacted>/.codex/sessions/2025/08/31/rollout-2025-08-31T23-11-47-e1ee9577-18a3-441b-a465-88df3bfcff75.jsonl has no usable header record)",
"/Users/<redacted>/.codex/sessions/2025/09/14/rollout-2025-09-14T13-50-17-c18381ae-7cbd-4b3f-b8c5-20bbfdd430c1.jsonl (rollout at /Users/<redacted>/.codex/sessions/2025/09/14/rollout-2025-09-14T13-50-17-c18381ae-7cbd-4b3f-b8c5-20bbfdd430c1.jsonl has no usable header record)",
"/Users/<redacted>/.codex/sessions/2025/09/13/rollout-2025-09-13T00-04-03-131c17bc-6b50-4e13-9274-f7739500c8de.jsonl (rollout at /Users/<redacted>/.codex/sessions/2025/09/13/rollout-2025-09-13T00-04-03-131c17bc-6b50-4e13-9274-f7739500c8de.jsonl has no usable header record)",
"/Users/<redacted>/.codex/sessions/2025/09/13/rollout-2025-09-13T00-19-32-5da5dd11-c205-4e01-81de-e0c6b7a6ece0.jsonl (rollout at /Users/<redacted>/.codex/sessions/2025/09/13/rollout-2025-09-13T00-19-32-5da5dd11-c205-4e01-81de-e0c6b7a6ece0.jsonl has no usable header record)",
"/Users/<redacted>/.codex/sessions/2025/09/13/rollout-2025-09-13T10-37-31-f4e3cf96-4e58-4fab-b086-a26f2cfb2fab.jsonl (rollout at /Users/<redacted>/.codex/sessions/2025/09/13/rollout-2025-09-13T10-37-31-f4e3cf96-4e58-4fab-b086-a26f2cfb2fab.jsonl has no usable header record)"
],
"rollout DB scan errors": "30",
"rollout DB sources": "cli=439, subagent:thread_spawn=215, subagent:other=141, vscode=90",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout scan was incomplete or found bad files",
"measured": "30 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": 436
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"EDITOR": "not set",
"LANG": "en_US.UTF-8",
"VISUAL": "not set",
"os": "Mac OS 26.5.2 [64-bit]",
"os language": "en-US",
"os type": "Mac OS",
"os version": "26.5.2"
},
"remediation": null,
"durationMs": 2
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"TERM_PROGRAM": "Apple_Terminal",
"color output": "disabled (stdout is not a terminal)",
"effective locale": "en_US.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "false",
"terminal": "Apple Terminal",
"terminal size": "80x24",
"terminal version": "470.2"
},
"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": "julian",
"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.146.1",
"check for update on startup": "true",
"dismissed version": "0.144.6",
"last checked at": "2026-08-06T19:48:19.257297Z",
"latest version": "0.147.0",
"latest version status": "current version is not older",
"update action": "brew upgrade --cask codex",
"version cache": "/Users/<redacted>/.codex/version.json"
},
"remediation": null,
"durationMs": 53
}
}
}
What issue are you seeing?
This is an upgrade regression.
Immediately before upgrading, Codex tool execution worked normally with the same user configuration. I then upgraded the Homebrew cask to Codex CLI 0.147.0. Without intentionally changing the configuration, repository, shell, or authentication state, every tool-backed operation began failing before execution.
The existing configuration already contained:
```toml
[features]
code_mode_host = false
After upgrading to Codex CLI 0.147.0 through the Homebrew cask, Codex started normally and accepted prompts even though my existing configuration contained:
``toml``
[features]
code_mode_host = false
Any prompt requiring a shell, filesystem, GitHub, or documentation tool then failed before the requested operation executed.
For example, asking Codex to inspect the current repository produced:
``textfeatures.code_mode_host
Code Mode is unavailable because code-mode host is disabled.
Code mode will fail closed; enable and installcodex-code-mode-host
.``
The requested shell command never ran.
The issue is not that an explicit false setting should necessarily be ignored. The issue is that Codex began a session whose available tool path depended on a component that the effective configuration had disabled. There was no startup validation, supported fallback, or actionable preflight warning.
What steps can reproduce the bug?
- Install Codex CLI 0.147.0 through the Homebrew cask on macOS ARM64.
- Add the following to
~/.codex/config.toml:
``toml``
[features]
code_mode_host = false
- Launch Codex normally:
``bash``
codex
- Ask it to perform any tool-backed operation, for example:
``textpwd
Run and report its exact output.``
- Observe that Codex accepts the prompt but fails before executing the
command because the Code Mode host is disabled.
The same behavior occurred for filesystem inspection and other tool-backed
operations.
What is the expected behavior?
Codex should validate its effective tool configuration before beginning a session.
If the selected tool plan requires Code Mode while code_mode_host is
explicitly disabled, Codex should either:
- stop during startup with an actionable configuration error;
- select a supported tool runner that does not require the disabled host; or
- avoid advertising or attempting unavailable tools.
It should not begin an apparently functional coding session when every tool-
backed operation is guaranteed to fail.
Additional information
_No response_
2 Comments
I traced this to the selected model using tool_mode = code_mode_only while ThreadManager installs DisabledCodeModeSessionProvider when code_mode_host is false. effective_tool_mode only falls back for CodeMode, not CodeModeOnly, and the existing integration test intentionally preserves that fail-closed state.
I can prepare a focused fix and regression test if you’re willing to invite an external PR.
Additional reproduction from Windows/npm, originally reported in #37410:
0.147.0withgpt-5.6-solproduces no tool call; the Codex transport trace shows the serialized Responses request already contains"tools": [].0.146.1restores shell tool calls.0.147.0-alpha.6.5also works with the same model/provider./goalmode, the missing tools also removeupdate_goal, causing repeated automatic continuations until the goal is manually paused.This supports a
0.147.0model tool-mode resolution regression rather than an MCP, shell, or upstream provider failure.