mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:01:01 +00:00
fix: reuse startup metadata in plugin bootstrap
This commit is contained in:
@@ -308,6 +308,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
|
||||
expect(applyPluginAutoEnable).toHaveBeenCalledWith({
|
||||
config: sourceConfig,
|
||||
env: process.env,
|
||||
manifestRegistry: pluginManifestRegistry,
|
||||
});
|
||||
expect(loadPluginLookUpTable).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user