line in agent response got missing making me feel crazy

Open 💬 3 comments Opened Apr 16, 2026 by felixniemeyer
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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.4 (reasoning medium, summaries auto)

What platform is your computer?

Linux 6.12.77-1-MANJARO x86_64 unknown

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

foot version: 1.20.2 +pgo +ime +graphemes +toplevel-icon -assertions

What issue are you seeing?

Model said something about the searchIndex being rebuild.
I was wondering, because that should happen in backend and we were talking about frontend, so I asked what it meant with "search index".
It answered that the "search index build" happens in the backend.
So I wanted to see the context again to understand why it had brought it up in the first place.

But it was gone from the conversation.

I thought: have I just imagined that? (Felt confused)

So I checked the session logs and there was a real discrepancy of what's in the logs and what the CLI was showing:

<img width="915" height="228" alt="Image" src="https://github.com/user-attachments/assets/1b4a9c6b-25c6-47ba-a12a-8ca777bf0bc4" />

<img width="958" height="241" alt="Image" src="https://github.com/user-attachments/assets/1ab97ce2-5974-4cb2-93fe-b62355dfebde" />

As you can see, one line (label 2) simply got missing in the CLI.

That was confusing.

What steps can reproduce the bug?

Setup random automatic conversations and always check whether previous messages change after continuing the conversation.

What is the expected behavior?

Previous messages should stay the same and no lines go missing when conversation continues.

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 4 months ago

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

  • #16355
  • #16413

Powered by Codex Action

felixniemeyer · 4 months ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. Codex CLI truncates prior output after next prompt submission #16355 [[BUG] VS Code Codex thread hangs during web/tool search and UI loses recent messages #16413](https://github.com/openai/codex/issues/16413) _Powered by Codex Action_

It's not truncated but a single line missing in the middle of a previous message. And I don't mean entire messages are being lost. So those issues are not duplicates I think.

runfence · 3 months ago

Yep, same happens to me pretty often.