fix: allow onboarding config size drops · openclaw/openclaw@12882a8
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -83,6 +83,7 @@ async function runNonInteractiveMigrationImport(params: {
|
83 | 83 | await replaceConfigFile({ |
84 | 84 | nextConfig: config, |
85 | 85 | ...(params.baseHash !== undefined ? { baseHash: params.baseHash } : {}), |
| 86 | +writeOptions: { allowConfigSizeDrop: true }, |
86 | 87 | }); |
87 | 88 | logConfigUpdated(params.runtime); |
88 | 89 | return config; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -208,6 +208,7 @@ export async function runNonInteractiveLocalSetup(params: {
|
208 | 208 | await replaceConfigFile({ |
209 | 209 | nextConfig, |
210 | 210 | ...(baseHash !== undefined ? { baseHash } : {}), |
| 211 | +writeOptions: { allowConfigSizeDrop: true }, |
211 | 212 | }); |
212 | 213 | logConfigUpdated(runtime); |
213 | 214 | await preparePostConfigBundledRuntimeDeps({ config: nextConfig, runtime }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,6 +42,7 @@ export async function runNonInteractiveRemoteSetup(params: {
|
42 | 42 | await replaceConfigFile({ |
43 | 43 | nextConfig, |
44 | 44 | ...(baseHash !== undefined ? { baseHash } : {}), |
| 45 | +writeOptions: { allowConfigSizeDrop: true }, |
45 | 46 | }); |
46 | 47 | logConfigUpdated(runtime); |
47 | 48 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -537,6 +537,7 @@ describe("runSetupWizard", () => {
|
537 | 537 | }), |
538 | 538 | }), |
539 | 539 | }), |
| 540 | +writeOptions: expect.objectContaining({ allowConfigSizeDrop: true }), |
540 | 541 | }), |
541 | 542 | ); |
542 | 543 | expect(ensureWorkspaceAndSessions).toHaveBeenCalledWith( |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -61,7 +61,7 @@ async function writeWizardConfigFile(config: OpenClawConfig): Promise<OpenClawCo
|
61 | 61 | commit: async (nextConfig, writeOptions) => { |
62 | 62 | await replaceConfigFile({ |
63 | 63 | nextConfig, |
64 | | -...(writeOptions ? { writeOptions } : {}), |
| 64 | +writeOptions: { ...writeOptions, allowConfigSizeDrop: true }, |
65 | 65 | afterWrite: { mode: "auto" }, |
66 | 66 | }); |
67 | 67 | }, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。