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:
root
2026-02-28 17:05:43 -06:00
parent 1c24618ad9
commit a053ec1c3d
2 changed files with 15 additions and 1 deletions

View File

@@ -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