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
@@ -310,12 +310,13 @@ export class SyncEngine {
directory: string,
agent: 'claude' | 'codex' | 'cursor' | 'gemini' | 'opencode' = 'claude',
model?: string,
modelReasoningEffort?: string,
yolo?: boolean,
sessionType?: 'simple' | 'worktree',
worktreeName?: string,
resumeSessionId?: string
): Promise<{ type: 'success'; sessionId: string } | { type: 'error'; message: string }> {
return await this.rpcGateway.spawnSession(machineId, directory, agent, model, yolo, sessionType, worktreeName, resumeSessionId)
return await this.rpcGateway.spawnSession(machineId, directory, agent, model, modelReasoningEffort, yolo, sessionType, worktreeName, resumeSessionId)
}
async resumeSession(sessionId: string, namespace: string): Promise<ResumeSessionResult> {