During full redraws, the TUI emitted \x1b[3J (clear scrollback) before \x1b[2J\x1b[H (clear screen + home). In terminals like Ubuntu Terminal that honor CSI 3J, this destroyed the scrollback buffer and caused the scrollbar/view position to jump to the top during phase transitions. Replace with just \x1b[2J\x1b[H which clears the visible screen and homes the cursor without touching scrollback history. This preserves view continuity while still performing a clean redraw. |
||
|---|---|---|
| .. | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||