fix(update): preserve doctor repair writes in legacy handoff · openclaw/openclaw@8edb99f
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -54,6 +54,21 @@ describe("doctor health contributions", () => {
|
54 | 54 | ).toBe(false); |
55 | 55 | }); |
56 | 56 | |
| 57 | +it("keeps repair writes from doctor config preflight writable during legacy update", () => { |
| 58 | +expect( |
| 59 | +shouldSkipLegacyUpdateDoctorMetadataWrite({ |
| 60 | +env: { OPENCLAW_UPDATE_IN_PROGRESS: "1" }, |
| 61 | +hasPendingConfigWrite: true, |
| 62 | +before: { gateway: { mode: "remote" } }, |
| 63 | +after: { |
| 64 | +gateway: { mode: "remote" }, |
| 65 | +meta: { lastTouchedVersion: "2026.4.27" }, |
| 66 | +wizard: { lastRunCommand: "doctor" }, |
| 67 | +}, |
| 68 | +}), |
| 69 | +).toBe(false); |
| 70 | +}); |
| 71 | + |
57 | 72 | it("keeps current update parents writable", () => { |
58 | 73 | expect( |
59 | 74 | shouldSkipLegacyUpdateDoctorMetadataWrite({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。