mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-08 07:17:39 +00:00
Fix Codex reasoning effort resume and updates
This commit is contained in:
@@ -2,6 +2,7 @@ import { logger } from '@/ui/logger';
|
||||
import { spawnWithTerminalGuard } from '@/utils/spawnWithTerminalGuard';
|
||||
import { buildMcpServerConfigArgs, buildDeveloperInstructionsArg } from './utils/codexMcpConfig';
|
||||
import { codexSystemPrompt } from './utils/systemPrompt';
|
||||
import type { ReasoningEffort } from './appServerTypes';
|
||||
|
||||
/**
|
||||
* Filter out 'resume' subcommand which is managed internally by hapi.
|
||||
@@ -27,6 +28,7 @@ export async function codexLocal(opts: {
|
||||
sessionId: string | null;
|
||||
path: string;
|
||||
model?: string;
|
||||
modelReasoningEffort?: ReasoningEffort;
|
||||
sandbox?: 'read-only' | 'workspace-write' | 'danger-full-access';
|
||||
onSessionFound: (id: string) => void;
|
||||
codexArgs?: string[];
|
||||
@@ -43,6 +45,10 @@ export async function codexLocal(opts: {
|
||||
args.push('--model', opts.model);
|
||||
}
|
||||
|
||||
if (opts.modelReasoningEffort) {
|
||||
args.push('--model-reasoning-effort', opts.modelReasoningEffort);
|
||||
}
|
||||
|
||||
if (opts.sandbox) {
|
||||
args.push('--sandbox', opts.sandbox);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user