auto-claude: subtask-1-1 - Add metadata?.requireReviewBeforeCoding check (#1460)

Fix bug where "Approve Plan" badge incorrectly displays when user has NOT
checked the "need human review" checkbox. The plan_review reason is now only
set when both planStatus === 'review' AND requireReviewBeforeCoding is true.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Andy
2026-01-24 14:47:08 +01:00
committed by GitHub
parent c5a0f042da
commit 426d56571c
+2 -1
View File
@@ -616,7 +616,8 @@ export class ProjectStore {
}
// Plan review stage (human approval of spec before coding starts)
if (isPlanReviewStage && storedStatus === 'human_review') {
// Only show plan_review when user explicitly requested human review via checkbox
if (isPlanReviewStage && storedStatus === 'human_review' && metadata?.requireReviewBeforeCoding) {
debugLog('[determineTaskStatusAndReason] Plan review stage detected:', {
planStatus: plan.status,
reason: 'Spec creation complete, awaiting user approval'