Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/8098

Vanessae8b91ee95b4d
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 26a375a571..b0ab1ec105 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -28,7 +28,11 @@ export const reloadSync = (data:{upsertRootIDs: string[], removeRootIDs: string[
}
})
allModels.graph.forEach(item => {
- item.searchGraph(false);
+ if (item.type === "local" && data.removeRootIDs.includes(item.rootId)) {
+ item.parent.parent.removeTab(item.parent.id, false, false, false);
+ } else if (item.type !== "local" || data.upsertRootIDs.includes(item.rootId)){
+ item.searchGraph(false);
+ }
})
allModels.outline.forEach(item => {
if (item.type === "local" && data.removeRootIDs.includes(item.blockId)) {