feat: add codex reasoning effort option (#297)

This commit is contained in:
ROOOO
2026-03-17 22:55:55 +08:00
committed by GitHub
parent caa76826f4
commit cb09f0b898
18 changed files with 107 additions and 6 deletions
+2 -1
View File
@@ -381,13 +381,14 @@ export class ApiClient {
directory: string,
agent?: 'claude' | 'codex' | 'cursor' | 'gemini' | 'opencode',
model?: string,
modelReasoningEffort?: string,
yolo?: boolean,
sessionType?: 'simple' | 'worktree',
worktreeName?: string
): Promise<SpawnResponse> {
return await this.request<SpawnResponse>(`/api/machines/${encodeURIComponent(machineId)}/spawn`, {
method: 'POST',
body: JSON.stringify({ directory, agent, model, yolo, sessionType, worktreeName })
body: JSON.stringify({ directory, agent, model, modelReasoningEffort, yolo, sessionType, worktreeName })
})
}