Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
fix(ragfs): skip zero-byte files during legacy shape probe (#2691)
baojun-zhang6d4633009dd1
diff --git a/crates/ragfs/src/shape/probe.rs b/crates/ragfs/src/shape/probe.rsindex f981b0e8f..9862d663e 100644--- a/crates/ragfs/src/shape/probe.rs+++ b/crates/ragfs/src/shape/probe.rs@@ -112,7 +112,10 @@ pub async fn detect_legacy_shape(raw_fs: &Arc<dyn FileSystem>) -> Result<Option<let mut detected: Option<StorageShape> = None;for entry in entries {- if entry.info.is_dir {+ // Zero-byte files are a legacy plaintext artifact in the current implementation, but they+ // do not carry enough signal to classify backend shape reliably. Skip them here instead of+ // forcing a plaintext verdict during legacy shape inference.+ if entry.info.is_dir || entry.info.size == 0 {continue;}