fix(regression): auto-enable memory runtime loads

This commit is contained in:
Tak Hoffman
2026-03-27 22:44:03 -05:00
parent 2ba5e7ebf9
commit 63e35b2d9d
2 changed files with 103 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import type { OpenClawConfig } from "../config/config.js";
import { applyPluginAutoEnable } from "../config/plugin-auto-enable.js";
import { loadOpenClawPlugins } from "./loader.js";
import { getMemoryRuntime } from "./memory-state.js";
@@ -7,7 +8,8 @@ function ensureMemoryRuntime(cfg?: OpenClawConfig) {
if (current || !cfg) {
return current;
}
loadOpenClawPlugins({ config: cfg });
const resolvedConfig = applyPluginAutoEnable({ config: cfg, env: process.env }).config;
loadOpenClawPlugins({ config: resolvedConfig });
return getMemoryRuntime();
}