Pre-submission checklist | 提交前检查
Bug Description | 问题描述
Bug Description
When the OpenClaw gateway is running with memos-local-plugin v2.0.6, openclaw doctor always reports:
[plugins] memos-local: duplicate OpenClaw runtime blocked
[plugins] memos-local-plugin failed during register from .../dist/adapters/openclaw/index.js: DuplicateOpenClawRuntimeError: memos-local OpenClaw runtime is already active (pid=<gateway_pid>)
How to Reproduce | 如何重现
The plugin works perfectly in the gateway — onTurnStart, onTurnEnd, and all memory tools function normally. Only openclaw doctor (a separate process) fails.
Root Cause
openclaw doctor is an independent process that also loads plugins. The acquireOpenClawRuntimeLock() function in runtime-lock.js does not distinguish between:
- A legitimate duplicate runtime instance (should be blocked)
- The
openclaw doctor diagnostic process (should be allowed or skipped)
Steps to Reproduce
- Install
@memtensor/memos-local-plugin via install.sh
- Start OpenClaw gateway (
openclaw gateway start)
- Run
openclaw doctor → plugin registration fails with DuplicateOpenClawRuntimeError
Expected Behavior
openclaw doctor should either:
- Skip memory plugin registration (read-only health check)
- Use a different lock namespace for diagnostic processes
- Report "plugin active (OK)" instead of "plugin failed"
Environment
- Plugin:
@memtensor/memos-local-plugin@2.0.6
- OpenClaw:
2026.5.28
- Node.js:
v24.15.0
- OS: Ubuntu Linux
6.8.0-117-generic
- Install method:
curl -fsSL .../install.sh | bash
Workaround
The plugin actually works fine. The doctor error is a false positive and can be ignored.
Environment | 环境信息
- Plugin:
@memtensor/memos-local-plugin@2.0.6
- OpenClaw:
2026.5.28
- Node.js:
v24.15.0
- OS: Ubuntu Linux
6.8.0-117-generic
- Install method:
curl -fsSL .../install.sh | bash
Additional Context | 其他信息
No response
Willingness to Implement | 实现意愿
Pre-submission checklist | 提交前检查
Bug Description | 问题描述
Bug Description
When the OpenClaw gateway is running with
memos-local-pluginv2.0.6,openclaw doctoralways reports:[plugins] memos-local: duplicate OpenClaw runtime blocked
[plugins] memos-local-plugin failed during register from .../dist/adapters/openclaw/index.js: DuplicateOpenClawRuntimeError: memos-local OpenClaw runtime is already active (pid=<gateway_pid>)
How to Reproduce | 如何重现
The plugin works perfectly in the gateway —
onTurnStart,onTurnEnd, and all memory tools function normally. Onlyopenclaw doctor(a separate process) fails.Root Cause
openclaw doctoris an independent process that also loads plugins. TheacquireOpenClawRuntimeLock()function inruntime-lock.jsdoes not distinguish between:openclaw doctordiagnostic process (should be allowed or skipped)Steps to Reproduce
@memtensor/memos-local-pluginviainstall.shopenclaw gateway start)openclaw doctor→ plugin registration fails withDuplicateOpenClawRuntimeErrorExpected Behavior
openclaw doctorshould either:Environment
@memtensor/memos-local-plugin@2.0.62026.5.28v24.15.06.8.0-117-genericcurl -fsSL .../install.sh | bashWorkaround
The plugin actually works fine. The doctor error is a false positive and can be ignored.
Environment | 环境信息
@memtensor/memos-local-plugin@2.0.62026.5.28v24.15.06.8.0-117-genericcurl -fsSL .../install.sh | bashAdditional Context | 其他信息
No response
Willingness to Implement | 实现意愿