codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex Truncates Chat Messages When Scrolling

Open PaulSolt opened this issue 1 year ago • 25 comments

Summary

Scrolling up or down in Codex can cause chat messages to be partially overwritten or clipped, resulting in missing content. This makes it impossible to review previous messages accurately, especially during longer conversations.

Image

Steps to Reproduce

  1. Ask codex questions
  2. Go back and forth, optionally adding messages to the queue.
  3. Attempt to scroll up and down in the chat history after the message has loaded.
  4. Observe whether message content changes, disappears, or becomes truncated.

(Note: The issue is intermittent and may not occur on every scroll.)


Expected Behavior

  • Scrolling should be non-destructive.
  • All previously generated messages should remain intact and fully visible, regardless of scroll position.
  • The chat history should render consistently without overwriting or clipping text.

Actual Behavior

  • When scrolling up or down, parts of the message disappear (squash to non-existence?).
  • Example: In the attached screenshot, everything after “Worked for 39s” is missing — multiple bullet points are clipped and unrecoverable.
  • Asking Codex to regenerate or recall the message does not restore the exact original content, suggesting the original data is lost or unrendered.

Impact

  • Severe: prevents users from reviewing or referencing past responses.
  • Makes it impossible to debug or discuss complex issues in long Codex sessions.
  • Reduces trust in conversation persistence and data integrity.

Attachments

  1. Screenshot 1: Clipped message after scrolling (shows truncation after “Worked for 39s”). screenshot

  2. Screenshot 2: Codex attempting to reconstruct the lost portion of the message. screenshot


Environment

  • codex in Ghostty on macOS 15.7.2

Thread ID 019a63de-c2ab-7023-b482-f2d17522ccf0 in an existing


Severity

🔥 High — Loss of visible data and inability to retrieve prior messages.

PaulSolt avatar Nov 09 '25 14:11 PaulSolt

Related to https://github.com/openai/codex/issues/2456

PaulSolt avatar Nov 09 '25 14:11 PaulSolt

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

  • #5538
  • #5643
  • #5576
  • #5259

Powered by Codex Action

github-actions[bot] avatar Nov 09 '25 14:11 github-actions[bot]

Sometimes even new messages from the agent will cause content in the chat history to just clip and disappear.

PaulSolt avatar Nov 09 '25 20:11 PaulSolt

I got it to reproduce by making AI print from 1 to 30.

#6599

ts-klassen avatar Nov 13 '25 12:11 ts-klassen

are oai looking into this? thinking if wort switching back to iterm or not from ghostty. dont have the issue in iterm!

JoelEmanuelNilsson avatar Nov 19 '25 12:11 JoelEmanuelNilsson

Using transcript mode might be an option. Use Ctrl+T

Image Image

ts-klassen avatar Nov 20 '25 00:11 ts-klassen

A simple reproduction method:

  1. Execute the /status command
  2. Copy many lines (e.g., 30 lines) of content into the input box, do not send
  3. Clear the input box (e.g., using ctrl+c)

Scrolling the terminal will reveal that the /status command and its output status card disappear.

muyuanjin avatar Dec 01 '25 01:12 muyuanjin

same issue

distbit0 avatar Feb 01 '26 09:02 distbit0

Same issue here.

clodoaldofavaro avatar Feb 03 '26 19:02 clodoaldofavaro

I am facing the same issue. i am able to see the full text in the transcript but it is cut off in the normal chat mode.

atul-narayanan-hf avatar Feb 07 '26 04:02 atul-narayanan-hf

Is this a joke or wtf is wrong with you devs?? 4 fcking months and this annoying bug is still happening, we are paying a service and you give us a SHIT app with a huge bug like this one and after months this is still not fixed... im starting to lose my mind with this garbage 5 years old kid dev bugs.

@etraut-openai terrible bug not happening on gemini cli or claude code... the only cli app with this novice bug is codex.

dhaern avatar Feb 07 '26 06:02 dhaern

@etraut-openai keep hiding comments and marking this as "abuse" when your customers are waiting a fix for a simple bug from months ago.

dhaern avatar Feb 07 '26 06:02 dhaern

@dhaern, we welcome feedback, but if you're going to post in this issue tracker, we ask that you be respectful and civil. Your comment above was inappropriate and over the line.

We have many users, many requests for bug fixes and features, and finite time. We prioritize our bug fixes and feature work based on where we can have the most impact.

If you want to contribute to this project, the code is open source, and we welcome RCAs (root cause analyses).

etraut-openai avatar Feb 07 '26 06:02 etraut-openai

@dhaern, we welcome feedback, but if you're going to post in this issue tracker, we ask that you be respectful and civil. Your comment above was inappropriate and over the line.

We have many users, many requests for bug fixes and features, and finite time. We prioritize our bug fixes and feature work based on where we can have the most impact.

If you want to contribute to this project, the code is open source, and we welcome RCAs (root cause analyses).

This is unnaceptable the text is truncating from months ago, this is a CRITICAL bug and we cant see the responses from the model, the severity of this bug is huge and this was reported months ago and NEVER happened in gemini cli, claude code or another CLIs. We are paying a suscription or API requests to OpenAI and you guys give us a tool with a huge bug like this and still you guys didnt fix this.

dhaern avatar Feb 07 '26 06:02 dhaern

This is still happening and quite annoying. Long responses are impossible to read.

osirismqz avatar Feb 09 '26 06:02 osirismqz

not sure if just me or not but this issue seems way worse with 0.99 version than before it, anyone else notice?

kirsch33 avatar Feb 09 '26 14:02 kirsch33

FYI - I just submitted a PR that fixes this: #11221

pthrasher avatar Feb 09 '26 19:02 pthrasher

Just to chime in, this is driving me insane. It completely breaks workflows where you need to copy paste from one terminal to another, and is a gigantic usability regression. You can still see the text in transcript mode, but transcript copy paste won't let you highlight more than a screen's worth of text, so if you need to copy a response from the terminal, at trivial sizes it's going to be clipped (very easy to miss that there was a much longer response than you can see until you go to transcript) and then you have to go to transcript and very carefully "splice together the copy". It's really, really, really annoying.

update I haven't seen this since upgrading to v0.101.0

mwcrutcher avatar Feb 12 '26 15:02 mwcrutcher

This! I face exactly the same issue as this.

Just to chime in, this is driving me insane. It completely breaks workflows where you need to copy paste from one terminal to another, and is a gigantic usability regression. You can still see the text in transcript mode, but transcript copy paste won't let you highlight more than a screen's worth of text, so if you need to copy a response from the terminal, at trivial sizes it's going to be clipped (very easy to miss that there was a much longer response than you can see until you go to transcript) and then you have to go to transcript and very carefully "splice together the copy". It's really, really, really annoying.

atul-narayanan-hf avatar Feb 12 '26 15:02 atul-narayanan-hf

Just to chime in, this is driving me insane. It completely breaks workflows where you need to copy paste from one terminal to another, and is a gigantic usability regression. You can still see the text in transcript mode, but transcript copy paste won't let you highlight more than a screen's worth of text, so if you need to copy a response from the terminal, at trivial sizes it's going to be clipped (very easy to miss that there was a much longer response than you can see until you go to transcript) and then you have to go to transcript and very carefully "splice together the copy". It's really, really, really annoying.

Yeah after im the disrespectful after for saying the truth to @etraut-openai

dhaern avatar Feb 12 '26 16:02 dhaern