YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(ui): move activePreset declaration before usage
Louis Beaumont0219a4f57551
diff --git a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsxindex 8d697ab92..d73a016a8 100644--- a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx+++ b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx@@ -74,6 +74,7 @@ export function AIPanel({const { checkLogin } = useLoginDialog();const [activePreset, setActivePreset] = useState<AIPreset | undefined>(undefined);const isAvailable = settings.aiPresets && settings.aiPresets.length > 0;+ const [activePreset, setActivePreset] = useState<AIPreset | undefined>(undefined);const hasValidModel = activePreset?.model && activePreset.model.trim() !== "";const error = !isAvailable ? "No AI presets configured" : !hasValidModel ? "No model selected in preset" : "";