Codex CLI loops until context is compacted
Open 💬 2 comments Opened Jul 9, 2026 by nuliknol
What version of Codex CLI is running?
codex-cli 0.144.0
What subscription do you have?
PRO 20x
Which model were you using?
terra medium
What platform is your computer?
Ubuntu x86_64
What terminal emulator and version are you using (if applicable)?
gnome terminal
Codex doctor report
What issue are you seeing?
Codex loops indefinitely until context is compacted. Check attached screenshot. This happened in an active /goal command
<img width="852" height="1403" alt="Image" src="https://github.com/user-attachments/assets/84c6bfbe-ffed-44e9-b406-f4bce47e7591" />
What steps can reproduce the bug?
I don't know how to reproduce it,happens sometimes
What is the expected behavior?
codex doesn't loop infinitely
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗