An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lock: Clean up notebook crypt backup on box removal https://github.com/siyuan-note/siyuan/issues/18034
Danielfc88e7ee593a
diff --git a/kernel/model/mount.go b/kernel/model/mount.goindex 9b2aa90c7e..c3c6decdd4 100644--- a/kernel/model/mount.go+++ b/kernel/model/mount.go@@ -165,14 +165,14 @@ func RemoveBox(boxID string) (err error) {}}- if err = filelock.Remove(localPath); err != nil {- return- }- // 加密笔记本删除时清理其独立加密 db 文件(含 WAL/SHM),避免残留- if isEncrypted {- sql.RemoveEncryptedDBFile(boxID)- treenode.RemoveEncryptedBlockTreeDBFile(boxID)- }+ if err = filelock.Remove(localPath); err != nil {+ return+ }+ // 加密笔记本删除时清理其独立加密 db 文件(含 WAL/SHM),避免残留+ if isEncrypted {+ sql.RemoveEncryptedDBFile(boxID)+ treenode.RemoveEncryptedBlockTreeDBFile(boxID)+ }if isUserGuide {if avFiles, readAvErr := getUserGuideAVJSONFiles(boxID); nil == readAvErr {