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
[BUG] Post-compact screen overwrites existing terminal content instead of clearing (PowerShell / Windows Terminal) #35803
Claude Code: Intermittent across multiple versions (current and prior)
Description
After context compaction (auto or manual /compact), the post-compact redraw overwrites the existing terminal content in-place rather than clearing the screen first. This leaves visual residue — fragments of the pre-compact output bleed through behind the new content, making the session unreadable.
The screenshot below shows the post-compact state where raw JSON/markdown from the compacted context summary renders on top of the previous tool-call output (Read operations, file paths, line counts), producing garbled overlapping text.
Expected Behavior
Post-compact should clear the viewport (or scroll past existing content) before rendering the fresh state, so the user sees a clean post-compact screen.
Actual Behavior
New content renders on top of old content at the same cursor position, producing garbled overlapping text. The pre-compact output (tool calls, file reads) remains visible underneath the post-compact summary.
Reproduction
Start a Claude Code session in PowerShell (Windows Terminal)
Run enough conversation to trigger auto-compact (or run /compact)
Observe that the post-compact screen overwrites existing terminal lines instead of clearing first
Frequency: Intermittent — does not happen every compact, but has appeared across multiple versions. Not always reproducible on demand.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
github-actions commentedon Mar 18, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Mar 22, 2026
This issue has been automatically closed as a duplicate of #19637.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
github-actions commentedon Mar 29, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.