Skip to content

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

:bug: Data indexing is abnormal after switching workspaces on mobile https://github.com/siyuan-note/siyuan/issues/16646

Daniela038421e73ac
diff --git a/kernel/harmony/kernel.go b/kernel/harmony/kernel.go
index 40bf54a274..731e024039 100644
--- a/kernel/harmony/kernel.go
+++ b/kernel/harmony/kernel.go
@@ -138,4 +138,9 @@ func Unzip(zipFilePath, destination *C.char) {
}
}
+//export Exit
+func Exit() {
+ os.Exit(logging.ExitCodeOk)
+}
+
func main() {}
diff --git a/kernel/mobile/kernel.go b/kernel/mobile/kernel.go
index 98d81ec0f0..1194c7d25f 100644
--- a/kernel/mobile/kernel.go
+++ b/kernel/mobile/kernel.go
@@ -292,3 +292,7 @@ func FilterUploadFileName(name string) string {
func AssetName(name string) string {
return util.AssetName(name, ast.NewNodeID())
}
+
+func Exit() {
+ os.Exit(logging.ExitCodeOk)
+}