Skip to content

Codex CLI 0.143.0 on Amazon Linux 2023 returns unsupported call: exec_command for basic shell commands #31611

Done

Description

@brunocunha00

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/[email protected] 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 warning
    • which bwrap -> /usr/bin/bwrap
    • bwrap --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/[email protected]
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: shell reports in newer app/tool paths
  • Linux exec_command failures 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.

Activity

  1. added
    bug
    CLI
    exec
    tool-calls
    on Jul 8, 2026
  2. github-actions commented on Jul 8, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. XxUnkn0wnxX commented on Jul 8, 2026

    @XxUnkn0wnxX

    I’m seeing what looks like the same regression on macOS, but with a slightly different rejected tool name.

    Environment

    • OS: macOS Big Sur 11.7.11
    • Architecture: macos-x86_64
    • Terminal: Apple Terminal
    • Codex CLI: 0.143.0
    • Install method: pnpm global
    • Codex path: /Users/<USER>/Library/pnpm/bin/codex
    • Model/provider failing: gpt-5.5 + openai provider / ChatGPT sign-in route
    • Auth mode: ChatGPT sign-in
    • Sandbox: workspace-write
    • Approval policy: on-request

    What happens

    Basic shell commands fail before execution.

    Minimal repro
    touch myfile.txt
    

    Codex responds with something like:

    I couldn’t create myfile.txt because the shell tool failed to launch.
    

    The command never runs and no file is created.

    Debug log evidence

    I enabled logging and reproduced the issue.

    Logging command
    RUST_LOG=debug codex -c log_dir=./codex-repro-log -m gpt-5.5
    Relevant redacted log excerpt
    Output item item=FunctionCall {
      name: "exec_command",
      namespace: Some("exec_command"),
      arguments: "",
      call_id: "REDACTED"
    }
    
    ToolCall: exec_commandexec_command {
      "cmd":"source \"$HOME/.zshrc\"\nprint -r -- \"$PATH\"\ntouch myfile.txt\nls -l myfile.txt",
      "shell":"/usr/local/bin/zsh",
      "login":false,
      "workdir":"/Users/<USER>/Desktop",
      "yield_time_ms":10000,
      "max_output_tokens":2000
    }
    
    event.name="codex.tool_result"
    tool_name=exec_commandexec_command
    call_id=REDACTED
    duration_ms=0
    success=false
    output=unsupported call: exec_commandexec_command
    app.version=0.143.0
    auth_mode="Chatgpt"
    originator=codex-tui
    terminal.type=Apple_Terminal/440
    model=gpt-5.5
    slug=gpt-5.5
    
    ERROR codex_core::tools::router: error=unsupported call: exec_commandexec_command
    

    So in my case, the model output starts as name = exec_command and namespace = exec_command, but the routed tool call becomes exec_commandexec_command. The local router then rejects it before shell execution.

    Behavior matrix

    Working / failing combinations
    gpt-5.4 + ChatGPT sign-in route = works
    gpt-5.5 + openai-responses / API key route = works
    gpt-5.5 + ChatGPT sign-in route = fails
    

    I also tested disabling unified_exec and memories, 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 the gpt-5.5 + ChatGPT sign-in route. The issue here reports unsupported call: exec_command; mine reports unsupported 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.

  4. XxUnkn0wnxX commented on Jul 8, 2026

    @XxUnkn0wnxX

    Update: rolling back from Codex CLI 0.143.0 to 0.142.5 fixes the issue for me.

    Working/failing matrix:

    0.143.0 + gpt-5.5 + ChatGPT sign-in = fails with unsupported call: exec_commandexec_command
    0.142.5 + gpt-5.5 + ChatGPT sign-in = works
    0.143.0 + gpt-5.4 + ChatGPT sign-in = works
    0.143.0 + gpt-5.5 + openai-responses / API key = works
    

    So this looks even more like a 0.143.0 regression in the ChatGPT-auth shell/tool routing path, rather than a local config/sandbox issue.

  5. BirgerMarius commented on Jul 8, 2026

    @BirgerMarius

    I can reproduce what appears to be the same issue on Debian 13 using Codex CLI 0.143.0.

    Environment:

    • Debian 13
    • VS Code Remote SSH
    • ChatGPT Go authentication
    • bubblewrap 0.11.0 installed
    • Trusted Git workspace

    In my case the router reports:

    ERROR codex_core::tools::router:
    error=unsupported call: exec_commandexec_command
    

    This happens both in:

    • interactive codex
    • codex exec

    For example:

    codex exec "List the files in the current directory."

    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 update also did not resolve the issue.

  6. vtu81 commented on Jul 8, 2026

    @vtu81

    Suffering from the same issue -- "the shell tool returned an internal “unsupported call” error." (Triedls and pwd on 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/

  7. boomerangBS commented on Jul 8, 2026

    @boomerangBS

    Same issue on fedora 45 amd64, switching back to 0.142.5 fixed the issue

  8. sumuen commented on Jul 9, 2026

    @sumuen

    Same issue on ubuntu26.04

  9. yinzhenyu-su commented on Jul 9, 2026

    @yinzhenyu-su

    Same issue on MacOS 26.5.2

  10. filevich commented on Jul 9, 2026

    @filevich

    Same issue. macOS 26.5.2, codex v0.143.0.

    Image
  11. XxUnkn0wnxX commented on Jul 11, 2026

    @XxUnkn0wnxX

    I think 0.144.0 fixed it, been using 0.144.1 all day, no issues..

  12. etraut-openai commented on Nov 29, 2026

    @etraut-openai
    Contributor

    (Response from codex)

    On Linux with 0.172.0 I verified that exec_command works both on its own and under the functions namespace. The latter failed on 0.143.0. Given the earlier report of recovery on 0.144.1, I’m closing the original regression. The distinct exec_commandexec_command error still reproduces and is tracked in #31665.

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

    CLIbugexectool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions