Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: https://github.com/siyuan-note/siyuan/issues/16544

Daniel50cf3f73445d
diff --git a/kernel/util/working.go b/kernel/util/working.go
index aa4d6e890b..ddd91ae6ac 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -350,6 +350,7 @@ func ReadWorkspacePaths() (ret []string, err error) {
workspaceBaseDir := filepath.Dir(HomeDir)
for _, d := range ret {
if ContainerIOS == Container && strings.Contains(d, "/Documents/") {
+ // iOS 端沙箱路径会变化,需要转换为相对路径再拼接当前沙箱中的工作空间基路径
d = d[strings.Index(d, "/Documents/")+len("/Documents/"):]
d = filepath.Join(workspaceBaseDir, d)
}