




















@@ -246,7 +246,7 @@ describe("registerPreActionHooks", () => {
246246expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledWith({ scope: "all" });
247247});
248248249-it("skips broad plugin preload for json local agent runs", async () => {
249+it("loads plugins for json local agent runs", async () => {
250250await runPreAction({
251251parseArgv: ["agent"],
252252processArgv: ["node", "openclaw", "agent", "--local", "--message", "hi", "--json"],
@@ -257,7 +257,7 @@ describe("registerPreActionHooks", () => {
257257commandPath: ["agent", "hi"],
258258suppressDoctorStdout: true,
259259});
260-expect(ensurePluginRegistryLoadedMock).not.toHaveBeenCalled();
260+expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledWith({ scope: "all" });
261261});
262262263263it("keeps setup alias and channels add manifest-first", async () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。