Skip to content

CLI shell/tool execution fails across sessions with exit code -1 and empty output #16619

Open

Description

@GarrettS

What version of Codex CLI is running?

codex-cli 0.118.0 / codex-cli 0.117.0

What subscription do you have?

$20 plan

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Darwin 22.6.0 x86_64 i386

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

Mac Terminal

What issue are you seeing?

What version of Codex is running?

Codex is unable to determine from affected sessions because basic shell execution is failing there. I can provide the exact version separately if needed. But codex-cli 0.118.0 and codex-cli 0.117.0 both exhibit the problem.

Which model were you using?

GPT-5 family coding model in Codex CLI - codex-cli 0.118.0 / codex-cli 0.117.0

What platform is your computer?

macOS 13.x, bash shell

What issue are you seeing?

Basic local shell execution is broken across all of my coding sessions, not just one. Trivial commands like pwd, ls, git status, and sed fail with exit code -1 and no meaningful stdout/stderr.

Was working fine yesterday. Today it is broken.

What steps can reproduce the bug?

Steps to reproduce

Start a coding session and ask the agent to run simple local commands such as:

  • pwd
  • ls
  • git status
  • sed -n '1,20p' <file>

What is the expected behavior?

These commands should run normally, or at minimum fail with an actionable error.

Additional information

Actual behavior

They fail with exit code -1 and no useful output. The failures persist across retries, across unrelated commands, and across separate sessions, both with latest codex update and prior minor update.

This makes the coding environment mostly useless for repo work. The agent cannot inspect the workspace, verify git state, read repo files, or perform normal coding tasks.

Activity

  1. added
    bug
    on Apr 2, 2026
  2. added
    CLI
    tool-calls
    on Apr 2, 2026
  3. github-actions commented on Apr 2, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. removed
    CLI
    on Apr 2, 2026
  5. etraut-openai commented on Apr 2, 2026

    @etraut-openai
    Contributor

    If you're able to repro, please use /feedback to upload your log and session details, then post the thread ID here.

  6. GarrettS commented on Apr 3, 2026

    @GarrettS
    Author

    If you're able to repro

    Unfortunately, I'm only able to repro; can't make it go away.

    As stated, both codex-cli 0.118.0 and codex-cli 0.117.0 exhibit the problem.

    And I just got this:

    › Piecemeal docs change proposal incoming.The application panicked (crashed).
    Message:  /tmp is absolute: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }
    Location: protocol/src/protocol.rs:1036nts/code-guidelines
    
    Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
    Run with RUST_BACKTRACE=full to include source snippets.
    Warning: SpanTrace capture is Unsupported.
    Ensure that you've setup a tracing-error ErrorLayer and the semver versions are compatible
    ^C
    ^C^C
    

    — and as can be seen, ctrl+c did not work. That shows codex processes failed in failed state. IOW, not fail safe.

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

    bugtool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions