claude-code - 💡(How to fix) Fix TUI scrollback fills with duplicate frames on Linux (Wayland); not reproduced on Windows

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…
RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code 2.1.114
  • Linux (Wayland; XDG_SESSION_TYPE=wayland)
  • TERM=xterm-256color, COLORTERM=truecolor
  • Reproduced in two terminal emulators: Warp (dev.warp.Warp) and Konsole
  • Not reproduced in Warp on Windows 11 with the same Claude Code version

Behavior Scrolling up through a long session shows the same blocks repeated many times. The duplication includes:

  • Claude Code session-start banner
  • Statusline rows
  • system-reminder injections
  • Prior user prompts and assistant turns

Duplication grows roughly with turn count. Concrete artifact: the Claude Code startup banner (which should render exactly once at session start) appears embedded mid-conversation in scrollback after a number of turns — the TUI is re-emitting earlier screen content into the main scrollback buffer rather than updating in place on the active region.

Not reproduced on Windows 11 + Warp, same Claude Code version.

Hypothesis TUI redraw path may be writing full-frame rewrites to the main scrollback buffer on Linux PTYs instead of using cursor-reposition / alt-screen on the active region. The Windows ConPTY path appears to handle this correctly.

Impact Cosmetic but compounding — scrollback becomes unsearchable in long sessions; difficult to grep history reliably.

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

claude-code - 💡(How to fix) Fix TUI scrollback fills with duplicate frames on Linux (Wayland); not reproduced on Windows