codex - 💡(How to fix) Fix Codex enters corrupted infinite-generation state and streams multilingual gibberish without terminating [3 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#17219Fetched 2026-04-10 03:43:49
View on GitHub
Comments
3
Participants
3
Timeline
9
Reactions
1
Author
Timeline (top)
labeled ×4commented ×3closed ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.313.41514

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

Additional critical detail:

The corrupted response does not terminate normally. Once the issue starts, Codex keeps generating gibberish continuously until manually stopped. This is not just a malformed answer — it appears to enter an infinite or non-terminating generation/streaming state.

Observed behavior:

  • response starts normally or near-normally
  • output degrades into multilingual/token-salad gibberish
  • generation keeps going indefinitely
  • manual stop is required

This makes the issue significantly more severe than a one-off corrupted text fragment.

The response continued generating indefinitely until I manually stopped it.

Output example.txt

What steps can reproduce the bug?

working with subagents .. mb...

What is the expected behavior?

No response

Additional information

No response

extent analysis

TL;DR

The issue may be resolved by adjusting the interaction with subagents to prevent the Codex App from entering an infinite generation state.

Guidance

  • Review the subagent configuration and usage to identify potential causes of the infinite generation loop.
  • Verify that the input or prompt provided to the Codex App is well-formed and does not contain any unexpected characters or sequences that could trigger the issue.
  • Test the Codex App with a simplified input or prompt to determine if the issue is specific to certain types of input.
  • Consider implementing a timeout or maximum response length to prevent the Codex App from generating indefinitely.

Example

No code snippet is provided due to lack of specific technical details.

Notes

The exact cause of the issue is unclear, and further investigation is needed to determine the root cause. The provided information suggests that the issue is related to the interaction with subagents, but more details are required to provide a definitive solution.

Recommendation

Apply workaround: Implement a timeout or maximum response length to prevent the Codex App from generating indefinitely, as this can help mitigate the issue until a more permanent fix is found.

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