mirror of
https://github.com/warpdotdev/warp.git
synced 2026-05-06 23:32:51 +08:00
## Description Fixes #9838 and fixes REMOTE-1423 Add a block-level flag for conditionally clearing output grid contents in-place on ansi::ClearMode::All (`esc[2j`) rather than clearing by 'scrolling' + appending to block-level scrollback. In a traditional terminal the sequence clears the entire screen - in ghostty we see that frame-redrawing resizes for claude code, for instance, clear the entire terminal display (not appending to scrollback). This implements that behavior at a block-level for CLI agent TUIs that Warp is 'aware' of. Preserves existing behavior for other cases to limit blast radius of the change - I think there are cases where the current block-level clear-by-scrolling behavior might be preferable/intended CHANGELOG-BUG-FIX: Fixes issue with repeated TUI redraws for CLI agents on terminal pane resize.