mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:30:42 +00:00
fix: allow onboarding config size drops
This commit is contained in:
@@ -83,6 +83,7 @@ async function runNonInteractiveMigrationImport(params: {
|
||||
await replaceConfigFile({
|
||||
nextConfig: config,
|
||||
...(params.baseHash !== undefined ? { baseHash: params.baseHash } : {}),
|
||||
writeOptions: { allowConfigSizeDrop: true },
|
||||
});
|
||||
logConfigUpdated(params.runtime);
|
||||
return config;
|
||||
|
||||
@@ -208,6 +208,7 @@ export async function runNonInteractiveLocalSetup(params: {
|
||||
await replaceConfigFile({
|
||||
nextConfig,
|
||||
...(baseHash !== undefined ? { baseHash } : {}),
|
||||
writeOptions: { allowConfigSizeDrop: true },
|
||||
});
|
||||
logConfigUpdated(runtime);
|
||||
await preparePostConfigBundledRuntimeDeps({ config: nextConfig, runtime });
|
||||
|
||||
@@ -42,6 +42,7 @@ export async function runNonInteractiveRemoteSetup(params: {
|
||||
await replaceConfigFile({
|
||||
nextConfig,
|
||||
...(baseHash !== undefined ? { baseHash } : {}),
|
||||
writeOptions: { allowConfigSizeDrop: true },
|
||||
});
|
||||
logConfigUpdated(runtime);
|
||||
|
||||
|
||||
@@ -537,6 +537,7 @@ describe("runSetupWizard", () => {
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
writeOptions: expect.objectContaining({ allowConfigSizeDrop: true }),
|
||||
}),
|
||||
);
|
||||
expect(ensureWorkspaceAndSessions).toHaveBeenCalledWith(
|
||||
|
||||
@@ -61,7 +61,7 @@ async function writeWizardConfigFile(config: OpenClawConfig): Promise<OpenClawCo
|
||||
commit: async (nextConfig, writeOptions) => {
|
||||
await replaceConfigFile({
|
||||
nextConfig,
|
||||
...(writeOptions ? { writeOptions } : {}),
|
||||
writeOptions: { ...writeOptions, allowConfigSizeDrop: true },
|
||||
afterWrite: { mode: "auto" },
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user