Skip to content

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

:bug: Scan opened encrypted notebooks in FindAttributeViewPath so adding the first AV row no longer fails and shows a spurious filter tip https://github.com/siyuan-note/siyuan/issues/18034

Daniel1e782b0d87be
diff --git a/kernel/av/encrypted_hook.go b/kernel/av/encrypted_hook.go
index 4f2ce3599c..eefb3a1689 100644
--- a/kernel/av/encrypted_hook.go
+++ b/kernel/av/encrypted_hook.go
@@ -91,6 +91,15 @@ func FindAttributeViewPath(avID string) (path string, boxID string) {
if filelock.IsExist(globalPath) {
return globalPath, ""
}
+ // 遍历已打开的加密笔记本查找
+ if AVEncryptedBoxIDs != nil {
+ for _, encBoxID := range AVEncryptedBoxIDs() {
+ encPath := attributeViewDataPathByBox(avID, encBoxID)
+ if filelock.IsExist(encPath) {
+ return encPath, encBoxID
+ }
+ }
+ }
return "", ""
}