diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index 5ca2f126ca596c4ccba185378fd914c314d0d55c..3fa98439c28e7d32d3663824827adea2399a2f01 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -5168,7 +5168,7 @@ mod tests { let text_thread_store = cx.new(|cx| TextThreadStore::fake(project.clone(), cx)); let panel = cx.new(|cx| AgentPanel::new(workspace, text_thread_store, None, window, cx)); - workspace.set_left_drawer(panel.clone(), cx); + workspace.set_left_drawer(panel, cx); }); cx.run_until_parked(); diff --git a/crates/agent_ui/src/conversation_view.rs b/crates/agent_ui/src/conversation_view.rs index cd53e16a9baa8f19cdc2b3509c3fb6b839b104b0..60d21c9e0481fbbd1363f71f3681072d50a80c5c 100644 --- a/crates/agent_ui/src/conversation_view.rs +++ b/crates/agent_ui/src/conversation_view.rs @@ -3378,7 +3378,7 @@ pub(crate) mod tests { cx.new(|cx| TextThreadStore::fake(workspace.project().clone(), cx)); let panel = cx.new(|cx| crate::AgentPanel::new(workspace, text_thread_store, None, window, cx)); - workspace.set_left_drawer(panel.clone(), cx); + workspace.set_left_drawer(panel, cx); // Open the dock and activate the agent panel so it's visible workspace.focus_drawer::(window, cx); diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index f44706375ab8fc9eaf2580732143781941d18844..2cd2102690cda526bc3a17adec9e27f1c16d98cb 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -721,7 +721,7 @@ async fn initialize_agent_panel( let prompt_builder = prompt_builder.clone(); cx.observe_global_in::(window, move |workspace, window, cx| { let prompt_builder = prompt_builder.clone(); - setup_or_teardown_ai_panels(workspace, prompt_builder.clone(), window, cx) + setup_or_teardown_ai_panels(workspace, prompt_builder, window, cx) .detach_and_log_err(cx); }) .detach();