## Problem
`SESSIONS_DIR` is hardcoded to `/root/.openclaw/agents/main/sessions`.
Users cannot customize the sessions directory without modifying source code.
## Impact
- Non-standard OpenClaw installations cannot use the watcher
- Requires source modification for different environments
## Root Cause
Hardcoded path in `realtime_qdrant_watcher.py`:
```python
SESSIONS_DIR = Path("/root/.openclaw/agents/main/sessions")
```
## Solution
Changed to read from environment variable with fallback:
```python
SESSIONS_DIR = Path(os.getenv("OPENCLAW_SESSIONS_DIR", "/root/.openclaw/agents/main/sessions"))
```
## Fix Version
v1.1 - Commit a053ec1
## Usage
Set environment variable before running watcher:
```bash
export OPENCLAW_SESSIONS_DIR=/custom/path/to/sessions
python3 realtime_qdrant_watcher.py
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
SESSIONS_DIRis hardcoded to/root/.openclaw/agents/main/sessions.Users cannot customize the sessions directory without modifying source code.
Impact
Root Cause
Hardcoded path in
realtime_qdrant_watcher.py:Solution
Changed to read from environment variable with fallback:
Fix Version
v1.1 - Commit
a053ec1Usage
Set environment variable before running watcher:
FIX IMPLEMENTED AND PUSHED ✅
Commit:
a053ec1- fix: SESSIONS_DIR env var and config dimension docsDetailed Fix Steps:
Code Change
In
watcher/realtime_qdrant_watcher.py:Before:
After:
Usage
Validation
Closing as fixed in v1.1