fix: /clear resets paired task to prevent reviewer auto-triggering after session clear

This commit is contained in:
Eyejoker
2026-03-29 21:07:34 +09:00
parent d8cb4b691e
commit 9127841359
3 changed files with 24 additions and 2 deletions

View File

@@ -32,9 +32,16 @@ import type {
// Reviewer verdict detection
// ---------------------------------------------------------------------------
type ReviewerVerdict = 'done' | 'done_with_concerns' | 'blocked' | 'needs_context' | 'continue';
type ReviewerVerdict =
| 'done'
| 'done_with_concerns'
| 'blocked'
| 'needs_context'
| 'continue';
function classifyReviewerVerdict(summary: string | null | undefined): ReviewerVerdict {
function classifyReviewerVerdict(
summary: string | null | undefined,
): ReviewerVerdict {
if (!summary) return 'continue';
const firstLine = summary.trimStart().split('\n')[0].trim();
if (/\bBLOCKED\b/.test(firstLine)) return 'blocked';