Skip to content

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

:art: 移动端支持多工作空间 https://github.com/siyuan-note/siyuan/issues/4642

Liang Ding735c104af488
diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go
index d6c5273b0d..b1b5970fb7 100644
--- a/kernel/api/workspace.go
+++ b/kernel/api/workspace.go
@@ -98,6 +98,10 @@ func removeWorkspaceDir(c *gin.Context) {
ret.Msg = msg
return
}
+
+ if util.WorkspaceDir == path {
+ os.Exit(util.ExitCodeOk)
+ }
}
func listWorkspaceDirs(c *gin.Context) {