Codex CLI exits successfully (exit code 0) but stops execution before performing any actual PR review steps.

Open 💬 1 comment Opened Apr 24, 2026 by nxl2692

What version of Codex CLI is running?

0.124.0

What subscription do you have?

Third-party provider (aihubmix)

Which model were you using?

gpt-5.4

What platform is your computer?

Linux 3.10.0-1160.119.1.el7.x86_64 x86_64 x86_64

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

codex exec --dangerously-bypass-approvals-and-sandbox --skip-git-repo-check "review https://xxx/projects/xxx/repos/xxx/pull-requests/xxx/overview"

What issue are you seeing?

I am running Codex inside a Docker container. With the same command and environment:

  • Version 0.118.0 works as expected and completes the PR review workflow
  • Version 0.124.0 stops after printing the planned steps and exits early

Command used:
codex exec --dangerously-bypass-approvals-and-sandbox --skip-git-repo-check "review https://xxx/projects/xxx/repos/xxx/pull-requests/xxx/overview"

Observed behavior (v0.124.0):

  • Codex loads the review workflow and prints planned steps:
  • Fetch PR metadata and state
  • Load comments and dedupe context
  • Inspect diff and impacted code
  • Summarize review findings
  • However, it does not actually execute these steps (no API calls, no repo fetch, no diff analysis)
  • The process exits immediately afterward with exit code 0

Expected behavior:

  • Codex should proceed to fetch PR metadata, load comments, retrieve diff, and perform the review

Actual behavior:

  • Codex exits early without performing any actions, and without any error message

This looks like a silent early termination or skipped tool execution rather than a normal failure.

What steps can reproduce the bug?

  1. Start a Docker container with Codex CLI installed
  2. Install Codex CLI version 0.124.0
  3. Run the following command:

codex exec --dangerously-bypass-approvals-and-sandbox --skip-git-repo-check "review https://xxx/projects/xxx/repos/xxx/pull-requests/xxx/overview"

  1. Observe the output:
  • Codex prints the planned steps (fetch PR metadata, load comments, inspect diff, etc.)
  • No actual execution is performed (no API calls, no repo fetch, no diff analysis)
  1. Check the process exit code:
  • The process exits with code 0
  1. Repeat the same steps with Codex CLI version 0.118.0:
  • The workflow executes correctly and completes the PR review

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗