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(lint): fix React hooks rules violation in text-overlay
Louis Beaumontc4b2fbf5e2f9
diff --git a/screenpipe-app-tauri/components/text-overlay.tsx b/screenpipe-app-tauri/components/text-overlay.tsxindex fccaed106..5e08b098e 100644--- a/screenpipe-app-tauri/components/text-overlay.tsx+++ b/screenpipe-app-tauri/components/text-overlay.tsx@@ -98,8 +98,8 @@ export const TextOverlay = memo(function TextOverlay({clickableUrls = true,}: TextOverlayProps) {// TEMPORARILY DISABLED: Text selection is buggy, disable for now- // Remove this line to re-enable text overlay- return null;+ const isDisabled = true;+// Scale and filter text positions, detect URLs// Note: OCR bounds are normalized (0-1 range), so we multiply directly by displayed dimensionsconst scaledPositions = useMemo<ScaledTextPositionWithUrl[]>(() => {@@ -151,6 +151,11 @@ export const TextOverlay = memo(function TextOverlay({window.open(url, "_blank", "noopener,noreferrer");}, []);+ // Early return for disabled state (must be after all hooks)+ if (isDisabled) {+ return null;+ }+if (scaledPositions.length === 0) {return null;}