An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: User Agent 初始化
Liang Ding18881651081a
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex a3125c13b4..324282ef47 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -219,7 +219,6 @@ func InitConf() {Conf.System.WorkspaceDir = util.WorkspaceDirConf.System.DataDir = util.DataDirConf.System.Container = util.Container- util.UserAgent = util.UserAgent + " " + util.ContainerConf.System.OS = runtime.GOOSConf.Newbie = util.IsNewbiediff --git a/kernel/util/working.go b/kernel/util/working.goindex 055b329e08..04719af30b 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -55,7 +55,6 @@ func Boot() {IncBootProgress(3, "Booting...")rand.Seed(time.Now().UTC().UnixNano())initMime()- httpclient.SetUserAgent(UserAgent)workspacePath := flag.String("workspace", "", "dir path of the workspace, default to ~/Documents/SiYuan/")wdPath := flag.String("wd", WorkingDir, "working directory of SiYuan")@@ -84,6 +83,9 @@ func Boot() {Container = "docker"}+ UserAgent = UserAgent + " " + Container+ httpclient.SetUserAgent(UserAgent)+initWorkspaceDir(*workspacePath)SSL = *ssldiff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.goindex 0b5144763d..94cd8c8f46 100644--- a/kernel/util/working_mobile.go+++ b/kernel/util/working_mobile.go@@ -32,7 +32,6 @@ func BootMobile(container, appDir, workspaceDir, nativeLibDir, privateDataDir, lIncBootProgress(3, "Booting...")rand.Seed(time.Now().UTC().UnixNano())initMime()- httpclient.SetUserAgent(UserAgent)HomeDir = filepath.Join(workspaceDir, "home")userHomeConfDir := filepath.Join(HomeDir, ".config", "siyuan")@@ -61,6 +60,8 @@ func BootMobile(container, appDir, workspaceDir, nativeLibDir, privateDataDir, lIconsPath = filepath.Join(AppearancePath, "icons")Resident = trueContainer = container+ UserAgent = UserAgent + " " + Container+ httpclient.SetUserAgent(UserAgent)Lang = langinitPathDir()bootBanner := figure.NewFigure("SiYuan", "", true)