Refine AI review false-positive rules

This commit is contained in:
Codex
2026-05-27 16:52:53 +08:00
parent 54ea338bd6
commit 16b7b927d9
2 changed files with 159 additions and 13 deletions

View File

@@ -581,7 +581,7 @@ function baseReviewNotes(record) {
function aiAttentionNotes(record) {
const notes = [];
const latestAiLog = (record.review_logs || []).find((log) => Boolean(log.ai_result));
const latestAiLog = [...(record.review_logs || [])].reverse().find((log) => Boolean(log.ai_result));
const parsed = latestAiLog?.ai_result?.parsed;
if (!parsed) return notes;
if (Array.isArray(parsed.remaining_issues)) {