From a7163623e70dc1e7298de5334a96782148641e35 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 6 Nov 2025 09:55:06 -0300 Subject: [PATCH] agent_ui: Make "add more agents" menu item take to extensions (#42098) Now that agent servers are a thing, this is the primary and easiest way to quickly add more agents to Zed, without touching any settings JSON file. :) Release Notes: - N/A --- crates/agent_ui/src/agent_panel.rs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index 10b64400b2cb3fc8887f4d59a2db126881dfe29e..58839d5d8df2a6e2e149800ecf47b30c3383bc0b 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize}; use settings::{ DefaultAgentView as DefaultView, LanguageModelProviderSetting, LanguageModelSelection, }; -use zed_actions::OpenBrowser; + use zed_actions::agent::{OpenClaudeCodeOnboardingModal, ReauthenticateAgent}; use crate::ui::{AcpOnboardingModal, ClaudeCodeOnboardingModal}; @@ -2131,12 +2131,20 @@ impl AgentPanel { menu }) .separator() - .link( - "Add Other Agents", - OpenBrowser { - url: zed_urls::external_agents_docs(cx), - } - .boxed_clone(), + .item( + ContextMenuEntry::new("Add More Agents") + .icon(IconName::Plus) + .icon_color(Color::Muted) + .handler({ + move |window, cx| { + window.dispatch_action(Box::new(zed_actions::Extensions { + category_filter: Some( + zed_actions::ExtensionCategoryFilter::AgentServers, + ), + id: None, + }), cx) + } + }), ) })) }