codex - 💡(How to fix) Fix TUI transcript scrolling can redraw above itself in long sessions [1 comments, 2 participants]

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…
GitHub stats
openai/codex#19584Fetched 2026-04-26 05:14:25
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
1
Author
Timeline (top)
labeled ×3commented ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

What version of Codex is running?

codex-cli 0.125.0

What subscription do you have?

No response

Which model were you using?

No response

What platform is your computer?

macOS (Darwin 25.1.0 arm64), terminal: iTerm.app 3.7.0beta1, TERM=xterm

What issue are you seeing?

In long interactive Codex TUI sessions, scrolling upward through earlier transcript/history is unstable. Instead of simply revealing older content, the transcript appears to redraw or "scroll above itself."

The result is that reviewing earlier messages in a long session becomes unreliable and hard to follow.

This seems related to, but not identical with:

  • #18528 (iTerm2 cannot scroll up in interactive Codex session, including with --no-alt-screen)
  • #10591 (TUI: Skill picker scrolls with main viewport during history insertion)

This report is about the main transcript/history area itself rather than popup corruption.

What steps can reproduce the bug?

  1. Open iTerm on macOS.
  2. Run codex.
  3. Generate enough output to require significant scrolling.
  4. Try to scroll upward through earlier transcript/history in the TUI.
  5. Observe that the transcript scroll/redraw behavior is unstable and can appear to render above itself instead of just moving the viewport upward.

What is the expected behavior?

Scrolling upward through long transcript history should be stable and should simply reveal older content without redraw corruption, shifting, or self-overlap.

Additional information

  • Reproduced in the Codex TUI on macOS in iTerm.
  • If useful, I can provide a screen recording.

extent analysis

TL;DR

The issue can be mitigated by investigating and potentially adjusting the terminal settings or Codex configuration related to scrolling and screen rendering.

Guidance

  • Review the differences between the reported issue and the similar issues #18528 and #10591 to identify potential causes or workarounds.
  • Experiment with different terminal emulators on macOS to see if the issue is specific to iTerm.
  • Investigate Codex configuration options or environment variables that may affect the TUI's scrolling behavior.
  • Consider providing a screen recording to the Codex developers for further diagnosis.

Example

No specific code snippet is applicable in this case, as the issue appears to be related to the interaction between Codex and the terminal emulator.

Notes

The issue may be specific to the combination of Codex version 0.125.0, iTerm, and macOS, so testing with different versions or environments may be necessary.

Recommendation

Apply workaround: Given the complexity of the issue and the potential interactions between Codex and the terminal emulator, applying a workaround, such as using a different terminal emulator or adjusting Codex configuration, may be the most practical approach until a fix is available.

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…

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 TUI transcript scrolling can redraw above itself in long sessions [1 comments, 2 participants]