codex - 💡(How to fix) Fix CLI outputs infinite repeating “yes agree” stream without stopping [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17534Fetched 2026-04-13 05:38:53
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
labeled ×3commented ×2closed ×1

Code Example

yes agree
yes agree
yes agree
yes agree
yes agree
yes agree
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.120.0

What subscription do you have?

plus

Which model were you using?

gpt-5.3-codex [medium]

What platform is your computer?

Linux 6.8.0-45-generic x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

Ghostty

What issue are you seeing?

When using the Codex CLI, the output enters an apparent infinite loop where it continuously prints a repeated phrase like:

yes agree
yes agree
yes agree
yes agree
yes agree
yes agree

This continues indefinitely without termination or user interaction.

Expected Behavior

The CLI should:

  • Return a finite response
  • Stop after completing the task
  • Not enter a repetitive output loop

Actual Behavior

  • Output becomes a continuous stream of repeated text
  • Process does not terminate on its own
  • Requires manual interruption (Ctrl+C)

What steps can reproduce the bug?

Uploaded thread: 019d69d2-0afe-7381-b7eb-82cfcf754ef8

What is the expected behavior?

The CLI should:

  • Return a finite response
  • Stop after completing the task
  • Not enter a repetitive output loop

Additional information

No response

extent analysis

TL;DR

The issue can likely be mitigated by investigating the uploaded thread for potential causes of the infinite loop in the Codex CLI output.

Guidance

  • Review the uploaded thread (019d69d2-0afe-7381-b7eb-82cfcf754ef8) to understand the sequence of events leading to the infinite loop.
  • Check for any recursive or looping logic in the thread that could cause the Codex CLI to repeat the "yes agree" phrase indefinitely.
  • Consider testing the Codex CLI with a different model or input to see if the issue is specific to the gpt-5.3-codex model or a more general problem.
  • Look into the Codex CLI documentation or support resources for any known issues or workarounds related to infinite loops or repetitive output.

Example

No specific code snippet can be provided without more context, but reviewing the thread and checking for recursive logic could involve inspecting the thread's execution flow and any conditional statements that might lead to repetition.

Notes

The exact cause of the infinite loop is unclear without more information about the thread's content or the specific commands used with the Codex CLI. Further investigation into the thread and the CLI's behavior with different inputs is necessary.

Recommendation

Apply workaround: Investigate the uploaded thread and adjust the input or model as needed to prevent the infinite loop, as the root cause is not immediately clear and may require specific adjustments based on the thread's content.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING