Skip to content

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

:art: 改进桌面端监控前端界面进程退出钩子

Liang Ding4c6b61cc371c
diff --git a/kernel/model/process.go b/kernel/model/process.go
index 1336ea8977..3d68cb3638 100644
--- a/kernel/model/process.go
+++ b/kernel/model/process.go
@@ -86,8 +86,11 @@ func HookDesktopUIProcJob() {
return true
})
- if 1 < noUIProcCount {
- logging.LogInfof("no active UI proc, exit kernel process now")
- Close(false, 1)
+ if 0 < noUIProcCount {
+ logging.LogInfof("no active UI proc count [%d]", noUIProcCount)
+ if 1 < noUIProcCount {
+ logging.LogInfof("confirmed no active UI proc, exit kernel process now")
+ Close(false, 1)
+ }
}
}