Model output is sometimes interleaved with other data

Resolved 💬 1 comment Opened Sep 8, 2025 by thetinygoat Closed Nov 9, 2025

What version of Codex is running?

codex-cli 0.29.0

Which model were you using?

gpt-5-high

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

The bug comes up randomly when using the CLI. Data should have been printed somewhere else is interleaved into the output instead.

What is the expected behavior?

The output should not be interleaved, in the example provided below, the output tokens and other info should have been printed at the end of the model output.

What do you see instead?

<img width="912" height="205" alt="Image" src="https://github.com/user-attachments/assets/05ba04ce-afb2-430c-8579-f7e713ee7100" />

In the attached image, the text is interleaved with the model output, it should have been printed at the end o the response.

+C quit   32128 tokens used   92% context left

There are other examples as well but right now this is the one i have handy.

Additional information

Terminal emulator information:

Ghostty 1.1.3

Version
  - version: 1.1.3
  - channel: stable
Build Config
  - Zig version: 0.13.0
  - build mode : builtin.OptimizeMode.ReleaseFast
  - app runtime: apprt.Runtime.none
  - font engine: font.main.Backend.coretext
  - renderer   : renderer.Metal
  - libxev     : main.Backend.kqueue

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗