codex - 💡(How to fix) Fix Codex CLI in WSL: long conversations can jump viewport back to top after response

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

I am seeing a scroll/viewport issue in Codex CLI running inside WSL. When a conversation/context becomes long, after Codex finishes answering or when I scroll downward toward the latest output, the TUI viewport can suddenly jump back to the very top of the conversation.

I am not sure whether this is specific to the alpha build I am using, but it is reproducible enough in long sessions to disrupt normal use.

Root Cause

I am seeing a scroll/viewport issue in Codex CLI running inside WSL. When a conversation/context becomes long, after Codex finishes answering or when I scroll downward toward the latest output, the TUI viewport can suddenly jump back to the very top of the conversation.

I am not sure whether this is specific to the alpha build I am using, but it is reproducible enough in long sessions to disrupt normal use.

RAW_BUFFERClick to expand / collapse

Summary

I am seeing a scroll/viewport issue in Codex CLI running inside WSL. When a conversation/context becomes long, after Codex finishes answering or when I scroll downward toward the latest output, the TUI viewport can suddenly jump back to the very top of the conversation.

I am not sure whether this is specific to the alpha build I am using, but it is reproducible enough in long sessions to disrupt normal use.

Environment

  • Product: Codex CLI / TUI
  • Version: codex-cli 0.131.0-alpha.18
  • Platform: WSL2
  • Distro: Ubuntu 24.04.4 LTS (Ubuntu-24.04)
  • Kernel: 6.6.87.2-microsoft-standard-WSL2
  • Architecture: x86_64
  • Terminal env observed from WSL:
    • TERM=xterm-256color
    • WSL_DISTRO_NAME=Ubuntu-24.04

Steps to reproduce

This is not a minimal deterministic repro yet, but the pattern is:

  1. Start codex in WSL.
  2. Keep working in the same session until the conversation/context is relatively long.
  3. Let Codex produce another answer, or try to scroll downward toward the latest output in that long conversation.
  4. Observe the TUI viewport.

Expected behavior

The viewport should stay anchored near the latest output, or preserve the current scroll position while navigating the transcript.

Actual behavior

The viewport can suddenly jump back to the top of the conversation/thread. After that, I have to manually navigate back down to the latest output.

Notes

  • This is a Codex CLI / WSL report, not Codex Desktop/App.
  • It resembles long-thread scroll jump reports in the Desktop app, but this report is specifically for the terminal TUI in WSL.
  • I am using an alpha build (0.131.0-alpha.18), so it may be an alpha regression.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The viewport should stay anchored near the latest output, or preserve the current scroll position while navigating the transcript.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex CLI in WSL: long conversations can jump viewport back to top after response