You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drawing of the text input area messes with the TUI causing visual artifacts on successive terminal resizes #16165
What terminal emulator and version are you using (if applicable)?
gnome-terminal, xfce4-terminal, xterm, Windows termina, Alacritty, every single one I tried
What issue are you seeing?
Display artifacts and disappearing text when resizing the window:
The text entry area fills the screen with an input area that is too big, and there is something that looks like an off-by-one calculation when rendering it as it incrementally overwrites the scrollback until the entry area is at the top of the terminal with no scrollback visible.
What steps can reproduce the bug?
Run codex
type any prompt
resize the terminal a few times
What is the expected behavior?
The text entry area should not change position or output additional background color blocks which become artifacts all over the screen
Additional information
I have implemented a workaround and applied it successively to the last few versions of Codex, here is the before and after showing current behavior and expected behavior:
(The video was captured of an older version that had a remnant of another experiment, but it shows the expected behavior)
codex-2026-03-29_01.32.21.1.mp4
Downstream issues, each describing different behavior of the same cause: #5259 #14045 #5259 #8344 (The current output of the text input area, messes with the TUI) #14323
Activity
github-actions commentedon Mar 29, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
maddada commentedon Mar 29, 2026
I'm very sorry to budge in here. Great job on the fix. Looks much better than what we have now.
Would this help fix this issue with missing lines?
#5259 (comment)
fix(tui): reflow scrollback on terminal resize (#18575)
Update codex fork to upstream 0.128.0 (#14)
fix(tui): reflow scrollback on terminal resize (openai#18575)
fix(tui): reflow scrollback on terminal resize (openai#18575)
etraut-openai commentedon Jul 21, 2026
Merged PR #18575 explicitly fixes #16165 by rebuilding source-backed transcript history on resize and clearing stale pending rows.