Skip to content

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

:zap: Reduce unchanged startup sync requests https://github.com/siyuan-note/siyuan/issues/18410

Daniel3ead6eeb9562
diff --git a/kernel/go.mod b/kernel/go.mod
index 529aa91efe..5eb2d9cc26 100644
--- a/kernel/go.mod
+++ b/kernel/go.mod
@@ -70,7 +70,7 @@ require (
github.com/sashabaranov/go-openai v1.41.2
github.com/shirou/gopsutil/v4 v4.26.6
github.com/siyuan-note/dataparser v0.0.0-20260115084335-b57cb8bc7c17
- github.com/siyuan-note/dejavu v0.0.0-20260809143958-da62d786c482
+ github.com/siyuan-note/dejavu v0.0.0-20260810172624-2515c1cedd81
github.com/siyuan-note/encryption v0.0.0-20260715062728-9cb8e9548044
github.com/siyuan-note/eventbus v0.0.0-20260530125927-d77c74260dce
github.com/siyuan-note/filelock v0.0.0-20260411141728-bf44452627c0
diff --git a/kernel/go.sum b/kernel/go.sum
index f6b5528752..04de2eb001 100644
--- a/kernel/go.sum
+++ b/kernel/go.sum
@@ -407,6 +407,8 @@ github.com/siyuan-note/dejavu v0.0.0-20260806004431-101ab7692045 h1:JPSX5DRdfSSJ
github.com/siyuan-note/dejavu v0.0.0-20260806004431-101ab7692045/go.mod h1:aTT2bB17VqAhdHHkScfDnMzJf8At3zYwGvTqntjiCwA=
github.com/siyuan-note/dejavu v0.0.0-20260809143958-da62d786c482 h1:WkS4DY2Z1oALS3ziklr5OdkdmOAmoUIn3qpR8XNaT/s=
github.com/siyuan-note/dejavu v0.0.0-20260809143958-da62d786c482/go.mod h1:aTT2bB17VqAhdHHkScfDnMzJf8At3zYwGvTqntjiCwA=
+github.com/siyuan-note/dejavu v0.0.0-20260810172624-2515c1cedd81 h1:s7CP259xPatSRSumna/fc40ftYR0EtEXNixdpN1dfeM=
+github.com/siyuan-note/dejavu v0.0.0-20260810172624-2515c1cedd81/go.mod h1:aTT2bB17VqAhdHHkScfDnMzJf8At3zYwGvTqntjiCwA=
github.com/siyuan-note/encryption v0.0.0-20260715062728-9cb8e9548044 h1:b1/Q4DSREDvGh1/NbzR9873EKrjakdoUtsNlghWxUOI=
github.com/siyuan-note/encryption v0.0.0-20260715062728-9cb8e9548044/go.mod h1:t6jXpJdrXzRsdQF+XGaw35f16JVZcDyIkk5/6//ywnY=
github.com/siyuan-note/eventbus v0.0.0-20260530125927-d77c74260dce h1:356bfC3pucxXuYpZIwaQ3viVCbq5RbRuvBhb4xtoBR0=
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index 687bd6eb9b..6fa0c2d077 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -1951,7 +1951,7 @@ func bootSyncRepo() (err error) {
start := time.Now()
syncContext := map[string]any{eventbus.CtxPushMsg: eventbus.CtxPushMsgToStatusBar}
- cloudLatest, cloudLatestErr = repo.GetCloudLatest(syncContext)
+ cloudLatest, cloudLatestErr = repo.GetCloudLatestFast(syncContext)
if nil != cloudLatestErr && !errors.Is(cloudLatestErr, cloud.ErrCloudObjectNotFound) {
logging.LogErrorf("download cloud latest failed: %s", cloudLatestErr)
}