Skip to content

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

:art: Ignore hidden files loading into asset cache

Daniel428c34c93108
diff --git a/kernel/cache/asset.go b/kernel/cache/asset.go
index 524cf35efe..f33b618643 100644
--- a/kernel/cache/asset.go
+++ b/kernel/cache/asset.go
@@ -82,7 +82,7 @@ func LoadAssets() {
}
return nil
}
- if strings.HasSuffix(info.Name(), ".sya") || strings.HasPrefix(info.Name(), ".") {
+ if strings.HasSuffix(info.Name(), ".sya") || strings.HasPrefix(info.Name(), ".") || filelock.IsHidden(path) {
return nil
}