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 remove workspace dir path https://ld246.com/article/1703151906396
Daniel2742fc369b82
diff --git a/kernel/api/workspace.go b/kernel/api/workspace.goindex aada5d1698..bf489e25b3 100644--- a/kernel/api/workspace.go+++ b/kernel/api/workspace.go@@ -138,8 +138,11 @@ func removeWorkspaceDir(c *gin.Context) {path := arg["path"].(string)- if util.IsWorkspaceLocked(path) {- logging.LogWarnf("skip remove workspace [%s] because it is locked", path)+ if util.IsWorkspaceLocked(path) || util.WorkspaceDir == path {+ msg := "Cannot remove current workspace"+ ret.Code = -1+ ret.Msg = msg+ ret.Data = map[string]interface{}{"closeTimeout": 3000}return}