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
Daniele256101bd956
diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.goindex f7fc0b9424..9d8fb3cea3 100644--- a/kernel/util/working_mobile.go+++ b/kernel/util/working_mobile.go@@ -21,6 +21,7 @@ import ("os""path/filepath""runtime"+ "strings""time""github.com/88250/gulu"@@ -117,6 +118,7 @@ func initWorkspaceDirMobile(workspaceBaseDir string) {var workspacePaths []stringif !gulu.File.IsExist(workspaceConf) {+ logging.LogInfof("workspace conf [%s] not exist, use the default workspace [%s]", workspaceConf, defaultWorkspaceDir)WorkspaceDir = defaultWorkspaceDirif !gulu.File.IsDir(WorkspaceDir) {logging.LogWarnf("use the default workspace [%s] since the specified workspace [%s] is not a dir", WorkspaceDir, defaultWorkspaceDir)@@ -125,6 +127,8 @@ 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]if !gulu.File.IsDir(WorkspaceDir) {@@ -136,8 +140,12 @@ func initWorkspaceDirMobile(workspaceBaseDir string) {WorkspaceDir = defaultWorkspaceDirworkspacePaths = append(workspacePaths, WorkspaceDir)}++ logging.LogInfof("2 read workspace paths [%s]", strings.Join(workspacePaths, ","))}+ logging.LogInfof("3 read workspace paths [%s]", strings.Join(workspacePaths, ","))+if err := WriteWorkspacePaths(workspacePaths); err != nil {logging.LogErrorf("write workspace conf [%s] failed: %s", workspaceConf, err)os.Exit(logging.ExitCodeInitWorkspaceErr)