An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:technologist: https://github.com/siyuan-note/siyuan/issues/15798
Daniel29244a1f8c2b
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 7851dd1915..15a688e977 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -692,6 +692,10 @@ func (tx *Transaction) doAppendInsert(operation *Operation) (ret *TxErr) {return &TxErr{code: TxErrCodeBlockNotFound, id: operation.ParentID}}isContainer := node.IsContainerBlock()+ if !isContainer {+ slices.Reverse(toInserts)+ }+for i := 0; i < len(toInserts); i++ {toInsert := toInserts[i]if isContainer {@@ -720,6 +724,9 @@ func (tx *Transaction) doAppendInsert(operation *Operation) (ret *TxErr) {} else {node.InsertAfter(toInsert)}++ createdUpdated(toInsert)+ tx.nodes[toInsert.ID] = toInsert}createdUpdated(insertedNode)