Skip to content

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

:art: Error notification pops up only once after auto sync fails https://github.com/siyuan-note/siyuan/issues/8096

Liang Ding44c9fe53217c
diff --git a/kernel/model/sync.go b/kernel/model/sync.go
index 3fd814eb58..d514acd5af 100644
--- a/kernel/model/sync.go
+++ b/kernel/model/sync.go
@@ -578,6 +578,9 @@ func isProviderOnline(byHand bool) (ret bool) {
}
if ret = util.IsOnline(checkURL, skipTlsVerify); !ret {
+ if !byHand {
+ autoSyncErrCount++
+ }
if 1 > autoSyncErrCount || byHand {
util.PushErrMsg(Conf.Language(76)+" (Provider: "+conf.ProviderToStr(Conf.Sync.Provider)+")", 5000)
}