Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Make "add more agents" menu item take to extensions (#42098)
Danilo Leala7163623e70d
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rsindex 10b64400b2c..58839d5d8df 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)+ }+ }),)}))}