Skip to content

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

:art: Improve get os info for HarmonyOS

Daniel923f9be756bb
diff --git a/kernel/util/os_mobile.go b/kernel/util/os_mobile.go
index dbb1a1e383..71e36c8366 100644
--- a/kernel/util/os_mobile.go
+++ b/kernel/util/os_mobile.go
@@ -25,5 +25,8 @@ func GetOSPlatform() (plat string) {
if ContainerAndroid == Container {
return "Android " + MobileOSVer
}
+ if ContainerHarmony == Container {
+ return "HarmonyOS " + MobileOSVer
+ }
return "Unknown " + MobileOSVer
}