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: Improve ref count refresh https://github.com/siyuan-note/siyuan/issues/12432
Daniele977fcd66f68
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 3104457180..322c2a85ea 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -384,6 +384,8 @@ func (tx *Transaction) doMove(operation *Operation) (ret *TxErr) {if err = tx.writeTree(targetTree); err != nil {return}+ task.AppendAsyncTaskWithDelay(task.SetDefRefCount, 1*time.Second, pushSetDefRefCount, srcTree.ID, srcTree.ID)+ task.AppendAsyncTaskWithDelay(task.SetDefRefCount, 1*time.Second, pushSetDefRefCount, targetTree.ID, srcNode.ID)}return}@@ -463,6 +465,8 @@ func (tx *Transaction) doMove(operation *Operation) (ret *TxErr) {if err = tx.writeTree(targetTree); err != nil {return &TxErr{code: TxErrCodeWriteTree, msg: err.Error(), id: id}}+ task.AppendAsyncTaskWithDelay(task.SetDefRefCount, 1*time.Second, pushSetDefRefCount, srcTree.ID, srcTree.ID)+ task.AppendAsyncTaskWithDelay(task.SetDefRefCount, 1*time.Second, pushSetDefRefCount, targetTree.ID, srcNode.ID)}return}