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: 启动内核后清理推送消息
Liang Ding5c6effb83e73
diff --git a/kernel/main.go b/kernel/main.goindex 2dd9c9c3b7..69e3d6c9b9 100644--- a/kernel/main.go+++ b/kernel/main.go@@ -45,7 +45,7 @@ func main() {go model.AutoSync()go model.AutoStat()util.SetBooted()- util.ClearPushProgress(100)+ util.PushClearAllMsg()go model.AutoRefreshCheck()go model.AutoFlushTx()go sql.AutoFlushTreeQueue()diff --git a/kernel/mobile/kernel.go b/kernel/mobile/kernel.goindex 221b793836..58c2101efe 100644--- a/kernel/mobile/kernel.go+++ b/kernel/mobile/kernel.go@@ -59,7 +59,7 @@ func StartKernel(container, appDir, workspaceDir, nativeLibDir, privateDataDir,go model.AutoSync()go model.AutoStat()util.SetBooted()- util.ClearPushProgress(100)+ util.PushClearAllMsg()go model.AutoRefreshCheck()go model.AutoFlushTx()go sql.AutoFlushTreeQueue()diff --git a/kernel/util/websocket.go b/kernel/util/websocket.goindex d833fb0ce6..76c25fb653 100644--- a/kernel/util/websocket.go+++ b/kernel/util/websocket.go@@ -177,6 +177,11 @@ const (PushProgressCodeEnd = 2 // 关闭进度)+func PushClearAllMsg() {+ ClearPushProgress(100)+ PushClearMsg("")+}+func ClearPushProgress(total int) {PushProgress(PushProgressCodeEnd, total, total, "")}