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.

thread view: Add link to docs in the toolbar plus menu (#36883)

Danilo Leal628a9cd8eab0
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index 1eafb8dd4d0..269aec33659 100644
--- a/crates/agent_ui/src/agent_panel.rs
+++ b/crates/agent_ui/src/agent_panel.rs
@@ -9,6 +9,7 @@ use agent_servers::AgentServerSettings;
use agent2::{DbThreadMetadata, HistoryEntry};
use db::kvp::{Dismissable, KEY_VALUE_STORE};
use serde::{Deserialize, Serialize};
+use zed_actions::OpenBrowser;
use zed_actions::agent::ReauthenticateAgent;
use crate::acp::{AcpThreadHistory, ThreadHistoryEvent};
@@ -2689,6 +2690,15 @@ impl AgentPanel {
}
menu
+ })
+ .when(cx.has_flag::<GeminiAndNativeFeatureFlag>(), |menu| {
+ menu.separator().link(
+ "Add Your Own Agent",
+ OpenBrowser {
+ url: "https://agentclientprotocol.com/".into(),
+ }
+ .boxed_clone(),
+ )
});
menu
}))
diff --git a/crates/ui/src/components/context_menu.rs b/crates/ui/src/components/context_menu.rs
index 25575c4f1e1..21ab283d883 100644
--- a/crates/ui/src/components/context_menu.rs
+++ b/crates/ui/src/components/context_menu.rs
@@ -561,7 +561,7 @@ impl ContextMenu {
action: Some(action.boxed_clone()),
handler: Rc::new(move |_, window, cx| window.dispatch_action(action.boxed_clone(), cx)),
icon: Some(IconName::ArrowUpRight),
- icon_size: IconSize::Small,
+ icon_size: IconSize::XSmall,
icon_position: IconPosition::End,
icon_color: None,
disabled: false,