























@@ -381,13 +381,14 @@ describe("agentCommand", () => {
381381runtime,
382382);
383383384-expect(pluginRegistryMocks.ensurePluginRegistryLoaded).toHaveBeenCalledOnce();
385-const registryLoad = pluginRegistryMocks.ensurePluginRegistryLoaded.mock.calls[0]?.[0];
386-expect(registryLoad?.scope).toBe("all");
387-expect(registryLoad?.config).toBeTypeOf("object");
388-expect(registryLoad?.activationSourceConfig).toBeTypeOf("object");
389-expect(registryLoad?.workspaceDir).toBe(path.join(home, "openclaw"));
390-expect(registryLoad?.onlyPluginIds).toEqual(["codex"]);
384+expect(pluginRegistryMocks.ensurePluginRegistryLoaded).toHaveBeenCalledTimes(2);
385+for (const [registryLoad] of pluginRegistryMocks.ensurePluginRegistryLoaded.mock.calls) {
386+expect(registryLoad?.scope).toBe("all");
387+expect(registryLoad?.config).toBeTypeOf("object");
388+expect(registryLoad?.activationSourceConfig).toBeTypeOf("object");
389+expect(registryLoad?.workspaceDir).toBe(path.join(home, "openclaw"));
390+expect(registryLoad?.onlyPluginIds).toEqual(["codex"]);
391+}
391392expectLastRunProviderModel("openai", "gpt-5.2");
392393});
393394});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。