fix comment gemini

This commit is contained in:
SuperComboGamer
2025-12-17 22:20:16 -05:00
parent 91bff6c572
commit 760f254f78
5 changed files with 70 additions and 51 deletions

View File

@@ -9,30 +9,12 @@ import { Label } from "@/components/ui/label";
import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
import { cn } from "@/lib/utils";
import type { PlanSpec } from "@/store/app-store";
export type PlanningMode = 'skip' | 'lite' | 'spec' | 'full';
// Parsed task from spec (for spec and full planning modes)
export interface ParsedTask {
id: string; // e.g., "T001"
description: string; // e.g., "Create user model"
filePath?: string; // e.g., "src/models/user.ts"
phase?: string; // e.g., "Phase 1: Foundation" (for full mode)
status: 'pending' | 'in_progress' | 'completed' | 'failed';
}
export interface PlanSpec {
status: 'pending' | 'generating' | 'generated' | 'approved' | 'rejected';
content?: string;
version: number;
generatedAt?: string;
approvedAt?: string;
reviewedByUser: boolean;
tasksCompleted?: number;
tasksTotal?: number;
currentTaskId?: string; // ID of the task currently being worked on
tasks?: ParsedTask[]; // Parsed tasks from the spec
}
// Re-export for backwards compatibility
export type { ParsedTask, PlanSpec } from "@/store/app-store";
interface PlanningModeSelectorProps {
mode: PlanningMode;

View File

@@ -156,12 +156,7 @@ export function useAutoMode() {
case "auto_mode_error":
if (event.featureId && event.error) {
// Check if this is a user-initiated cancellation (not a real error)
const isCancellation =
event.error.includes("cancelled") ||
event.error.includes("stopped") ||
event.error.includes("aborted");
if (isCancellation) {
if (event.errorType === "cancellation") {
// User cancelled the feature - just log as info, not an error
console.log("[AutoMode] Feature cancelled:", event.error);
// Remove from running tasks

View File

@@ -193,7 +193,7 @@ export type AutoModeEvent =
| {
type: "auto_mode_error";
error: string;
errorType?: "authentication" | "execution";
errorType?: "authentication" | "cancellation" | "execution";
featureId?: string;
projectId?: string;
projectPath?: string;