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);