fix: include persisted plugin contracts for migrations (#89612)

This commit is contained in:
zerone0x
2026-06-23 00:18:48 +08:00
committed by GitHub
parent ae22f485ec
commit 3a7cdaf32c
3 changed files with 0 additions and 8 deletions

View File

@@ -63,7 +63,6 @@ describe("resolveManifestContractRuntimePluginResolution", () => {
expect(loadPluginMetadataSnapshot).toHaveBeenCalledWith({
config: {},
env: process.env,
preferPersisted: false,
});
});
});

View File

@@ -13,10 +13,6 @@ export type ManifestContractRuntimePluginResolution = {
bundledCompatPluginIds: string[];
};
const DEMAND_ONLY_CONTRACT_LOOKUP_OPTIONS = {
preferPersisted: false,
} as const;
export function resolveManifestContractRuntimePluginResolution(params: {
cfg?: OpenClawConfig;
contract: PluginManifestContractListKey;
@@ -25,7 +21,6 @@ export function resolveManifestContractRuntimePluginResolution(params: {
const snapshot = loadPluginMetadataSnapshot({
config: params.cfg ?? {},
env: process.env,
...DEMAND_ONLY_CONTRACT_LOOKUP_OPTIONS,
});
const allContractPlugins = snapshot.plugins.filter((plugin) =>
hasManifestContractValue({

View File

@@ -226,7 +226,6 @@ describe("migration provider runtime", () => {
expect(mocks.loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledWith({
config: cfg,
env: process.env,
preferPersisted: false,
});
const manifestParams = requireMockCallArg(
mocks.loadPluginManifestRegistry,
@@ -289,7 +288,6 @@ describe("migration provider runtime", () => {
expect(mocks.loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledWith({
config: {},
env: process.env,
preferPersisted: false,
workspaceDir: undefined,
});
const manifestParams = requireMockCallArg(