Skip to content

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

:recycle: 桌面端内核进程不再以游离模式拉起 https://github.com/siyuan-note/siyuan/issues/6336

Liang Ding44374891e3ef
diff --git a/kernel/model/process.go b/kernel/model/process.go
index 65f43ac1d2..1be4a41af2 100644
--- a/kernel/model/process.go
+++ b/kernel/model/process.go
@@ -33,8 +33,11 @@ func HookResident() {
for range time.Tick(time.Second * 30) {
if 0 == util.CountSessions() {
- logging.LogInfof("no active session, exit kernel process now")
- Close(false, 1)
+ time.Sleep(time.Second * 7)
+ if 0 == util.CountSessions() {
+ logging.LogInfof("no active session, exit kernel process now")
+ Close(false, 1)
+ }
}
}
}