Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix: openclaw plugin local run (#480)

qin-ptr5e0efd33e846
diff --git a/examples/openclaw-memory-plugin/config.ts b/examples/openclaw-memory-plugin/config.ts
index 2be83f2aa..a8746f9c4 100644
--- a/examples/openclaw-memory-plugin/config.ts
+++ b/examples/openclaw-memory-plugin/config.ts
@@ -125,7 +125,7 @@ export const memoryOpenVikingConfigSchema = {
"memory-openviking config",
);
- const mode = (cfg.mode === "local" || cfg.mode === "remote" ? cfg.mode : "remote") as
+ const mode = (cfg.mode === "local" || cfg.mode === "remote" ? cfg.mode : "local") as
| "local"
| "remote";
const port = Math.max(1, Math.min(65535, Math.floor(toNumber(cfg.port, DEFAULT_PORT))));
diff --git a/examples/openclaw-memory-plugin/process-manager.ts b/examples/openclaw-memory-plugin/process-manager.ts
index 6a006103d..4972cbb0e 100644
--- a/examples/openclaw-memory-plugin/process-manager.ts
+++ b/examples/openclaw-memory-plugin/process-manager.ts
@@ -125,6 +125,9 @@ export async function quickRecallPrecheck(
if (localProcess && (localProcess.killed || localProcess.exitCode !== null || localProcess.signalCode !== null)) {
return { ok: false, reason: "local process is not running" };
}
+ if (localProcess === null) {
+ return { ok: true };
+ }
}
return { ok: false, reason: "health check failed" };
}