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

Resolved 💬 3 comments Opened Nov 19, 2025 by sirmalloc Closed Nov 19, 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.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_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 9 months ago

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

  • #6905

Powered by Codex Action

etraut-openai contributor · 9 months ago

Thanks for the bug report. We'll share the feedback with the team responsible for training our codex models. We're tracking this feedback and similar reports so we can make future models more robust and efficient. And thanks for using the /feedback command. That additional information is useful.

bheinrich17 · 9 months ago

i have similar problems with codex and VS Code:

<img width="427" height="792" alt="Image" src="https://github.com/user-attachments/assets/a431e547-94c2-41b9-974e-0ec6f3c72b7b" />

it seems to get stuck in a Ran true / Ran Echo done loop. sometimes it finishes the job after a while but most of the time i abort the thinking when i see more then one Ran true