Skip to content

Commit c76cdc1

Browse files
committed
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.
1 parent 6688a0e commit c76cdc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/workflows/utils/resolvers/module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export function resolveModule(id: string, overrides: ModuleOverrides = {}): Work
4242
const promptPath = overrides.promptPath ?? moduleEntry.promptPath;
4343
const model = overrides.model ?? moduleEntry.model;
4444
const modelReasoningEffort = overrides.modelReasoningEffort ?? moduleEntry.modelReasoningEffort;
45+
const engine = overrides.engine ?? moduleEntry.engine;
4546

4647
if (typeof promptPath !== 'string' || !promptPath.trim()) {
4748
throw new Error(`Module ${id} is missing a promptPath configuration.`);
@@ -56,6 +57,7 @@ export function resolveModule(id: string, overrides: ModuleOverrides = {}): Work
5657
promptPath,
5758
model,
5859
modelReasoningEffort,
60+
engine,
5961
module: {
6062
id: moduleEntry.id,
6163
behavior,

0 commit comments

Comments
 (0)