can't open codex cli!
Open 💬 6 comments Opened May 22, 2026 by uuuuu-diwu
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.133.0
What subscription do you have?
PRO
Which model were you using?
5.5
What platform is your computer?
linux
What terminal emulator and version are you using (if applicable)?
zsh
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1779431932s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.133.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is running",
"details": {
"control socket": "/home/wudi.hust/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/home/wudi.hust/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/home/wudi.hust/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/home/wudi.hust/.codex/app-server-daemon/settings.json (missing)",
"status": "running",
"update-loop pid file": "/home/wudi.hust/.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/wudi.hust/.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/wudi.hust/.codex",
"config.toml": "/home/wudi.hust/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/data00/home/wudi.hust/work_space/paper_read",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, memories, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, plugin_hooks, 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, prevent_idle_sleep=true",
"feature flags enabled": "30",
"log dir": "/home/wudi.hust/.codex/log",
"mcp servers": "0",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "/home/wudi.hust/.codex"
},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/home/wudi.hust/.nvm/versions/node/v24.13.0/bin/codex",
"current executable": "/data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install context": "npm (package /data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /data00/home/wudi.hust/.nvm/versions/node/v24.13.0/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": "/data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex",
"npm update target": "/data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex"
},
"remediation": null,
"durationMs": 68
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"remediation": null,
"durationMs": 0
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"proxy env vars present": "NO_PROXY, http_proxy, https_proxy, no_proxy"
},
"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": 447
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "1 IPv4, 1 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 present": "NO_PROXY, http_proxy, https_proxy, no_proxy",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 898
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on linux-x86_64",
"details": {
"commit": "unknown",
"current executable": "/data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
"install method": "npm (package /data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /data00/home/wudi.hust/.nvm/versions/node/v24.13.0/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.133.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/data00/home/wudi.hust/.nvm/versions/node/v24.13.0/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": "OnRequest",
"codex-linux-sandbox helper": "/home/wudi.hust/.codex/tmp/arg0/codex-arg09Ia6Lu/codex-linux-sandbox",
"execve wrapper helper": "/home/wudi.hust/.codex/tmp/arg0/codex-arg09Ia6Lu/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": "/home/wudi.hust/.codex (dir)",
"active rollout files": "123 files, 382038874 total bytes, 3106007 average bytes",
"archived rollout files": "27 files, 133409178 total bytes, 4941080 average bytes",
"goals DB": "/home/wudi.hust/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/home/wudi.hust/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/home/wudi.hust/.codex/log (dir)",
"sqlite home": "/home/wudi.hust/.codex (dir)",
"state DB": "/home/wudi.hust/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 3560
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"SSH_CLIENT": "present",
"SSH_CONNECTION": "present",
"TERM_PROGRAM": "vscode",
"VSCODE_INJECTION": "present",
"VSCODE_IPC_HOOK_CLI": "present",
"color output": "enabled",
"effective locale": "en_US.UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "VS Code",
"terminal size": "225x58",
"terminal version": "1.118.1"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.133.0",
"check for update on startup": "true",
"last checked at": "2026-05-22T05:54:27.505435099Z",
"latest version": "0.133.0",
"latest version status": "current version is not older",
"npm update target": "/data00/home/wudi.hust/.nvm/versions/node/v24.13.0/lib/node_modules/@openai/codex",
"update action": "npm install -g @openai/codex",
"version cache": "/home/wudi.hust/.codex/version.json"
},
"remediation": null,
"durationMs": 764
}
}
}
What issue are you seeing?
paper_read git:(main) ✗ codex
Error: Failed to start a fresh session through the app server: thread/start failed during TUI bootstrap: thread/start failed: Invalid request: invalid type: string ":workspace", expected internally tagged enum PermissionProfileSelectionParams (code -32600)
➜ paper_read git:(main) ✗
➜ paper_read git:(main) ✗
➜ paper_read git:(main) ✗ codex --version
codex-cli 0.133.0
What steps can reproduce the bug?
just run codex command
What is the expected behavior?
_No response_
Additional information
_No response_
6 Comments
I can reproduce this as well.
Environment:
Error:
Failed to start a fresh session through the app server: thread/start failed during TUI bootstrap: thread/start failed: Invalid request: invalid type: string ":workspace", expected internally tagged enum PermissionProfileSelectionParams (code -32600)
This looks like a regression in the permission profile / app-server protocol migration introduced around 0.133.0.
same error, also codex-cli 0.133.0
Same error after implementing customized permissions profile in config.toml. Codex doctor report:
I ran into this issue. I updated brew via codex while I had a remote control session active in the codex app elsewhere.
killing all codex processes fixed the issue for me:
This looks like a stale/incompatible app-server process rather than a bad permissions config. It looks like you're using experimental features, which can change during development and introduce compatibility problems like this.
In 0.133.0 the TUI sends
thread/start.permissionsas a plain profile id string, e.g.":workspace". The error says the running app-server expected the olderPermissionProfileSelectionParamsshape, so the 0.133.0 CLI is likely connecting to an older already-running app-server via the local control socket.Workaround for now:
If that does not work, kill the stale app-server processes and start codex again:
I just ran into this and suspect it was caused by an app-server being managed by an (outdated) remote Codex app. When I updated the codex CLI on my remote machine, it refused to start until I killed the app server manually using @etraut-openai's instructions above.
I suspect (but haven't verified) that this would've also been solved if I updated the Codex app and restarted my ssh-managed app-server through that.