An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Close user guide when exiting https://ld246.com/article/1708782043043
Daniel1f22ee3d7e01
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex a961ebb982..c664da1664 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -1011,11 +1011,20 @@ func closeUserGuide() {}msgId := util.PushMsg(Conf.language(233), 30000)+ evt := util.NewCmdResult("unmount", 0, util.PushModeBroadcast)+ evt.Data = map[string]interface{}{+ "box": boxID,+ }+ util.PushEvent(evt)+unindex(boxID)+if removeErr := filelock.Remove(boxDirPath); nil != removeErr {logging.LogErrorf("remove corrupted user guide box [%s] failed: %s", boxDirPath, removeErr)}+sql.WaitForWritingDatabase()+util.PushClearMsg(msgId)logging.LogInfof("closed user guide box [%s]", boxID)}