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: 第一次同步数据时报错 `index.json` 找不到 Fix https://github.com/siyuan-note/siyuan/issues/5133
Liang Dingf3bff8fdc0f3
diff --git a/kernel/model/sync.go b/kernel/model/sync.goindex 475b6c9305..5ea4c026ee 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -557,7 +557,7 @@ func syncDir2WorkspaceData(boot bool) (upsertFiles, removeFiles []string, err ermodified := modifiedSyncList(unchanged)metaPath := filepath.Join(util.TempDir, "sync", pathJSON) // 使用前面解密验证时下载的临时文件- indexPath := filepath.Join(Conf.Sync.GetSaveDir(), "index.json")+ indexPath := filepath.Join(util.TempDir, "sync", "index.json")decryptedDataDir, upsertFiles, err := recoverSyncData(metaPath, indexPath, modified)if nil != err {util.LogErrorf("decrypt data dir failed: %s", err)