Skip to content

Commit d757d90

Browse files
committed
cloud(reflexion): prepend warning message to runner comment on degraded state
1 parent cf41ef9 commit d757d90

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/reflexion-issue-runner.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ async function postResultComment(issueNumber, triggeringCommentId) {
376376
}
377377
}
378378

379-
const commentBody = formatRunnerComment({
379+
let commentBody = formatRunnerComment({
380380
runId: RUN_ID,
381381
triggeringCommentId: triggeringCommentId,
382382
scoreTable,
@@ -387,6 +387,12 @@ async function postResultComment(issueNumber, triggeringCommentId) {
387387
idePrompt,
388388
});
389389

390+
if (state.criticDegraded) {
391+
commentBody =
392+
'WARNING: Critique ran in fallback mode (Gemini 3.1 Pro) because the Claude API was unavailable — model separation was reduced; review this plan with extra scrutiny.\n\n' +
393+
commentBody;
394+
}
395+
390396
await createIssueComment(issueNumber, commentBody);
391397

392398
if (verdict === 'approve') {

0 commit comments

Comments
 (0)