Skip to content

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

:recycle: Improve outline loading mechanism https://github.com/siyuan-note/siyuan/issues/10884

Daniel951d53d3f892
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index 5b739bc045..c47c066cf2 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -1314,9 +1314,7 @@ func (tx *Transaction) commit() (err error) {
}
var sources []interface{}
- for _, op := range tx.DoOperations {
- sources = append(sources, op)
- }
+ sources = append(sources, tx)
util.PushSaveDoc(tree.ID, "tx", sources)
}
refreshDynamicRefTexts(tx.nodes, tx.trees)