Windows Terminal scroll, selection, and copy lock during streaming persists with no-alt-screen/raw-output/animations=false

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

Codex version

codex-cli 0.145.0

Environment

  • Windows 11 Professional 10.0.26200
  • Windows Terminal (CASCADIA_HOSTING_WINDOW_CLASS)
  • PowerShell 7 and Windows PowerShell launch paths both reproduced

Problem

While Codex is actively generating/rendering, Windows Terminal cannot reliably scroll, maintain a text selection, or copy selected text. The three capabilities return together when active rendering stops. The window and process remain responsive throughout.

Reproduction

  1. Configure:
[tui]
alternate_screen = "never"
raw_output_mode = true
animations = false
  1. Launch a fresh process explicitly:
codex --no-alt-screen -c tui.animations=false
  1. Ask for a long multi-paragraph response.
  2. While output is active, attempt to scroll upward or drag-select/copy earlier text.

Result

The terminal continues to repaint/update and native scrolling/selection is disrupted until generation ends. This reproduces even though the process command line proves both --no-alt-screen and tui.animations=false were applied.

Instrumented evidence

A separate Win32/UIA observer sampled the exact Windows Terminal HWND without injecting input:

  • no-alt-screen controlled run: 11 samples, 10 text-buffer transitions, 0 UIA failures;
  • no-alt-screen + animations disabled controlled run: 11 samples, 7 transitions, 0 UIA failures;
  • PrintWindow capture succeeded during the affected interval;
  • user independently confirmed the scroll/selection/copy lockout on the freshly launched process.

This rules out an OS window hang and shows that disabling alternate-screen and animation does not eliminate active TUI buffer updates. Raw-output startup also did not restore reliable native interaction during generation.

Expected

With alternate screen disabled and raw output enabled, native Windows Terminal scrollback, selection, and copying should remain usable while a turn is streaming.

Notes

A static transcript overlay/companion is a workaround, not a fix. Related reports discuss alternate-screen and redraw behavior, but this reproduction specifically demonstrates persistence on Windows Terminal with all currently documented mitigation settings enabled together.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 1 month ago

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

  • #35335

Powered by Codex Action

BladeDancer743 · 1 month ago

Same issue on my end. Windows Terminal + PowerShell 7 Core, codex-cli 0.145.0, Plus subscription.

Tried all documented mitigations:

  • --no-alt-screen
  • tui.animations=false
  • tui.raw_output_mode=true
  • even combined all three in a fresh process

Result: scroll, text selection, and copy are all locked during streaming. Terminal is responsive (not hung), but can't interact until generation stops. This makes reading long Codex responses on Windows essentially impossible.

Would strongly appreciate a non-TUI output mode or a fix that preserves native Windows Terminal scrollback behavior, as Claude Code / OpenCode do.