An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/17555#issuecomment-4280872035
Daniel5cedae40badc
diff --git a/kernel/model/assets.go b/kernel/model/assets.goindex 8e474b16b4..74c655c0f6 100644--- a/kernel/model/assets.go+++ b/kernel/model/assets.go@@ -246,7 +246,7 @@ func NetAssets2LocalAssets(rootID string, onlyImg bool, originalURL string) (errerr = netAssets2LocalAssets0(tree, onlyImg, originalURL, assetsDirPath, true)go func() {time.Sleep(128 * time.Microsecond)- ReloadProtyle(rootID)+ util.PushIsSyncing(rootID, false)}()return}diff --git a/kernel/util/websocket.go b/kernel/util/websocket.goindex 51b49dcdef..816ff2862e 100644--- a/kernel/util/websocket.go+++ b/kernel/util/websocket.go@@ -351,6 +351,10 @@ func PushReloadProtyle(rootID string) {BroadcastByType("protyle", "reload", 0, "", rootID)}+func PushIsSyncing(rootID string, isSyncing bool) {+ BroadcastByType("protyle", "isSyncing", 0, "", map[string]any{"rootID": rootID, "isSyncing": isSyncing})+}+func PushSetRefDynamicText(rootID, blockID, defBlockID, refText string) {BroadcastByType("main", "setRefDynamicText", 0, "", map[string]any{"rootID": rootID, "blockID": blockID, "defBlockID": defBlockID, "refText": refText})}