diff --git a/mempalace/config.py b/mempalace/config.py index b2be3ee..04a9153 100644 --- a/mempalace/config.py +++ b/mempalace/config.py @@ -428,6 +428,14 @@ class MempalaceConfig: except (OSError, NotImplementedError): pass # Windows doesn't support Unix permissions if not self._config_file.exists(): + # Chunking parameters (chunk_size, chunk_overlap, min_chunk_size) + # are intentionally NOT written here — convo_miner.py distinguishes + # "user has tuned this" from "user is on defaults" by checking + # ``_file_config.get("min_chunk_size") is None``. Writing the + # miner.py defaults (50) into config.json breaks that detection + # and silently overrides convo_miner's stricter 30-char floor, + # dropping legitimate short conversation exchanges. Module-level + # defaults already apply correctly when these keys are absent. default_config = { "palace_path": DEFAULT_PALACE_PATH, "collection_name": DEFAULT_COLLECTION_NAME,