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.

agent: Clearer distinction that we are in Text Thread history (#47295)

Ben Brandtccedb24757e3
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index dc3b32cb7fa..4a136251558 100644
--- a/crates/agent_ui/src/agent_panel.rs
+++ b/crates/agent_ui/src/agent_panel.rs
@@ -545,7 +545,11 @@ impl AgentPanel {
if let Some(kind) = panel.read(cx).history_kind_for_selected_agent(cx) {
menu =
Self::populate_recently_updated_menu_section(menu, panel, kind, cx);
- menu = menu.action("View All", Box::new(OpenHistory));
+ let view_all_label = match kind {
+ HistoryKind::AgentThreads => "View All",
+ HistoryKind::TextThreads => "View All Text Threads",
+ };
+ menu = menu.action(view_all_label, Box::new(OpenHistory));
}
}
@@ -1335,7 +1339,7 @@ impl AgentPanel {
return menu;
}
- menu = menu.header("Recently Updated");
+ menu = menu.header("Recent Text Threads");
for entry in entries {
let title = if entry.title.is_empty() {
@@ -1735,7 +1739,7 @@ impl AgentPanel {
ActiveView::History { kind } => {
let title = match kind {
HistoryKind::AgentThreads => "History",
- HistoryKind::TextThreads => "Text Threads",
+ HistoryKind::TextThreads => "Text Thread History",
};
Label::new(title).truncate().into_any_element()
}
diff --git a/crates/agent_ui/src/text_thread_history.rs b/crates/agent_ui/src/text_thread_history.rs
index f96a1db2dac..c19f64bc350 100644
--- a/crates/agent_ui/src/text_thread_history.rs
+++ b/crates/agent_ui/src/text_thread_history.rs
@@ -521,7 +521,7 @@ impl Render for TextThreadHistory {
if has_no_history {
view.justify_center().items_center().child(
- Label::new("You don't have any past threads yet.")
+ Label::new("You don't have any past text threads yet.")
.size(LabelSize::Small)
.color(Color::Muted),
)