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: 支持间隔复习 https://github.com/siyuan-note/siyuan/issues/6710
Liang Ding3f518547f8ff
diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex 0fddbda555..faa52e586d 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -972,18 +972,29 @@ func syncRepo(exit, byHand bool) (err error) {// 有数据变更,需要重建索引var upserts, removes []stringvar upsertTrees int+ var needReloadFlashcard boolfor _, file := range mergeResult.Upserts {upserts = append(upserts, file.Path)+ if strings.HasPrefix(file.Path, "/storage/riff/") {+ needReloadFlashcard = true+ }+if strings.HasSuffix(file.Path, ".sy") {upsertTrees++}}for _, file := range mergeResult.Removes {removes = append(removes, file.Path)+ if strings.HasPrefix(file.Path, "/storage/riff/") {+ needReloadFlashcard = true+ }}- cache.ClearDocsIAL() // 同步后文档树文档图标没有更新 https://github.com/siyuan-note/siyuan/issues/4939+ if needReloadFlashcard {+ InitFlashcards()+ }+ cache.ClearDocsIAL() // 同步后文档树文档图标没有更新 https://github.com/siyuan-note/siyuan/issues/4939if needFullReindex(upsertTrees) { // 改进同步后全量重建索引判断 https://github.com/siyuan-note/siyuan/issues/5764FullReindex()return