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
Agent output getting truncated in the middle of the terminal scrollback #24849
changed the title [-]Repro artifacts for line truncation / missing middle output line (issue #15380)[/-][+]Agent output getting truncated in the middle of the terminal scrollback[/+]on May 28, 2026
@etraut-openai I can still reproduce this issue on v1.148.0. This is particularly painful because I can't safely scroll back through the terminal history without risking permanent gaps in the output.
The issue is 100% reproducible in my environment, and I've provided a deterministic testcase. Could someone from the Codex team please try running it on your end?
I'd be happy to prepare a PR if you’re open to reviewing and accepting a fix. Please let me know whether that would be useful and where you'd recommend starting.
It is a major PITA but in the cli window resizing the window causes the entire contents to be redrawn. At that point I can safely scroll up and view the trashed text.
The relevant TUI scrollback tests passed: 4 passed, 0 failed.
The deterministic Linux/tmux reproduction from this issue still failed: missing_count=1, with S-0391 missing.
The plain-output control passed with missing_count=0.
PR #39619 is clearly related because it fixes the Windows Terminal path by avoiding partial DEC scroll regions and preserving scrollback. However, it ultimately did not fix the same problem reproduced here under Linux/tmux. The issue remains reproducible in that environment.
Additional current-version evidence from WSL and the VS Code integrated terminal.
Environment:
Codex CLI: codex-cli 0.154.0
VS Code: 1.137.0, integrated terminal using xterm.js
OS: WSL Ubuntu
TERM=xterm-256color
No tmux, screen, or Zellij
After submitting a new prompt, several middle rows from a previous assistant response disappeared from the visible scrollback while the rest of the conversation remained visible. The missing rows were part of a Markdown table. The complete response remained in the local Codex session JSONL, confirming that the model output was retained and the failure was in terminal rendering or scrollback.
This extends the report to a current 0.154.0 installation and a VS Code xterm.js host. It also appears related to #27644.
Activity
cowwoc commentedon May 28, 2026
Attaching the exact repro artifacts here so maintainers can pull/run them directly.
Source commit (fork):
efc6a6fon branchrepro/issue-15380-line-truncationIf preferred, I can also paste a single patch file in this issue thread.
[-]Repro artifacts for line truncation / missing middle output line (issue #15380)[/-][+]Agent output getting truncated in the middle of the terminal scrollback[/+]grnbtqdbyx-create commentedon May 31, 2026
cowwoc commentedon Jun 4, 2026
@fcoury-oai were you able to reproduce the problem using the testcase?
fix(tui): count wrapped rows by real terminal width to stop history o…
fix(tui): count wrapped rows by real terminal width to stop history o…
DMIGitH commentedon Jul 13, 2026
This is just getting worse. Adding the tui alternate_never feels like a slight reduction but not even close to being a fix.
cowwoc commentedon Aug 20, 2026
@etraut-openai I can still reproduce this issue on v1.148.0. This is particularly painful because I can't safely scroll back through the terminal history without risking permanent gaps in the output.
The issue is 100% reproducible in my environment, and I've provided a deterministic testcase. Could someone from the Codex team please try running it on your end?
I'd be happy to prepare a PR if you’re open to reviewing and accepting a fix. Please let me know whether that would be useful and where you'd recommend starting.
Potentially related issues: #15380, #26570, #27644, #30745
DMIGitH commentedon Aug 20, 2026
It is a major PITA but in the cli window resizing the window causes the entire contents to be redrawn. At that point I can safely scroll up and view the trashed text.
cowwoc commentedon Aug 21, 2026
I tested Codex 0.149.0, which includes PR #39619.
Findings:
missing_count=1, withS-0391missing.missing_count=0.PR #39619 is clearly related because it fixes the Windows Terminal path by avoiding partial DEC scroll regions and preserving scrollback. However, it ultimately did not fix the same problem reproduced here under Linux/tmux. The issue remains reproducible in that environment.
michael-jennings commentedon Aug 27, 2026
same issue. how is this a freaking thing since may 27
cowwoc commentedon Aug 27, 2026
@michael-jennings This issue isn't getting enough visibility. If you want it fixed, try to recruit more users to vote for it.
garysassano commentedon Sep 12, 2026
Additional current-version evidence from WSL and the VS Code integrated terminal.
Environment:
codex-cli 0.154.01.137.0, integrated terminal using xterm.jsTERM=xterm-256colorAfter submitting a new prompt, several middle rows from a previous assistant response disappeared from the visible scrollback while the rest of the conversation remained visible. The missing rows were part of a Markdown table. The complete response remained in the local Codex session JSONL, confirming that the model output was retained and the failure was in terminal rendering or scrollback.
This extends the report to a current
0.154.0installation and a VS Code xterm.js host. It also appears related to #27644.