mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
fix(codex): preserve plan approval in yolo (#1420)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user