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: Improve exit
Danielad48451d51c1
diff --git a/kernel/api/workspace.go b/kernel/api/workspace.goindex 35a0bc9f83..6663ba5da1 100644--- a/kernel/api/workspace.go+++ b/kernel/api/workspace.go@@ -238,18 +238,13 @@ func getWorkspaces(c *gin.Context) {model.RoleAdministrator,}) {ret.Data = []*Workspace{}- logging.LogInfof("non-admin user tried to get workspaces")return}- logging.LogInfof("workspace paths [%+v]", workspacePaths)-var workspaces, openedWorkspaces, closedWorkspaces []*Workspacefor _, p := range workspacePaths {- logging.LogInfof("get workspace [%s]", p)closed := !util.IsWorkspaceLocked(p)if closed {- logging.LogInfof("workspace [%s] is closed", p)closedWorkspaces = append(closedWorkspaces, &Workspace{Path: p, Closed: closed})} else {openedWorkspaces = append(openedWorkspaces, &Workspace{Path: p, Closed: closed})diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 89630aaa85..29ef45f384 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -750,7 +750,7 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) {}util.HttpServing = false- if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {+ if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container || util.ContainerHarmony == util.Container {return}