fix(codex): preserve plan approval in yolo (#1420)

This commit is contained in:
SSU-WEI HUANG
2026-08-10 10:44:41 +08:00
committed by GitHub
parent b744414241
commit e6e229c068
6 changed files with 53 additions and 27 deletions
+3 -2
View File
@@ -298,13 +298,14 @@ export function buildTurnStartParams(args: {
if (!model) {
throw new Error(`Collaboration mode '${collaborationMode}' requires a resolved model`);
}
const { developerInstructions } = resolveInstructions(args);
params.collaborationMode = {
mode: collaborationMode,
settings: {
model,
...(modelReasoningEffort !== undefined ? { reasoning_effort: modelReasoningEffort } : {}),
developer_instructions: appendCollaborationInstructions(developerInstructions, args.mode?.proactiveMultiAgent)
developer_instructions: collaborationMode === 'plan'
? null
: appendCollaborationInstructions(resolveInstructions(args).developerInstructions, args.mode?.proactiveMultiAgent)
}
};
} else if (model) {