Commit 9933cfa
fix(twinki): avoid full redraw for off-screen animation ticks (#1433)
* local
* fix(twinki): avoid full redraw for off-screen animation ticks
- Skip static output accumulation/prepend in alt screen (no scrollback)
- Replace full CLEAR_ALL redraw with viewport-only re-scan when content
didn't shrink and changes are above the viewport. This prevents
flashing and scrollback wipe from spinner/thinking animations that
scroll past the viewport during long streaming responses.
- Shrink case still falls through to full redraw (stale rows need clearing)
---------
Co-authored-by: Kenneth S. <kennvene@amazon.com>1 parent d66c16e commit 9933cfa
2 files changed
Lines changed: 35 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
| |||
1266 | 1266 | | |
1267 | 1267 | | |
1268 | 1268 | | |
1269 | | - | |
| 1269 | + | |
| 1270 | + | |
1270 | 1271 | | |
1271 | 1272 | | |
1272 | 1273 | | |
| |||
1410 | 1411 | | |
1411 | 1412 | | |
1412 | 1413 | | |
1413 | | - | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1414 | 1418 | | |
1415 | | - | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
1416 | 1437 | | |
1417 | 1438 | | |
1418 | 1439 | | |
| |||
0 commit comments