Commit 9dd5384
authored
fix(tui): reset scroll state when clearing messages (#504)
When messages are cleared with /clear or similar commands, the scroll
state was not being properly reset. This caused two bugs:
1. The '↓ End' scroll hint would incorrectly appear after clearing
because chat_scroll_pinned_bottom was not reset to true
2. The TaskRunning hints (Esc to interrupt) could show incorrectly
because the scroll state was stale
Fixed by setting chat_scroll_pinned_bottom = true in clear_messages()
to ensure the UI correctly reflects that we're at the bottom of the
(now empty) message list.1 parent 72ddeae commit 9dd5384
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
| 893 | + | |
| 894 | + | |
893 | 895 | | |
894 | 896 | | |
895 | 897 | | |
| |||
0 commit comments