Codex CLI flickers on Windows PowerShell and scrollback becomes unreadable

Open 💬 0 comments Opened May 16, 2026 by Devinpdl

Summary

Codex CLI UI flickers on Windows/PowerShell and long interactive output becomes hard or impossible to read because scrollback/top context is not reachable from the terminal scrollbar.

Environment

  • OS: Windows
  • Shell: PowerShell 5.1.19041.6456
  • Terminal context detected: TERM_PROGRAM=vscode, host ConsoleHost
  • Codex CLI version: codex-cli 0.130.0
  • GitHub reporter: Devinpdl

What happens

When using Codex CLI interactively, the terminal UI flickers and the right scrollbar/scrollback behavior does not let me reliably return to earlier output. For long Codex answers, I can only see part of the generated response and cannot scroll back to the top context. This makes the CLI difficult to use for serious coding sessions because previous instructions/results become unreadable.

Expected behavior

  • The Codex CLI terminal UI should render stably without flickering.
  • Long responses should remain readable through normal terminal scrollback.
  • The scrollbar should allow returning to earlier context/output.

Actual behavior

  • UI flickers during/after interactive output.
  • Long responses are partially inaccessible.
  • The terminal scrollbar does not reliably expose earlier generated context.

Steps to reproduce

  1. Open a PowerShell terminal on Windows, especially inside VS Code integrated terminal.
  2. Run codex.
  3. Ask for a long response or perform a coding task that prints a large answer.
  4. Try to scroll back to the beginning of the response using the right scrollbar.

Impact

This blocks normal use of Codex CLI for long coding sessions because important generated context cannot be read after output grows beyond the visible terminal area.

Additional notes

I am willing to help test fixes or provide extra reproduction details/screen recording if requested.

View original on GitHub ↗