@@ -3630,23 +3630,6 @@ function previousReviewProofStatus(body: string): string {
36303630 return firstMergeReadinessLine(body, "Proof:");
36313631}
36323632
3633- function previousReviewFindings(body: string): Array<{ priority: string; title: string }> {
3634- return body
3635- .split(/\r?\n/)
3636- .map((line) => line.trim())
3637- .flatMap((line) => {
3638- if (!line.startsWith("- [P")) return [];
3639- const close = line.indexOf("]");
3640- if (close < 5) return [];
3641- const priority = line.slice(3, close);
3642- if (!/^P[0-3]$/.test(priority)) return [];
3643- const rest = line.slice(close + 1).trim();
3644- const dash = minNonNegative([rest.indexOf(" - "), rest.indexOf(" — ")]);
3645- const title = (dash < 0 ? rest : rest.slice(0, dash)).trim();
3646- return title ? [{ priority, title }] : [];
3647- });
3648- }
3649-
36503633function reviewHistoryFindings(
36513634 cycle: ReviewHistoryCycle | undefined,
36523635): Array<{ priority: string; title: string }> {
@@ -3689,9 +3672,7 @@ function extractLatestClawSweeperReview(
36893672 nextStep:
36903673 firstNonEmptyLine(markdownSection(body, "Next step before merge")) ||
36913674 firstNonEmptyLine(markdownSection(body, "Next step")),
3692- findings: currentCycle
3693- ? previousReviewFindings(body)
3694- : reviewHistoryFindings(latestCompletedCycle),
3675+ findings: reviewHistoryFindings(latestCompletedCycle),
36953676 earlierReviewCycles,
36963677 completedReviewCycles: history.totalCompletedCycles + (currentCycle ? 1 : 0),
36973678 commentId: comment.id,
0 commit comments