From 0d4ca71e685c9d7b0f5e8f1e79cc04dee4c99a3b Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 8 Apr 2025 19:56:01 -0300 Subject: [PATCH] agent: Change "prompt editor" to "text thread" (#28370) Release Notes: - N/A --- crates/agent/src/assistant_panel.rs | 2 +- crates/agent/src/thread_history.rs | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/crates/agent/src/assistant_panel.rs b/crates/agent/src/assistant_panel.rs index f269d1ca2e83e94cacef5a63a0f410cc39e78f7d..950b8acaaa2006219c19f312c1ec34408f8a3d66 100644 --- a/crates/agent/src/assistant_panel.rs +++ b/crates/agent/src/assistant_panel.rs @@ -1080,7 +1080,7 @@ impl AssistantPanel { cx, |menu, _window, _cx| { menu.action( - "New Prompt Editor", + "New Text Thread", NewPromptEditor.boxed_clone(), ) .when(!is_empty, |menu| { diff --git a/crates/agent/src/thread_history.rs b/crates/agent/src/thread_history.rs index cf8aee7329e7d4d614cce33f715949cf733c7a90..a4102f28d65bf0847c810f5adb0c7322b4cac28f 100644 --- a/crates/agent/src/thread_history.rs +++ b/crates/agent/src/thread_history.rs @@ -452,12 +452,7 @@ impl RenderOnce for PastThread { .shape(IconButtonShape::Square) .icon_size(IconSize::XSmall) .tooltip(move |window, cx| { - Tooltip::for_action( - "Delete Thread", - &RemoveSelectedThread, - window, - cx, - ) + Tooltip::for_action("Delete", &RemoveSelectedThread, window, cx) }) .on_click({ let assistant_panel = self.assistant_panel.clone(); @@ -559,12 +554,7 @@ impl RenderOnce for PastContext { .shape(IconButtonShape::Square) .icon_size(IconSize::XSmall) .tooltip(move |window, cx| { - Tooltip::for_action( - "Delete Prompt Editor", - &RemoveSelectedThread, - window, - cx, - ) + Tooltip::for_action("Delete", &RemoveSelectedThread, window, cx) }) .on_click({ let assistant_panel = self.assistant_panel.clone();