Skip to content

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

:art: Remove box conf if parse failed

Danielabd1030cb81d
diff --git a/kernel/model/box.go b/kernel/model/box.go
index bca5bdd527..91f6ff7806 100644
--- a/kernel/model/box.go
+++ b/kernel/model/box.go
@@ -123,6 +123,7 @@ func ListNotebooks() (ret []*Box, err error) {
}
if readErr = gulu.JSON.UnmarshalJSON(data, boxConf); nil != readErr {
logging.LogErrorf("parse box conf [%s] failed: %s", boxConfPath, readErr)
+ os.RemoveAll(boxConfPath)
continue
}