fix: reuse startup metadata in plugin bootstrap

This commit is contained in:
Shakker
2026-04-27 16:40:46 +01:00
parent 5a72378b27
commit 197c83138e
2 changed files with 4 additions and 0 deletions

View File

@@ -308,6 +308,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
expect(applyPluginAutoEnable).toHaveBeenCalledWith({
config: sourceConfig,
env: process.env,
manifestRegistry: pluginManifestRegistry,
});
expect(loadPluginLookUpTable).toHaveBeenCalledWith(
expect.objectContaining({

View File

@@ -140,6 +140,9 @@ export async function prepareGatewayPluginBootstrap(params: {
activationConfig: applyPluginAutoEnable({
config: activationSourceConfig,
env: process.env,
...(params.pluginMetadataSnapshot?.manifestRegistry
? { manifestRegistry: params.pluginMetadataSnapshot.manifestRegistry }
: {}),
}).config,
});
const defaultAgentId = resolveDefaultAgentId(gatewayPluginConfig);