From 17719f9f87b80fabd2af05c213b781611b9ee0e3 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Fri, 11 Apr 2025 21:39:50 -0300 Subject: [PATCH] agent: Add "Install MCPs" to panel menu (#28616) Also took the opportunity to rename the "Continue in New Thread" item to a potentially clearer name. Release Notes: - N/A --- crates/agent/src/assistant_panel.rs | 30 +++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/crates/agent/src/assistant_panel.rs b/crates/agent/src/assistant_panel.rs index 75f4db9ff3..0d8682abf5 100644 --- a/crates/agent/src/assistant_panel.rs +++ b/crates/agent/src/assistant_panel.rs @@ -1088,20 +1088,30 @@ impl AssistantPanel { window, cx, |menu, _window, _cx| { - menu.action( + menu + .when(!is_empty, |menu| { + menu.action( + "Start New From Summary", + Box::new(NewThread { + from_thread_id: Some(thread_id.clone()), + }), + ).separator() + }) + .action( "New Text Thread", NewTextThread.boxed_clone(), ) - .when(!is_empty, |menu| { - menu.action( - "Continue in New Thread", - Box::new(NewThread { - from_thread_id: Some(thread_id.clone()), - }), - ) - }) - .separator() .action("Settings", OpenConfiguration.boxed_clone()) + .separator() + .action( + "Install MCPs", + zed_actions::Extensions { + category_filter: Some( + zed_actions::ExtensionCategoryFilter::ContextServers, + ), + } + .boxed_clone(), + ) }, )) }),