TUI duplicates rendered text in scrollback on long sessions (Windows + Linux)
Open 💬 13 comments Opened Apr 24, 2026 by NatanaelRibF
Bug: TUI duplicates rendered text as scrollback grows (both Windows + Linux)
Version: Claude Code 2.1.119
Platforms reproduced:
- Windows 10 Pro 19045 — Windows Terminal + Git Bash
- Linux (terminal emulator)
Symptoms:
After a session runs long (~300k+ tokens, many tool calls), previously-printed output starts duplicating in the scrollback — same assistant message and bash/powershell output appears twice, sometimes offset by a few lines. Makes re-reading prior analysis very hard.
Repro steps:
- Long-running session with many
Bash/PowerShelltool calls that stream output - Status line + recap banners (
※ recap: ...) redraw - Scroll up — previous outputs visible twice
Expected: Each message rendered exactly once in scrollback.
Extra context:
- Happens independently of terminal font (observed with Consolas on Windows and default on Linux)
- Happens with
⏵⏵ bypass permissions onmode enabled - Recaps enabled (not yet disabled via
/config) - Final assistant message +
recapblock appears to be the block most often duplicated
Happy to share redacted transcript on request.
This issue has 13 comments on GitHub. Read the full discussion on GitHub ↗