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/pull/17196
Daniel1a4109d1e5e4
diff --git a/kernel/model/blockial.go b/kernel/model/blockial.goindex c6925ea7cc..3640e50dcb 100644--- a/kernel/model/blockial.go+++ b/kernel/model/blockial.go@@ -355,18 +355,11 @@ func pushBlockAttrs(oldAttrs map[string]string, node *ast.Node) {if "" != node.AttributeViewType {data["data-av-type"] = node.AttributeViewType}- doOp := &Operation{Action: "updateAttrs", Data: data, ID: node.ID}+ doOp := &Operation{Action: "updateAttrs", Data: data, ID: node.ID, RootID: treenode.TreeRoot(node).ID}evt := util.NewCmdResult("transactions", 0, util.PushModeBroadcast)evt.Data = []*Transaction{{DoOperations: []*Operation{doOp},UndoOperations: []*Operation{},}}util.PushEvent(evt)-- util.BroadcastByType("main", "setBlockAttrs", 0, "", map[string]interface{}{- "id": node.ID,- "rootID": treenode.TreeRoot(node).ID,- "old": oldAttrs,- "new": newAttrs,- })}diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 95bf94e433..a7ee018c7c 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -1822,6 +1822,7 @@ type Operation struct {Action string `json:"action"`Data interface{} `json:"data"`ID string `json:"id"`+ RootID string `json:"rootID"`ParentID string `json:"parentID"`PreviousID string `json:"previousID"`NextID string `json:"nextID"`