





























@@ -431,6 +431,16 @@ describe("registerPreActionHooks", () => {
431431expect(ensurePluginRegistryLoadedMock).not.toHaveBeenCalled();
432432});
433433434+it("does not preload plugins for remote agent JSON output", async () => {
435+await runPreAction({
436+parseArgv: ["agent"],
437+processArgv: ["node", "openclaw", "agent", "--message", "hi", "--json"],
438+});
439+440+expect(routeLogsToStderrMock).toHaveBeenCalledOnce();
441+expect(ensurePluginRegistryLoadedMock).not.toHaveBeenCalled();
442+});
443+434444it("bypasses config guard for config validate", async () => {
435445await runPreAction({
436446parseArgv: ["config", "validate"],
@@ -475,7 +485,7 @@ describe("registerPreActionHooks", () => {
475485476486await runPreAction({
477487parseArgv: ["agent"],
478-processArgv: ["node", "openclaw", "agent", "--message", "hi", "--json"],
488+processArgv: ["node", "openclaw", "agent", "--local", "--message", "hi", "--json"],
479489});
480490481491expect(ensurePluginRegistryLoadedMock).toHaveBeenCalled();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。