mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
fix(plugins): allow intentional uninstall size drops (#110991)
This commit is contained in:
@@ -185,6 +185,19 @@ describe("plugins cli uninstall", () => {
|
||||
entries: {},
|
||||
},
|
||||
});
|
||||
expect(replaceConfigFile).toHaveBeenCalledWith({
|
||||
baseHash: "mock",
|
||||
nextConfig: {
|
||||
plugins: {
|
||||
entries: {},
|
||||
},
|
||||
},
|
||||
writeOptions: {
|
||||
allowConfigSizeDrop: true,
|
||||
afterWrite: { mode: "restart", reason: "plugin source changed" },
|
||||
unsetPaths: [["plugins", "installs"]],
|
||||
},
|
||||
});
|
||||
expect(refreshPluginRegistry).toHaveBeenCalledWith({
|
||||
config: {
|
||||
plugins: {
|
||||
|
||||
@@ -184,6 +184,7 @@ export async function runPluginUninstallCommand(
|
||||
nextConfig,
|
||||
...(snapshot.hash !== undefined ? { baseHash: snapshot.hash } : {}),
|
||||
writeOptions: {
|
||||
allowConfigSizeDrop: true,
|
||||
afterWrite: { mode: "restart", reason: "plugin source changed" },
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user