fix: include persisted plugin contracts for migrations (#89612) · openclaw/openclaw@3a7cdaf
zerone0x
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -63,7 +63,6 @@ describe("resolveManifestContractRuntimePluginResolution", () => {
|
63 | 63 | expect(loadPluginMetadataSnapshot).toHaveBeenCalledWith({ |
64 | 64 | config: {}, |
65 | 65 | env: process.env, |
66 | | -preferPersisted: false, |
67 | 66 | }); |
68 | 67 | }); |
69 | 68 | }); |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,10 +13,6 @@ export type ManifestContractRuntimePluginResolution = {
|
13 | 13 | bundledCompatPluginIds: string[]; |
14 | 14 | }; |
15 | 15 | |
16 | | -const DEMAND_ONLY_CONTRACT_LOOKUP_OPTIONS = { |
17 | | -preferPersisted: false, |
18 | | -} as const; |
19 | | - |
20 | 16 | export function resolveManifestContractRuntimePluginResolution(params: { |
21 | 17 | cfg?: OpenClawConfig; |
22 | 18 | contract: PluginManifestContractListKey; |
@@ -25,7 +21,6 @@ export function resolveManifestContractRuntimePluginResolution(params: {
|
25 | 21 | const snapshot = loadPluginMetadataSnapshot({ |
26 | 22 | config: params.cfg ?? {}, |
27 | 23 | env: process.env, |
28 | | - ...DEMAND_ONLY_CONTRACT_LOOKUP_OPTIONS, |
29 | 24 | }); |
30 | 25 | const allContractPlugins = snapshot.plugins.filter((plugin) => |
31 | 26 | hasManifestContractValue({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -226,7 +226,6 @@ describe("migration provider runtime", () => {
|
226 | 226 | expect(mocks.loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledWith({ |
227 | 227 | config: cfg, |
228 | 228 | env: process.env, |
229 | | -preferPersisted: false, |
230 | 229 | }); |
231 | 230 | const manifestParams = requireMockCallArg( |
232 | 231 | mocks.loadPluginManifestRegistry, |
@@ -289,7 +288,6 @@ describe("migration provider runtime", () => {
|
289 | 288 | expect(mocks.loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledWith({ |
290 | 289 | config: {}, |
291 | 290 | env: process.env, |
292 | | -preferPersisted: false, |
293 | 291 | workspaceDir: undefined, |
294 | 292 | }); |
295 | 293 | const manifestParams = requireMockCallArg( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。