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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user