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: Use the thread title for agent notifications (#59377)

Edward Comptone45e42af6e6e
diff --git a/crates/agent_ui/src/conversation_view.rs b/crates/agent_ui/src/conversation_view.rs
index 1654ff0d02f..ce01dcfc01a 100644
--- a/crates/agent_ui/src/conversation_view.rs
+++ b/crates/agent_ui/src/conversation_view.rs
@@ -2695,8 +2695,9 @@ impl ConversationView {
let root_work_dirs = root_thread.work_dirs().cloned();
let root_title = root_thread.title();
- // TODO: Change this once we have title summarization for external agents.
- let title = self.agent.agent_id().0;
+ let title = root_title
+ .clone()
+ .unwrap_or_else(|| self.agent.agent_id().0);
match settings.notify_when_agent_waiting {
NotifyWhenAgentWaiting::PrimaryScreen => {