Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

sidebar: Enable archiving external agents threads (#51910)

Danilo Leal80bbeda58664
diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs
index 9897108376f..b143f8ea269 100644
--- a/crates/sidebar/src/sidebar.rs
+++ b/crates/sidebar/src/sidebar.rs
@@ -2259,7 +2259,7 @@ impl Sidebar {
thread.status,
AgentThreadStatus::Running | AgentThreadStatus::WaitingForConfirmation
);
- let can_delete = thread.agent == Agent::NativeAgent;
+
let session_id_for_delete = thread.session_info.session_id.clone();
let focus_handle = self.focus_handle.clone();
@@ -2317,7 +2317,7 @@ impl Sidebar {
}),
)
})
- .when(is_hovered && can_delete && !is_running, |this| {
+ .when(is_hovered && !is_running, |this| {
this.action_slot(
IconButton::new("archive-thread", IconName::Archive)
.icon_size(IconSize::Small)