test: stabilize prompt snapshot plugin tools · openclaw/openclaw@01dd593
shakkernerd
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -183,6 +183,16 @@ const baseConfig: OpenClawConfig = {
|
183 | 183 | }, |
184 | 184 | }; |
185 | 185 | |
| 186 | +const dynamicToolsConfig: OpenClawConfig = { |
| 187 | + ...baseConfig, |
| 188 | +plugins: { |
| 189 | +enabled: true, |
| 190 | +slots: { |
| 191 | +memory: "none", |
| 192 | +}, |
| 193 | +}, |
| 194 | +}; |
| 195 | + |
186 | 196 | const happyPathModel = { |
187 | 197 | id: MODEL_ID, |
188 | 198 | provider: "openai", |
@@ -335,12 +345,13 @@ function createDynamicTools(params: {
|
335 | 345 | enableHeartbeatTool: params.trigger === "heartbeat", |
336 | 346 | forceHeartbeatTool: params.trigger === "heartbeat", |
337 | 347 | trigger: params.trigger, |
| 348 | +config: dynamicToolsConfig, |
338 | 349 | }); |
339 | 350 | const normalized = normalizeAgentRuntimeTools({ |
340 | 351 | tools, |
341 | 352 | runtimePlan: undefined, |
342 | 353 | provider: "codex", |
343 | | -config: baseConfig, |
| 354 | +config: dynamicToolsConfig, |
344 | 355 | workspaceDir: WORKSPACE_DIR, |
345 | 356 | env: {}, |
346 | 357 | modelId: MODEL_ID, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。