Codex unexpectedly stuck on the simplest steps

Resolved 💬 2 comments Opened Nov 9, 2025 by sherlock7402 Closed Dec 23, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.56.0

What subscription do you have?

Plus

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 25.1.0 arm64 arm

What issue are you seeing?

It just had to resolve a merge conflict. After that, it should have committed everything. I was very patient and waited 15 minutes for the last step, but then I gave up after seeing this:
Preparing to commit merge (16m 35s • esc to interrupt)

It was stuck there forever. There was no reason to take so long to prepare a commit.

What steps can reproduce the bug?

Uploaded thread: 019a659a-c5d4-7093-a266-8d0bd619e70c

What is the expected behavior?

Don't get stuck

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 9 months ago

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

  • #5756
  • #6146
  • #5560
  • #6260
  • #6108

Powered by Codex Action

JakkuSakura · 8 months ago

This is because it tried to invoke git rebase, in an interactive mode. Git opened an editor like nano or vim and waiting for user interaction

I just interrupt and ask it to "do rebase non-interactively" and it can run normally.

Can add this to AGENTS.md and see if it improves

When you do git operations like commit or rebase, always do non-interactive mode so you are not stuck here