Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Refresh agent registry when reopening page (#50078)
Ben Brandt6fb5109d9b7f
diff --git a/crates/agent_ui/src/agent_ui.rs b/crates/agent_ui/src/agent_ui.rsindex 3f082e86b1f..7f05437cbae 100644--- a/crates/agent_ui/src/agent_ui.rs+++ b/crates/agent_ui/src/agent_ui.rs@@ -310,6 +310,10 @@ pub fn init(.find_map(|item| item.downcast::<AgentRegistryPage>());if let Some(existing) = existing {+ existing.update(cx, |_, cx| {+ project::AgentRegistryStore::global(cx)+ .update(cx, |store, cx| store.refresh(cx));+ });workspace.activate_item(&existing, true, true, window, cx);} else {let registry_page = AgentRegistryPage::new(workspace, window, cx);