Integrate master agent runtime orchestration updates
This commit is contained in:
@@ -169,6 +169,38 @@ test("master agent reply without target thread stays on ephemeral exec", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
test("task execution model overrides local-agent default model", () => {
|
||||
const execution = buildCodexTaskExecution(
|
||||
{
|
||||
masterAgentWorkdir: "/Users/kris/code/boss",
|
||||
masterAgentSandbox: "workspace-write",
|
||||
masterAgentModel: "gpt-5.4-mini",
|
||||
},
|
||||
{
|
||||
taskType: "group_dispatch_plan",
|
||||
executionPrompt: "请生成群聊分发方案",
|
||||
executionModel: "gpt-5.4",
|
||||
},
|
||||
"/tmp/master.txt",
|
||||
);
|
||||
|
||||
assert.equal(execution.mode, "ephemeral");
|
||||
assert.deepEqual(execution.args, [
|
||||
"exec",
|
||||
"--ephemeral",
|
||||
"--skip-git-repo-check",
|
||||
"-C",
|
||||
"/Users/kris/code/boss",
|
||||
"-s",
|
||||
"workspace-write",
|
||||
"-o",
|
||||
"/tmp/master.txt",
|
||||
"-m",
|
||||
"gpt-5.4",
|
||||
"请生成群聊分发方案",
|
||||
]);
|
||||
});
|
||||
|
||||
test("conversation reply preflight fails closed when target cwd is missing", async () => {
|
||||
const missingFolder = "/tmp/boss-local-agent-missing-workdir";
|
||||
const stateDbPath = await createCodexStateDb([
|
||||
|
||||
Reference in New Issue
Block a user