From c76cdc1177a149c7550cfdf3b2b61bdff57562fc Mon Sep 17 00:00:00 2001 From: dannytodtenhoefer Date: Fri, 28 Nov 2025 09:52:56 +0100 Subject: [PATCH] fix(workflows): pass engine option through resolveModule resolveModule was not passing the engine option from workflow overrides or module config, causing workflows to fall back to default engine instead of using the specified one. This aligns resolveModule with resolveStep which already handles engine correctly. --- src/workflows/utils/resolvers/module.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/workflows/utils/resolvers/module.ts b/src/workflows/utils/resolvers/module.ts index ff48ec01..99698ddb 100644 --- a/src/workflows/utils/resolvers/module.ts +++ b/src/workflows/utils/resolvers/module.ts @@ -42,6 +42,7 @@ export function resolveModule(id: string, overrides: ModuleOverrides = {}): Work const promptPath = overrides.promptPath ?? moduleEntry.promptPath; const model = overrides.model ?? moduleEntry.model; const modelReasoningEffort = overrides.modelReasoningEffort ?? moduleEntry.modelReasoningEffort; + const engine = overrides.engine ?? moduleEntry.engine; if (typeof promptPath !== 'string' || !promptPath.trim()) { throw new Error(`Module ${id} is missing a promptPath configuration.`); @@ -56,6 +57,7 @@ export function resolveModule(id: string, overrides: ModuleOverrides = {}): Work promptPath, model, modelReasoningEffort, + engine, module: { id: moduleEntry.id, behavior,