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

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

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(),