mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-14 21:30:43 +00:00
fix(cli): repair agent runtime deps during startup
This commit is contained in:
@@ -87,6 +87,20 @@ describe("ensureCliCommandBootstrap", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("loads agent command plugins with bundled runtime repair enabled", async () => {
|
||||
await ensureCliCommandBootstrap({
|
||||
runtime: {} as never,
|
||||
commandPath: ["agent"],
|
||||
loadPlugins: true,
|
||||
});
|
||||
|
||||
expect(ensureCliPluginRegistryLoadedMock).toHaveBeenCalledWith({
|
||||
scope: "all",
|
||||
routeLogsToStderr: undefined,
|
||||
installBundledRuntimeDeps: true,
|
||||
});
|
||||
});
|
||||
|
||||
it("does nothing extra when plugin loading is disabled", async () => {
|
||||
await ensureCliCommandBootstrap({
|
||||
runtime: {} as never,
|
||||
|
||||
Reference in New Issue
Block a user