mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
fix(codex): support app-server plan mode (#622)
* fix(codex): support app-server plan mode * fix(codex): broaden plan mode compatibility checks
This commit is contained in:
@@ -139,6 +139,7 @@ export function buildTurnStartParams(args: {
|
||||
approvalPolicy?: TurnStartParams['approvalPolicy'];
|
||||
sandboxPolicy?: TurnStartParams['sandboxPolicy'];
|
||||
model?: string;
|
||||
suppressCollaborationMode?: boolean;
|
||||
};
|
||||
}): TurnStartParams {
|
||||
const params: TurnStartParams = {
|
||||
@@ -163,7 +164,9 @@ export function buildTurnStartParams(args: {
|
||||
params.sandboxPolicy = sandboxPolicy;
|
||||
}
|
||||
|
||||
const collaborationMode = args.mode?.collaborationMode;
|
||||
const collaborationMode = args.overrides?.suppressCollaborationMode
|
||||
? undefined
|
||||
: args.mode?.collaborationMode;
|
||||
const model = args.overrides?.model ?? args.mode?.model;
|
||||
|
||||
if (args.mode?.modelReasoningEffort) {
|
||||
|
||||
Reference in New Issue
Block a user