Skip to content

Inconsistent scrollback / output rendering behavior on Windows Terminal vs macOS terminal #15380

Closed

Description

@zhatlas

What version of Codex CLI is running?

codex-cli 0.116.0

What subscription do you have?

Plus

Which model were you using?

No response

What platform is your computer?

No response

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

No response

What issue are you seeing?

When using Codex CLI on macOS, the terminal output behaves normally — scrollback works, and the UI rendering is stable.

However, on Windows (especially when using Windows Terminal with WSL or PowerShell), I frequently encounter rendering issues:

  • Scrollback does not work correctly (older output disappears or cannot be accessed)
  • Output is sometimes overwritten or re-rendered incorrectly
  • Text may appear duplicated or partially missing
  • Scrolling during streaming output can cause content to be cut or misaligned

This issue appears consistently on Windows Terminal, but does not reproduce on macOS terminal environments (e.g., iTerm2 / default Terminal with similar configurations).

This suggests a platform-specific compatibility issue between Codex CLI TUI rendering and Windows terminal emulators.

What steps can reproduce the bug?

  1. Open Windows Terminal (PowerShell or WSL)
  2. Run codex
  3. Send a prompt that produces long output (longer than one screen)
  4. While output is streaming:
    • Try scrolling up
    • Or wait until output finishes and then scroll
  5. Observe:
    • Earlier content is missing or cannot be scrolled back to
    • Output may be overwritten, duplicated, or visually corrupted
      Control experiment:
  6. Repeat the same steps on macOS (Terminal or iTerm2)
  7. Observe that:
    • Scrollback works normally
    • Output rendering is stable and consistent

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    CLIIssues related to the Codex CLI
    windows-osIssues related to Codex on Windows systems
    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal display
    on Mar 21, 2026
  2. github-actions commented on Mar 21, 2026

    @github-actions
    Contributor
  3. DMIGitH commented on Mar 21, 2026

    @DMIGitH

    This has been this way from the beginning it drives me nuts as I go back to read what it said just have it has disappeared. I ask it to respect what it says and it can’t, spewing most of times unrelated information.
    Of course it beats the other crazies that it does.

  4. zhatlas commented on Mar 22, 2026

    @zhatlas
    Author

    The content only disappears from the UI—it’s still present in Codex’s context. You can recover the history with /resume, although the restored UI layout can sometimes be a bit glitchy.

  5. RooTooRD commented on Mar 31, 2026

    @RooTooRD

    same issue with
    Linux 6.12.73+deb13-amd64 x86_64
    Ghostty
    codex-cli 0.117.0
    gpt-5.3
    Pro

  6. jingkarqi commented on Apr 5, 2026

    @jingkarqi

    I am seeing what looks like the same underlying class of bug on Windows, but with a very specific and reproducible interaction pattern during streaming output.

    Environment

    • Windows 11
    • PowerShell 7.6.0
    • codex-cli 0.118.0
    • Windows Terminal
    • GPT-5.4
    • Plus

    What I am seeing

    In a multi-turn conversation, while the assistant is still streaming a reply, if I use the mouse wheel to scroll upward and inspect earlier chat history, newly streamed output starts to "eat" or overwrite a few lines of the older content that I am looking at.

    As the new streamed reply continues growing, more and more of the older visible history appears to get swallowed / shifted / overwritten. The longer the streaming reply runs, the more old lines disappear from the visible region I had scrolled back to inspect.

    This does not look like a simple cosmetic flicker. It behaves more like Codex is continuing to restructure the visible terminal region while I am no longer visually anchored at the bottom.

    Expected behavior

    Once I scroll up to inspect previous history, new streaming output should not progressively overwrite the older visible lines I am currently looking at.

    At minimum, scrolling back should remain visually stable while generation continues.

    Actual behavior

    • I scroll upward with the mouse wheel during an in-progress streamed response.
    • Older visible lines start disappearing / being replaced / getting partially swallowed.
    • As more tokens arrive, a larger portion of that older visible transcript gets affected.
    • The issue becomes more obvious on longer streamed replies.

    Reproduction pattern

    1. Start Codex on PowerShell
    2. Have a multi-turn conversation.
    3. Ask for a response that streams for a while.
    4. While the response is still streaming, use the mouse wheel to scroll upward and inspect earlier messages.
    5. Keep watching while the stream continues.
    6. Older visible lines begin to be overwritten / swallowed, and the affected area grows as streaming continues.
  7. cowwoc commented on May 27, 2026

    @cowwoc

    #18575 claims to fix this issue. Should it be closed?

  8. 3 remaining items

  9. janrysavy commented on May 31, 2026

    @janrysavy

    Could you run /feedback first then send the feedback ID? Also could you take a screenshot or a short video of the problem?

    019e7f49-1b52-7362-9a2b-4fee5ce5a3eb

    Image
  10. cowwoc commented on May 31, 2026

    @cowwoc

    @fcoury-oai I posted an automated testcase at #24849 for what could be the same issue. Can you please take a look?

  11. grnbtqdbyx-create commented on May 31, 2026

    @grnbtqdbyx-create
  12. fcoury-oai commented on May 31, 2026

    @fcoury-oai
    Contributor

    @fcoury-oai I posted an automated testcase at #24849 for what could be the same issue. Can you please take a look?

    I will!

  13. cowwoc commented on Jun 10, 2026

    @cowwoc

    @fcoury-oai @etraut-openai I provided an automated testcase but have yet to hear back.

    This issue is causing data loss in the sense that I can't read the agent's response unless I halt it (hit ESC) immediately after I receive the response; otherwise, the output always gets clobbered. Transcript view isn't useable for this either because it is too slow to navigate and there is no way to search for text within it.

    Please provide a status update. Have you been able to reproduce the problem on your end? Is anyone actively working on it?

  14. etraut-openai commented on Oct 12, 2026

    @etraut-openai
    Contributor

    (response from codex)

    Closing as likely addressed in the current default TUI (CLI v0.162.1). The fullscreen transcript keeps and scrolls its own history (#46721, #46733); #45271 also fixes a viewport-growth loss. If it persists, please reopen with the current version and /tui mode so we can distinguish it from inline issue #27644.

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

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions