Codex CLI 0.143.0 on Amazon Linux 2023 returns `unsupported call: exec_command` for basic shell commands
Summary
Codex CLI 0.143.0 on Amazon Linux 2023 fails to execute even basic shell commands. The failure occurs before the command starts and happens even when approvals and sandbox are bypassed.
Downgrading to @openai/codex@0.140.0 fixes the issue in the same environment.
Environment
- OS: Amazon Linux 2023
- Architecture:
linux-x86_64 - Codex CLI version with issue:
0.143.0 - Install method: npm global install
- Node version:
v22.22.1 - Shell/user context: SSH terminal as a regular Linux user
bubblewrap: installed successfully after initial warningwhich bwrap->/usr/bin/bwrapbwrap --version->bubblewrap 0.10.0
What happened
Codex starts normally and codex doctor reports no hard failures. However, any agent shell command fails with:
ERROR codex_core::tools::router: error=unsupported call: exec_command
The command itself does not run. This reproduces even for pwd.
Commands used to reproduce
codex exec --skip-git-repo-check --dangerously-bypass-approvals-and-sandbox \
"Execute somente pwd. Não execute mais nada."
Observed result:
OpenAI Codex v0.143.0
workdir: /home/ec2-user
model: gpt-5.5
provider: openai
approval: never
sandbox: danger-full-access
user
Execute somente pwd. Não execute mais nada.
ERROR codex_core::tools::router: error=unsupported call: exec_command
A chamada não foi aceita pela interface e o comando não chegou a ser executado.
The same behavior was observed in the interactive TUI when asking Codex to run docker ps or pwd.
codex doctor notes
codex doctor --ascii shows:
- runtime: OK
- install: OK
- auth: OK
- websocket: OK
- sandbox: OK after installing bubblewrap
- state DBs: OK
- only warning: optional MCP configuration issue
The MCP warning was tested by removing the failing linear MCP server. The exec_command failure persisted before rollback.
Expected behavior
Codex should execute the requested shell command, especially when using danger-full-access and no approval prompt.
For this repro, expected output would simply be:
/home/ec2-user
Actual behavior
Codex fails before command execution:
unsupported call: exec_command
No command is executed.
Workaround
Downgrading fixes the issue:
npm uninstall -g @openai/codex
npm install -g @openai/codex@0.140.0
codex --version
After rollback to 0.140.0, basic command execution works again in the same Amazon Linux 2023 environment.
Related issues
This looks similar in symptom pattern to prior tool-routing / unsupported-call reports, but the affected version/environment differs:
unsupported call: shellreports in newer app/tool paths- Linux
exec_commandfailures reported in earlier CLI versions
The key distinction here is that the regression was seen on 0.143.0 and fixed by rolling back to 0.140.0.
10 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I’m seeing what looks like the same regression on macOS, but with a slightly different rejected tool name.
Environment
macos-x86_640.143.0/Users/<USER>/Library/pnpm/bin/codexgpt-5.5+openaiprovider / ChatGPT sign-in routeworkspace-writeon-requestWhat happens
Basic shell commands fail before execution.
<details>
<summary>Minimal repro</summary>
Codex responds with something like:
The command never runs and no file is created.
</details>
Debug log evidence
I enabled logging and reproduced the issue.
<details>
<summary>Logging command</summary>
</details>
<details>
<summary>Relevant redacted log excerpt</summary>
</details>
So in my case, the model output starts as
name = exec_commandandnamespace = exec_command, but the routed tool call becomesexec_commandexec_command. The local router then rejects it before shell execution.Behavior matrix
<details>
<summary>Working / failing combinations</summary>
</details>
I also tested disabling
unified_execandmemories, but the same issue still happened.Notes
This does not look like a shell, sandbox, approval, or project rules denial, because the command is rejected before execution by the tool router.
It looks like a tool-schema / routing mismatch in Codex CLI
0.143.0, specifically on thegpt-5.5+ ChatGPT sign-in route. The issue here reportsunsupported call: exec_command; mine reportsunsupported call: exec_commandexec_command, but both seem to be the same class of regression: shell tool calls are being emitted/routed in a form the local CLI does not support.Update: rolling back from Codex CLI
0.143.0to0.142.5fixes the issue for me.Working/failing matrix:
So this looks even more like a
0.143.0regression in the ChatGPT-auth shell/tool routing path, rather than a local config/sandbox issue.I can reproduce what appears to be the same issue on Debian 13 using Codex CLI 0.143.0.
Environment:
In my case the router reports:
This happens both in:
codexcodex execFor example:
The shell tool never executes and Codex responds that the shell tool is unavailable.
Installing bubblewrap did not change the behavior.
Updating Codex via
codex updatealso did not resolve the issue.Suffering from the same issue -- "the shell tool returned an internal “unsupported call” error." (Tried
lsandpwdon GPT-5.5)Also, "rolling back from Codex CLI 0.143.0 to 0.142.5" did not completely solve the problem for me -- it only fixes this issue in non-interactive mode (
codex exec), but not otherwise.----
Update: It works for interactive + non-interactive modes now after restarting the app-server via
rm -rf ~/.codex/app-server-daemon/Same issue on fedora 45 amd64, switching back to 0.142.5 fixed the issue
Same issue on ubuntu26.04
Same issue on MacOS 26.5.2
Same issue. macOS 26.5.2, codex v0.143.0.
<img width="819" height="263" alt="Image" src="https://github.com/user-attachments/assets/ca8d0dae-7c0d-484c-aaf5-145007f3c6df" />
I think
0.144.0fixed it, been using0.144.1all day, no issues..