fix: SESSIONS_DIR env var and config dimension docs
- SESSIONS_DIR now reads from OPENCLAW_SESSIONS_DIR env var with fallback - Fixes hardcoded path issue reported by community - config.json: add embedding_dimensions (1024) and notes field - Update version to 1.1 in config.json Validated 4x: 1. SESSIONS_DIR line correct 2. config.json syntax valid 3. Both files syntax OK 4. Env var logic tested Thanks to Rob Whyte @ Fort Myers Brewing for the suggestion.
This commit is contained in:
@@ -26,7 +26,7 @@ EMBEDDING_MODEL = os.getenv("EMBEDDING_MODEL", "snowflake-arctic-embed2")
|
||||
USER_ID = os.getenv("USER_ID", "rob")
|
||||
|
||||
# Paths
|
||||
SESSIONS_DIR = Path("/root/.openclaw/agents/main/sessions")
|
||||
SESSIONS_DIR = Path(os.getenv("OPENCLAW_SESSIONS_DIR", "/root/.openclaw/agents/main/sessions"))
|
||||
|
||||
# State
|
||||
running = True
|
||||
|
||||
Reference in New Issue
Block a user