Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_panel: Keep current title name when generating new title (#55512)
Anthony Eidc97ad4692f99
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rsindex e52e82120a2..8285da9e113 100644--- a/crates/agent_ui/src/agent_panel.rs+++ b/crates/agent_ui/src/agent_panel.rs@@ -29,7 +29,6 @@ use zed_actions::{assistant::{FocusAgent, OpenRulesLibrary, Toggle, ToggleFocus},};-use crate::DEFAULT_THREAD_TITLE;use crate::ExpandMessageEditor;use crate::ManageProfiles;use crate::agent_connection_store::AgentConnectionStore;@@ -2691,7 +2690,7 @@ impl AgentPanel {.map(|r| r.read(cx).title_editor.clone()){if is_generating_title {- Label::new(DEFAULT_THREAD_TITLE)+ Label::new(server_view_ref.title(cx)).color(Color::Muted).truncate().with_animation(