Skip to content

Codex Truncates Chat Messages When Scrolling #6427

Closed

Description

@PaulSolt

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.

Activity

  1. added
    bug
    CLI
    TUI
    on Nov 9, 2025
  2. PaulSolt commented on Nov 9, 2025

    @PaulSolt
    Author

    Related to #2456

  3. PaulSolt commented on Nov 9, 2025

    @PaulSolt
    Author

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

  4. ts-klassen commented on Nov 13, 2025

    @ts-klassen

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

    #6599

  5. JoelEmanuelNilsson commented on Nov 19, 2025

    @JoelEmanuelNilsson

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

  6. ts-klassen commented on Nov 20, 2025

    @ts-klassen

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

    Image Image
  7. changed the title [-]Critical Data Loss: Codex Truncates Chat Messages When Scrolling[/-] [+]Codex Truncates Chat Messages When Scrolling[/+] on Nov 20, 2025
  8. muyuanjin commented on Dec 1, 2025

    @muyuanjin
    Contributor

    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.

  9. removed
    CLI
    on Dec 23, 2025
  10. distbit0 commented on Feb 1, 2026

    @distbit0

    same issue

  11. 8 remaining items

  12. pthrasher commented on Feb 9, 2026

    @pthrasher

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

  13. mwcrutcher commented on Feb 12, 2026

    @mwcrutcher

    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

  14. atul-narayanan-hf commented on Feb 12, 2026

    @atul-narayanan-hf

    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.

  15. dhaern commented on Feb 12, 2026

    @dhaern

    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

  16. damagu commented on Mar 5, 2026

    @damagu

    I have been encountering this too. Here's an example:

    Image

    And a little later, after I asked for the previous steps to be relisted, it happened again:

    Image
  17. dhaern commented on Mar 5, 2026

    @dhaern

    I have been encountering this too. Here's an example:

    Image And a little later, after I asked for the previous steps to be relisted, it happened again: Image

    I had that shit from months ago... even bad clis like Gemini dont have this bug, absolute pathetic from OpenAI

  18. etraut-openai commented on Apr 5, 2026

    @etraut-openai
    Contributor

    Are any of you still seeing this with the latest version (0.118.0)? We've rewritten big portions of the TUI since this bug was filed — and incorporated many bug fixes. It's quite possible that the issue no longer exists.

  19. gndk commented on Apr 5, 2026

    @gndk

    I stopped seeing this a while ago, but can't say when exactly it changed. Few weeks at least. Currently on 0.117.0 with Ghostty on Mac for context.

  20. kcosr commented on Apr 7, 2026

    @kcosr

    I'm still seeing this issue via xterm.js. it seems to occur most frequently on screen resize.
    Screenshot_20260407-105357.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions