From 1024265b45f96a188fc2a5065a27255215b00a89 Mon Sep 17 00:00:00 2001 From: Danilo Leal Date: Tue, 26 Aug 2025 14:10:46 -0300 Subject: [PATCH] Add latest riffing --- crates/agent_ui/src/agent_configuration.rs | 2 +- crates/agent_ui/src/agent_panel.rs | 4 ++-- crates/agent_ui/src/ui/acp_onboarding_modal.rs | 9 +++++---- crates/client/src/zed_urls.rs | 8 ++++++++ 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/crates/agent_ui/src/agent_configuration.rs b/crates/agent_ui/src/agent_configuration.rs index 7a8a479766..224f49cc3e 100644 --- a/crates/agent_ui/src/agent_configuration.rs +++ b/crates/agent_ui/src/agent_configuration.rs @@ -1093,7 +1093,7 @@ impl AgentConfiguration { ) .child( Label::new( - "Bring the agent of your choice to Zed via our new Agent Client Protocol", + "Bring the agent of your choice to Zed via our new Agent Client Protocol.", ) .color(Color::Muted), ), diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index 07420505ad..d1cf748733 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -2681,9 +2681,9 @@ impl AgentPanel { }) .when(cx.has_flag::(), |menu| { menu.separator().link( - "Add Your Own Agent", + "Add Other Agents", OpenBrowser { - url: "https://agentclientprotocol.com/".into(), + url: zed_urls::external_agents_docs(cx), } .boxed_clone(), ) diff --git a/crates/agent_ui/src/ui/acp_onboarding_modal.rs b/crates/agent_ui/src/ui/acp_onboarding_modal.rs index 7f157b2911..0ed9de7221 100644 --- a/crates/agent_ui/src/ui/acp_onboarding_modal.rs +++ b/crates/agent_ui/src/ui/acp_onboarding_modal.rs @@ -1,3 +1,4 @@ +use client::zed_urls; use gpui::{ ClickEvent, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, MouseDownEvent, Render, linear_color_stop, linear_gradient, @@ -47,7 +48,7 @@ impl AcpOnboardingModal { } fn view_docs(&mut self, _: &ClickEvent, _: &mut Window, cx: &mut Context) { - cx.open_url("https://agentclientprotocol.com/"); + cx.open_url(&zed_urls::external_agents_docs(cx)); cx.notify(); acp_onboarding_event!("Documentation Link Clicked"); @@ -191,7 +192,7 @@ impl Render for AcpOnboardingModal { ) .child(Headline::new("Bring Your Own Agent to Zed").size(HeadlineSize::Large)); - let copy = "Bring the agent of your choice to Zed via our new Agent Client Protocol, starting with Google's Gemini CLI integration."; + let copy = "Bring the agent of your choice to Zed via our new Agent Client Protocol (ACP), starting with Google's Gemini CLI integration."; let open_panel_button = Button::new("open-panel", "Start with Gemini CLI") .icon_size(IconSize::Indicator) @@ -199,7 +200,7 @@ impl Render for AcpOnboardingModal { .full_width() .on_click(cx.listener(Self::open_panel)); - let docs_button = Button::new("add-agent", "Add Your Own Agent") + let docs_button = Button::new("add-other-agents", "Add Other Agents") .icon(IconName::ArrowUpRight) .icon_size(IconSize::Indicator) .icon_color(Color::Muted) @@ -219,7 +220,7 @@ impl Render for AcpOnboardingModal { .id("acp-onboarding") .key_context("AcpOnboardingModal") .relative() - .w(rems(32.)) + .w(rems(34.)) .h_full() .elevation_3(cx) .track_focus(&self.focus_handle(cx)) diff --git a/crates/client/src/zed_urls.rs b/crates/client/src/zed_urls.rs index 9df41906d7..7193c09947 100644 --- a/crates/client/src/zed_urls.rs +++ b/crates/client/src/zed_urls.rs @@ -43,3 +43,11 @@ pub fn ai_privacy_and_security(cx: &App) -> String { server_url = server_url(cx) ) } + +/// Returns the URL to Zed AI's external agents documentation. +pub fn external_agents_docs(cx: &App) -> String { + format!( + "{server_url}/docs/ai/external-agents", + server_url = server_url(cx) + ) +}