Handle incomplete task policies and preserve review limits (#15593)

Apply the reviewed change for Handle incomplete task policies and preserve review limits.

Validation: local typecheck/build and focused regression tests, passing exact-head CI, Greptile 5/5, and independent source review. The PR records full-suite evidence and any local environment limitations.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Devin FoleyandPaperclip authored and GitHub committed 2026-10-08 10:20:32 -07:00
1 parent 3d0e74e743
commit 317ed367d4
13 files changed
+452 -30

No files matched your search

@@ -401,7 +401,8 @@ export function normalizeIssueExecutionPolicy(input: unknown): IssueExecutionPol
const reviewPreset = parsed.data.reviewPreset;
const authorizationPolicy = parsed.data.authorizationPolicy;
if (stages.length === 0 && !monitor && !reviewPreset && !authorizationPolicy) return null;
if (stages.length === 0 && !monitor && !reviewPreset && !authorizationPolicy
&& parsed.data.maxReviewRounds == null) return null;
return {
mode: parsed.data.mode ?? "normal",