Execute workflow plans as DAG jobs on the manager

This commit is contained in:
alex committed 2026-11-26 19:18:02 +00:00
1 parent d8c2a6dfc8
commit 3aabfb2e63
8 files changed
+1012 -50

No files matched your search

+23
View File
@@ -373,3 +373,26 @@ test(
}
},
);
test("a step model overrides the agent and dispatch model without inheriting thinking", async () => {
let captured: string[] = [];
const runner = makeRunner(
{ FAKE_PI_MODE: "success" },
{
invocation: (args) => {
captured = args;
return { command: process.execPath, args: [fixturePath, ...args] };
},
},
);
const agent = makeAgent({ model: "agent-model" });
const defaults: DispatchDefaults = { model: "dispatch-model", thinkingLevel: "high" };
const result = await runner.run(makeTask({ agent, model: "step-model", stepId: "scan" }), defaults, runOptions());
assert.equal(result.exitCode, 0);
assert.equal(captured[captured.indexOf("--model") + 1], "step-model");
assert.equal(captured.includes("--thinking"), false);
assert.equal(result.model, "step-model");
assert.equal(result.stepId, "scan");
});