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: 改进写入工作空间路径配置
Liang Ding4bb39d90fee6
diff --git a/kernel/util/working.go b/kernel/util/working.goindex e7c0656dcb..691b7a8067 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -35,6 +35,7 @@ import ("github.com/88250/gulu"figure "github.com/common-nighthawk/go-figure""github.com/gofrs/flock"+ "github.com/siyuan-note/filelock""github.com/siyuan-note/httpclient""github.com/siyuan-note/logging")@@ -295,7 +296,7 @@ func WriteWorkspacePaths(workspacePaths []string) (err error) {return}- if err = os.WriteFile(workspaceConf, data, 0644); nil != err {+ if err = filelock.WriteFile(workspaceConf, data); nil != err {msg := fmt.Sprintf("write workspace conf [%s] failed: %s", workspaceConf, err)logging.LogErrorf(msg)err = errors.New(msg)