Skip to content

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

:bug: Unable to enter title immediately after creating database Fix https://github.com/siyuan-note/siyuan/issues/11143

Danielc7d9b18b80b0
diff --git a/kernel/av/mirror.go b/kernel/av/mirror.go
index bd9db29e0a..88786d6f5d 100644
--- a/kernel/av/mirror.go
+++ b/kernel/av/mirror.go
@@ -194,7 +194,7 @@ func UpsertBlockRel(avID, blockID string) (ret bool) {
blockIDs = append(blockIDs, blockID)
blockIDs = gulu.Str.RemoveDuplicatedElem(blockIDs)
avBlocks[avID] = blockIDs
- ret = oldLen != len(blockIDs)
+ ret = oldLen != len(blockIDs) && 0 != oldLen
data, err := msgpack.Marshal(avBlocks)
if nil != err {