Keep chat scrolling under user control

This commit is contained in:
Georg Bauer
2026-07-27 18:58:45 +02:00
parent 7f14b6008a
commit 22a939751e
3 changed files with 50 additions and 8 deletions

View File

@@ -175,6 +175,7 @@ impl App {
self.remember_project(project_id);
self.selected_session = None;
self.conversation.clear();
self.chat_follow_tail = true;
self.context_notice = None;
self.clear_a2ui();
self.composer.clear();
@@ -189,6 +190,7 @@ impl App {
pub(super) fn discard_session(&mut self, project_id: i32) {
if self.drafts.remove(&project_id).is_some() && self.draft_selected(project_id) {
self.conversation.clear();
self.chat_follow_tail = true;
self.context_notice = None;
self.clear_a2ui();
self.composer.clear();