feat: support codex collaboration_modes

This commit is contained in:
weishu
2026-01-26 22:48:02 +08:00
parent 3a1379dc01
commit 83f07c199d
4 changed files with 45 additions and 5 deletions
+7 -1
View File
@@ -136,8 +136,14 @@ export function buildTurnStartParams(args: {
params.sandboxPolicy = sandboxPolicy;
}
const collaborationMode = args.mode?.collaborationMode;
const model = args.overrides?.model ?? args.mode?.model;
if (model) {
if (collaborationMode) {
const settings = model ? { model } : undefined;
params.collaborationMode = settings
? { mode: collaborationMode, settings }
: { mode: collaborationMode };
} else if (model) {
params.model = model;
}