Integrate master agent runtime orchestration updates
This commit is contained in:
@@ -235,6 +235,10 @@ export async function prepareCodexTaskExecution(config, task, outputFile) {
|
||||
export function buildCodexTaskExecution(config, task, outputFile) {
|
||||
const { targetThreadRef, cwd } = resolveResumeTarget(config, task);
|
||||
const prompt = String(task?.executionPrompt || "");
|
||||
const taskExecutionModel = typeof task?.executionModel === "string" && task.executionModel.trim()
|
||||
? task.executionModel.trim()
|
||||
: null;
|
||||
const effectiveModel = taskExecutionModel || config.masterAgentModel;
|
||||
|
||||
if (
|
||||
targetThreadRef &&
|
||||
@@ -247,8 +251,8 @@ export function buildCodexTaskExecution(config, task, outputFile) {
|
||||
"-o",
|
||||
outputFile,
|
||||
];
|
||||
if (config.masterAgentModel) {
|
||||
args.push("-m", config.masterAgentModel);
|
||||
if (effectiveModel) {
|
||||
args.push("-m", effectiveModel);
|
||||
}
|
||||
args.push(targetThreadRef, prompt);
|
||||
return {
|
||||
@@ -269,8 +273,8 @@ export function buildCodexTaskExecution(config, task, outputFile) {
|
||||
"-o",
|
||||
outputFile,
|
||||
];
|
||||
if (config.masterAgentModel) {
|
||||
args.push("-m", config.masterAgentModel);
|
||||
if (effectiveModel) {
|
||||
args.push("-m", effectiveModel);
|
||||
}
|
||||
args.push(prompt);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user