Skip to content

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

:art: Improve kernel exit

Daniel7d3be2434734
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 182f87f288..daeea45a3d 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -687,6 +687,7 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) {
time.Sleep(500 * time.Millisecond)
logging.LogInfof("exited kernel")
util.WebSocketServer.Close()
+ util.HttpServing = false
os.Exit(logging.ExitCodeOk)
}()
return