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_ui: Reduce label repetitiveness on new thread menu (#42001)

Danilo Lealc8ada5b1ae9b
diff --git a/crates/agent_ui/src/agent_configuration.rs b/crates/agent_ui/src/agent_configuration.rs
index 4ece220b200..ca033ced5c7 100644
--- a/crates/agent_ui/src/agent_configuration.rs
+++ b/crates/agent_ui/src/agent_configuration.rs
@@ -1013,7 +1013,7 @@ impl AgentConfiguration {
.child(Divider::horizontal().color(DividerColor::BorderFaded))
.child(self.render_agent_server(
AgentIcon::Name(IconName::AiOpenAi),
- "Codex",
+ "Codex CLI",
false,
))
.child(Divider::horizontal().color(DividerColor::BorderFaded))
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index 2610933057b..c43a48e3538 100644
--- a/crates/agent_ui/src/agent_panel.rs
+++ b/crates/agent_ui/src/agent_panel.rs
@@ -1880,7 +1880,12 @@ impl AgentPanel {
{
let focus_handle = focus_handle.clone();
move |_window, cx| {
- Tooltip::for_action_in("New…", &ToggleNewThreadMenu, &focus_handle, cx)
+ Tooltip::for_action_in(
+ "New Thread…",
+ &ToggleNewThreadMenu,
+ &focus_handle,
+ cx,
+ )
}
},
)
@@ -1978,7 +1983,7 @@ impl AgentPanel {
.separator()
.header("External Agents")
.item(
- ContextMenuEntry::new("New Claude Code Thread")
+ ContextMenuEntry::new("New Claude Code")
.icon(IconName::AiClaude)
.disabled(is_via_collab)
.icon_color(Color::Muted)
@@ -2004,7 +2009,7 @@ impl AgentPanel {
}),
)
.item(
- ContextMenuEntry::new("New Codex Thread")
+ ContextMenuEntry::new("New Codex CLI")
.icon(IconName::AiOpenAi)
.disabled(is_via_collab)
.icon_color(Color::Muted)
@@ -2030,7 +2035,7 @@ impl AgentPanel {
}),
)
.item(
- ContextMenuEntry::new("New Gemini CLI Thread")
+ ContextMenuEntry::new("New Gemini CLI")
.icon(IconName::AiGemini)
.icon_color(Color::Muted)
.disabled(is_via_collab)
@@ -2074,7 +2079,7 @@ impl AgentPanel {
for agent_name in agent_names {
let icon_path = agent_server_store_read.agent_icon(&agent_name);
let mut entry =
- ContextMenuEntry::new(format!("New {} Thread", agent_name));
+ ContextMenuEntry::new(format!("New {}", agent_name));
if let Some(icon_path) = icon_path {
entry = entry.custom_icon_path(icon_path);
} else {