codex - 💡(How to fix) Fix Codex CLI exits successfully (exit code 0) but stops execution before performing any actual PR review steps. [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19309Fetched 2026-04-24 10:38:48
View on GitHub
Comments
1
Participants
1
Timeline
7
Reactions
0
Author
Participants
Timeline (top)
labeled ×5commented ×1unlabeled ×1

Error Message

  • Codex exits early without performing any actions, and without any error message
RAW_BUFFERClick to expand / collapse

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)
  2. Check the process exit code:

    • The process exits with code 0
  3. 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

extent analysis

TL;DR

Downgrade to Codex CLI version 0.118.0 to potentially resolve the issue with the review workflow not executing.

Guidance

  • Verify that the issue is specific to version 0.124.0 by testing with other versions between 0.118.0 and 0.124.0 to isolate the problematic change.
  • Check for any differences in configuration or environment variables between the working (0.118.0) and non-working (0.124.0) versions.
  • Consider reaching out to the Codex CLI development team or community for further assistance, as this issue may be a regression introduced in version 0.124.0.
  • Review the release notes for version 0.124.0 to see if there are any known issues or changes that could be causing this behavior.

Notes

The root cause of the issue is unclear, but it appears to be related to a change introduced in version 0.124.0. Downgrading to version 0.118.0 may be a temporary workaround, but a more permanent solution will depend on identifying and addressing the underlying cause.

Recommendation

Apply workaround: Downgrade to version 0.118.0, as it is the last known working version for this specific use case.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex CLI exits successfully (exit code 0) but stops execution before performing any actual PR review steps. [1 comments, 1 participants]