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 boot
Danield34cd984d885
diff --git a/kernel/util/working.go b/kernel/util/working.goindex 701350bdcd..aa4d6e890b 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -339,8 +339,6 @@ func ReadWorkspacePaths() (ret []string, err error) {return}- logging.LogInfof("read data [%s] from workspace conf [%s]", string(data), workspaceConf)-if err = gulu.JSON.UnmarshalJSON(data, &ret); err != nil {msg := fmt.Sprintf("unmarshal workspace conf [%s] failed: %s", workspaceConf, err)logging.LogErrorf(msg)@@ -349,10 +347,18 @@ func ReadWorkspacePaths() (ret []string, err error) {}var tmp []string+ workspaceBaseDir := filepath.Dir(HomeDir)for _, d := range ret {+ if ContainerIOS == Container && strings.Contains(d, "/Documents/") {+ d = d[strings.Index(d, "/Documents/")+len("/Documents/"):]+ d = filepath.Join(workspaceBaseDir, d)+ }+d = strings.TrimRight(d, " \t\n") // 去掉工作空间路径尾部空格 https://github.com/siyuan-note/siyuan/issues/6353if gulu.File.IsDir(d) {tmp = append(tmp, d)+ } else {+ logging.LogWarnf("workspace path [%s] is not a dir", d)}}ret = tmpdiff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.goindex 2dda1c4397..6580d738ce 100644--- a/kernel/util/working_mobile.go+++ b/kernel/util/working_mobile.go@@ -129,7 +129,6 @@ func initWorkspaceDirMobile(workspaceBaseDir string) {workspacePaths = append(workspacePaths, WorkspaceDir)} else {workspacePaths, _ = ReadWorkspacePaths()- logging.LogInfof("1 read workspace paths [%s]", strings.Join(workspacePaths, ","))if 0 < len(workspacePaths) {WorkspaceDir = workspacePaths[len(workspacePaths)-1]