mirror of
https://github.com/openai/codex.git
synced 2026-05-04 21:32:21 +03:00
feat: close all threads in /new (#9478)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user