fix: reuse startup metadata in plugin bootstrap · openclaw/openclaw@197c831
shakkernerd
·
2026-04-28
·
via Recent Commits to openclaw:main
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|
@@ -308,6 +308,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
|
308 | 308 | expect(applyPluginAutoEnable).toHaveBeenCalledWith({ |
309 | 309 | config: sourceConfig, |
310 | 310 | env: process.env, |
| 311 | +manifestRegistry: pluginManifestRegistry, |
311 | 312 | }); |
312 | 313 | expect(loadPluginLookUpTable).toHaveBeenCalledWith( |
313 | 314 | expect.objectContaining({ |
|
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|
@@ -140,6 +140,9 @@ export async function prepareGatewayPluginBootstrap(params: {
|
140 | 140 | activationConfig: applyPluginAutoEnable({ |
141 | 141 | config: activationSourceConfig, |
142 | 142 | env: process.env, |
| 143 | + ...(params.pluginMetadataSnapshot?.manifestRegistry |
| 144 | + ? { manifestRegistry: params.pluginMetadataSnapshot.manifestRegistry } |
| 145 | + : {}), |
143 | 146 | }).config, |
144 | 147 | }); |
145 | 148 | const defaultAgentId = resolveDefaultAgentId(gatewayPluginConfig); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。