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: expand tilde (~) in storage workspace paths (#725)
Zayn Jarvis1d6afdd0f9ac
diff --git a/openviking_cli/utils/config/open_viking_config.py b/openviking_cli/utils/config/open_viking_config.pyindex 784c31302..503389290 100644--- a/openviking_cli/utils/config/open_viking_config.py+++ b/openviking_cli/utils/config/open_viking_config.py@@ -358,7 +358,7 @@ def initialize_openviking_config(config.storage.vectordb.backend = config.storage.vectordb.backend or "local"# Resolve and update workspace + dependent paths (model_validator won't# re-run on attribute assignment, so sync agfs.path / vectordb.path here).- workspace_path = Path(path).resolve()+ workspace_path = Path(path).expanduser().resolve()workspace_path.mkdir(parents=True, exist_ok=True)resolved = str(workspace_path)config.storage.workspace = resolveddiff --git a/openviking_cli/utils/config/storage_config.py b/openviking_cli/utils/config/storage_config.pyindex 8daf6a792..422a1be4f 100644--- a/openviking_cli/utils/config/storage_config.py+++ b/openviking_cli/utils/config/storage_config.py@@ -50,8 +50,8 @@ class StorageConfig(BaseModel):f"Using '{self.workspace}' from workspace instead of '{self.vectordb.path}'")- # Update paths to use workspace- workspace_path = Path(self.workspace).resolve()+ # Update paths to use workspace (expand ~ first)+ workspace_path = Path(self.workspace).expanduser().resolve()workspace_path.mkdir(parents=True, exist_ok=True)self.workspace = str(workspace_path)self.agfs.path = self.workspace@@ -65,7 +65,7 @@ class StorageConfig(BaseModel):Returns:Path to {workspace}/temp/upload directory"""- workspace_path = Path(self.workspace).resolve()+ workspace_path = Path(self.workspace).expanduser().resolve()upload_temp_dir = workspace_path / "temp" / "upload"upload_temp_dir.mkdir(parents=True, exist_ok=True)return upload_temp_dir