feat: close all threads in /new (#9478)

This commit is contained in:
jif-oai authored and GitHub committed 2026-01-19 11:35:03 +00:00
1 parent 7ebe13f692
commit 186794dbb3
4 files changed
+15 -1

No files matched your search

+3
View File
@@ -672,6 +672,9 @@ impl App {
let summary =
session_summary(self.chat_widget.token_usage(), self.chat_widget.thread_id());
self.shutdown_current_thread().await;
if let Err(err) = self.server.remove_and_close_all_threads().await {
tracing::warn!(error = %err, "failed to close all threads");
}
let init = crate::chatwidget::ChatWidgetInit {
config: self.config.clone(),
frame_requester: tui.frame_requester(),