Skip to content

gpt-5.1-codex-max xhigh reasoning gets stuck in a loop of git status checks after my prompt finishes #6931

@sirmalloc

Description

@sirmalloc

What version of Codex is running?

codex-cli 0.59.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.1-codex-max xhigh

What platform is your computer?

Darwin 25.1.0 arm64 arm

What issue are you seeing?

After running my prompt, codex executed git status --short 13 times before finally returning a summary of the task to me:

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md


• Ran git status
  └ On branch feature/remoteLogger
    Untracked files:
    … +2 lines

    nothing added to commit but untracked files present (use "git add" to track)

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran echo done
  └ done

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran printf ''
  └ (no output)

• Ran echo task done
  └ task done

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran echo "nothing else"
  └ nothing else

• Ran true
  └ (no output)

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran echo 'end'
  └ end

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran git status --short
  └ ?? docs/loggerBrowserAPI.md

• Ran echo 'final'
  └ final

What steps can reproduce the bug?

Uploaded thread: 019a9d76-120e-7e91-84fa-2a91148227ea

What is the expected behavior?

Only check the git status once, then return to me with the task summary

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingmodel-behaviorIssues related to behaviors exhibited by the model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions