test: stabilize prompt snapshot plugin tools

This commit is contained in:
Shakker 2026-05-07 12:25:08 +01:00
parent 64514a6548
commit 01dd593cfd
No known key found for this signature in database

View file

@ -183,6 +183,16 @@ const baseConfig: OpenClawConfig = {
},
};
const dynamicToolsConfig: OpenClawConfig = {
...baseConfig,
plugins: {
enabled: true,
slots: {
memory: "none",
},
},
};
const happyPathModel = {
id: MODEL_ID,
provider: "openai",
@ -335,12 +345,13 @@ function createDynamicTools(params: {
enableHeartbeatTool: params.trigger === "heartbeat",
forceHeartbeatTool: params.trigger === "heartbeat",
trigger: params.trigger,
config: dynamicToolsConfig,
});
const normalized = normalizeAgentRuntimeTools({
tools,
runtimePlan: undefined,
provider: "codex",
config: baseConfig,
config: dynamicToolsConfig,
workspaceDir: WORKSPACE_DIR,
env: {},
modelId: MODEL_ID,