fix: allow optional Preview automation paths

This commit is contained in:
codex
2026-08-04 12:29:37 +03:00
parent 0052790a2b
commit 0829e5dace
3 changed files with 13 additions and 2 deletions
+6 -1
View File
@@ -133,7 +133,12 @@ internal static class PilotCli
Console.Error.WriteLine("AUTOMATION_PREPARE_BLOCKED:" + string.Join(',', prepared.SafetyDecision.Violations));
return new(false, false, false, false, false);
}
var execution = await service.ExecuteAsync(new(request, prepared.Plan, PermitService.Issue(prepared.Plan, config.ExecutionPermitLifetimeSeconds)), CancellationToken.None); if (!execution.Started || execution.ProcessId is null) return new(false, false, false, false, false);
var execution = await service.ExecuteAsync(new(request, prepared.Plan, PermitService.Issue(prepared.Plan, config.ExecutionPermitLifetimeSeconds)), CancellationToken.None);
if (!execution.Started || execution.ProcessId is null)
{
Console.Error.WriteLine("AUTOMATION_EXECUTION_BLOCKED:" + (execution.BlockCode ?? "PROCESS_START_FAILED"));
return new(false, false, false, false, false);
}
var forcedCleanup = false;
var gracefulExit = false;
try