-
Notifications
You must be signed in to change notification settings - Fork 634
Open
Description
Plugin Version
@memtensor/memos-local-openclaw-plugin v1.0.2
Problem
When OpenClaw runs with a non-default profile (e.g. OPENCLAW_STATE_DIR=~/.openclaw-family-doctor), the MemOS Memory Viewer's migrate/scan feature always scans ~/.openclaw (hardcoded), ignoring the actual OPENCLAW_STATE_DIR.
Steps to Reproduce
- Start OpenClaw with a non-default profile:
OPENCLAW_STATE_DIR=~/.openclaw-family-doctor, viewer port 19002 - Open Viewer at
http://localhost:19002 - Click the Scan / Migrate button
- Observe: scan results show memories from
~/.openclaw/memos-local/memos.db(~6000 records) instead of the current profile's DB (~800 records)
Root Cause
In dist/src/viewer/server.js and dist/viewer/server.js:
getOpenClawHome() {
const home = process.env.HOME || process.env.USERPROFILE || "";
return path.join(home, ".openclaw"); // hardcoded!
}Fix
return process.env.OPENCLAW_STATE_DIR || path.join(home, ".openclaw");Impact
In a dual-bot setup, clicking Scan in the secondary bot Viewer shows the primary bot 6000+ memories. If user clicks Import, memories cross-contaminate between bots.
Environment
@memtensor/memos-local-openclaw-pluginv1.0.2- OpenClaw v2026.3.13, macOS Darwin 25.3.0 arm64
- Dual-profile: main bot
~/.openclaw(port 18789), secondary bot~/.openclaw-family-doctor(port 19001)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels