Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
Clear prompt on variant complete and fix missing LuX import
Abi Raja5adeb7ca2dfa
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsxindex ac855d94..0c5792ab 100644--- a/frontend/src/App.tsx+++ b/frontend/src/App.tsx@@ -306,6 +306,9 @@ function App() {finishThinkingEvent(variantIndex, "complete");finishAssistantEvent(variantIndex, "complete");finishToolEvent(variantIndex, "complete");+ // Clear prompt as soon as a variant succeeds (textarea becomes visible)+ setUpdateInstruction("");+ setUpdateImages([]);},onVariantError: (variantIndex, error) => {console.error(`Error in variant ${variantIndex}:`, error);diff --git a/frontend/src/components/sidebar/Sidebar.tsx b/frontend/src/components/sidebar/Sidebar.tsxindex cfb5e7f9..928e5be4 100644--- a/frontend/src/components/sidebar/Sidebar.tsx+++ b/frontend/src/components/sidebar/Sidebar.tsx@@ -3,7 +3,7 @@ import { useProjectStore } from "../../store/project-store";import { AppState } from "../../types";import { Button } from "../ui/button";import { useEffect, useRef, useState, useCallback } from "react";-import { LuMousePointerClick, LuRefreshCw, LuArrowUp } from "react-icons/lu";+import { LuMousePointerClick, LuRefreshCw, LuArrowUp, LuX } from "react-icons/lu";import { toast } from "react-hot-toast";import Variants from "../variants/Variants";