Skip to content

Codex unexpectedly stuck on the simplest steps #6411

Closed as not planned
Closed as not planned

Description

@sherlock7402

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

Activity

  1. added
    bug
    on Nov 9, 2025
  2. added
    CLI
    on Nov 9, 2025
  3. added
    agent
    on Dec 7, 2025
  4. JakkuSakura commented on Dec 18, 2025

    @JakkuSakura

    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
    
    
  5. removed
    CLI
    on Dec 23, 2025
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

    agentbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions