An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 订正索引时排除 assets 目录下的 .sy 文件
Liang Ding6a6939257e80
diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.goindex 2167d3ae37..c97647c799 100644--- a/kernel/model/index_fix.go+++ b/kernel/model/index_fix.go@@ -114,7 +114,7 @@ func fixBlockTreeByFileSys() {boxPath := filepath.Join(util.DataDir, box.ID)var paths []stringfilepath.Walk(boxPath, func(path string, info os.FileInfo, err error) error {- if !info.IsDir() && filepath.Ext(path) == ".sy" {+ if !info.IsDir() && filepath.Ext(path) == ".sy" && !strings.Contains(filepath.ToSlash(path), "/assets/") {p := path[len(boxPath):]p = filepath.ToSlash(p)paths = append(paths, p)