Integrate master agent runtime orchestration updates

This commit is contained in:
kris
2026-04-16 04:41:46 +08:00
parent e0c0ea1814
commit 39be49630f
81 changed files with 9283 additions and 448 deletions

View File

@@ -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([