hotfix(ci): clean up ai review reruns and logging

This commit is contained in:
Tam Nhu Tran
2026-04-02 00:31:51 -04:00
parent 5b9427f8a0
commit f47e7ae5a7
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -271,7 +271,7 @@ export async function writeDirectReviewFromEnv(env = process.env, fetchImpl = gl
attempt === 1
? buildPrimaryPrompt({ meta, packet })
: `${buildPrimaryPrompt({ meta, packet })}\n\n${buildRepairPrompt({ validationReason: lastReason, previousCandidate })}`;
const startedAt = new Date().toISOString();
const attemptStartedAt = new Date().toISOString();
const responseJson = await postReviewRequest({
apiUrl: cleanText(env.ANTHROPIC_BASE_URL),
apiKey: cleanText(env.ANTHROPIC_AUTH_TOKEN),
@@ -286,7 +286,7 @@ export async function writeDirectReviewFromEnv(env = process.env, fetchImpl = gl
const validation = normalizeStructuredOutput(previousCandidate);
attempts.push({
attempt,
startedAt,
startedAt: attemptStartedAt,
status: validation.ok ? 'validated' : 'invalid',
timeoutMs: attemptWindow.timeoutMs,
validationReason: validation.ok ? null : validation.reason,