Skip to content

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

Fix all clippy and ESLint warnings across codebase

Louis Beaumont7a3ea79e4c27
diff --git a/apps/screenpipe-app-tauri/components/onboarding/login-gate.tsx b/apps/screenpipe-app-tauri/components/onboarding/login-gate.tsx
index 316284f5d..0a5b0800b 100644
--- a/apps/screenpipe-app-tauri/components/onboarding/login-gate.tsx
+++ b/apps/screenpipe-app-tauri/components/onboarding/login-gate.tsx
@@ -99,6 +99,7 @@ function useBackgroundCanvas(
}
draw();
return () => cancelAnimationFrame(anim.current);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [w, h]);
}
@@ -122,6 +123,7 @@ function useButtonCanvas(
c.width = w * dpr;
c.height = h * dpr;
ctx.scale(dpr, dpr);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [w, h]);
useEffect(() => {
@@ -217,6 +219,7 @@ function useButtonCanvas(
}
draw();
return () => cancelAnimationFrame(anim.current);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [w, h, hovered]);
}
@@ -293,7 +296,7 @@ const OnboardingLogin: React.FC<OnboardingLoginProps> = ({ handleNextSlide }) =>
animate={{ opacity: 1 }}
transition={{ duration: 0.5, delay: 0.5 }}
>
- ai finally knows what you're doing
+ ai finally knows what you&apos;re doing
</motion.p>
{isLoggedIn ? (
diff --git a/apps/screenpipe-app-tauri/components/onboarding/read-content.tsx b/apps/screenpipe-app-tauri/components/onboarding/read-content.tsx
index 7c37e82a1..1d22d17c4 100644
--- a/apps/screenpipe-app-tauri/components/onboarding/read-content.tsx
+++ b/apps/screenpipe-app-tauri/components/onboarding/read-content.tsx
@@ -100,6 +100,7 @@ export default function ReadContent({ handleNextSlide }: ReadContentProps) {
return () => {
unlisten?.();
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleOpenBrowser = useCallback(async () => {
diff --git a/apps/screenpipe-app-tauri/components/onboarding/status.tsx b/apps/screenpipe-app-tauri/components/onboarding/status.tsx
index f1da12ec3..6723261b8 100644
--- a/apps/screenpipe-app-tauri/components/onboarding/status.tsx
+++ b/apps/screenpipe-app-tauri/components/onboarding/status.tsx
@@ -142,6 +142,7 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({
const delay = Math.max(0, minDisplay - elapsed);
setTimeout(() => handleNextSlide(), delay);
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [setupState]);
const sendLogs = async () => {
@@ -359,6 +360,7 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({
if (stuckTimeoutRef.current) clearTimeout(stuckTimeoutRef.current);
if (takingLongerTimeoutRef.current) clearTimeout(takingLongerTimeoutRef.current);
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [setupState]);
const openLogsFolder = async () => {
@@ -433,6 +435,7 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.4 }}
>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img className="w-12 h-12 mb-2" src="/128x128.png" alt="screenpipe" />
<h1 className="font-mono text-base font-bold text-foreground">screenpipe</h1>
</motion.div>
diff --git a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
index 4b33d51bb..95c51c33e 100644
--- a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
@@ -781,6 +781,7 @@ export const AIPresetsSelector = ({
AIPreset | undefined
>();
+ // eslint-disable-next-line react-hooks/exhaustive-deps
const aiPresets = (settings?.aiPresets || []) as AIPreset[];
const selectedPreset = useMemo(() => {
@@ -801,6 +802,7 @@ export const AIPresetsSelector = ({
if (onPresetChange) {
onPresetChange(aiPresets.find((p) => p.id === selectedPreset) as AIPreset);
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectedPreset, onPresetChange]);
useEffect(() => {
diff --git a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
index cbf25ad2c..a25890546 100644
--- a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
@@ -389,6 +389,7 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
img.onload = null;
img.onerror = null;
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [fallbackImageUrl]);
// OCR data
@@ -589,6 +590,7 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
);
}
+ // eslint-disable-next-line react-hooks/rules-of-hooks
const handleContextMenu = useCallback(
(e: React.MouseEvent) => {
e.preventDefault();
@@ -689,6 +691,7 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
{/* Fallback mode: preloaded <img> layered on top of video */}
{displayedFallbackUrl && !useVideoMode && (
+ // eslint-disable-next-line @next/next/no-img-element
<img
src={displayedFallbackUrl}
className="absolute inset-0 w-full h-full object-contain"
diff --git a/apps/screenpipe-app-tauri/components/rewind/daily-summary.tsx b/apps/screenpipe-app-tauri/components/rewind/daily-summary.tsx
index 8e41d8751..eb32de149 100644
--- a/apps/screenpipe-app-tauri/components/rewind/daily-summary.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/daily-summary.tsx
@@ -382,6 +382,7 @@ export function DailySummaryCard({
onClick={() => generateSummary()}
className="w-10 h-10 backdrop-blur-xl bg-black/60 border border-white/10 rounded-xl flex items-center justify-center hover:bg-white/10 transition-colors shadow-2xl"
>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/apple-intelligence-logo.svg"
alt="Generate daily summary"
@@ -410,6 +411,7 @@ export function DailySummaryCard({
}}
className="w-full flex items-center gap-2.5 px-3 py-2.5 hover:bg-white/5 transition-colors"
>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/apple-intelligence-logo.svg"
alt=""
diff --git a/apps/screenpipe-app-tauri/components/rewind/image-card.tsx b/apps/screenpipe-app-tauri/components/rewind/image-card.tsx
index 762974920..656cd7706 100644
--- a/apps/screenpipe-app-tauri/components/rewind/image-card.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/image-card.tsx
@@ -63,6 +63,7 @@ const FrameImage = ({ frameId, alt }: { frameId: number; alt: string }) => {
<div className="w-8 h-8 rounded bg-muted/80" />
</div>
) : (
+ // eslint-disable-next-line @next/next/no-img-element
<img
src={src}
alt={alt}
@@ -129,7 +130,8 @@ export const ImageGrid = ({
});
}
}, 400),
- [searchResult.length, searchKeywords, query, start_time, end_time, apps],
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [searchResult.length, searchKeywords, query, start_time, end_time, apps],
);
useEffect(() => {
@@ -370,6 +372,7 @@ export const MainImage = () => {
</div>
) : (
<div className="relative">
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
ref={imageRef}
src={src}
diff --git a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
index ec2952c64..831714f76 100644
--- a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
@@ -240,6 +240,7 @@ const FrameThumbnail = ({ frameId, alt }: { frameId: number; alt: string }) => {
<span className="text-xs text-muted-foreground">unavailable</span>
</div>
) : (
+ // eslint-disable-next-line @next/next/no-img-element
<img
src={`http://localhost:3030/frames/${frameId}`}
alt={alt}
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
index d7c7010e8..86185eb7a 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -368,6 +368,7 @@ export default function Timeline() {
return () => {
unlisten.then((fn) => fn());
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [navigateToTimestamp, setPendingNavigation, toast]);
// Consume pending navigation from zustand store on mount (survives page navigation)
@@ -428,6 +429,7 @@ export default function Timeline() {
isNavigatingRef.current = false;
}
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [frames, currentDate, setPendingNavigation]);
// Timeout: clear seeking overlay if navigation doesn't resolve within 15s
@@ -460,6 +462,7 @@ export default function Timeline() {
setCurrentFrame(frames[0]);
setCurrentIndex(0);
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [frames.length, currentFrame, setCurrentFrame, seekingTimestamp]);
// Track timeline opened and setup session tracking
@@ -848,6 +851,7 @@ export default function Timeline() {
return () => {
cancelled = true;
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentDate, websocket]); // Re-run when websocket connects or date changes
// Sync currentDate to frame's date - but NOT during intentional navigation
@@ -934,7 +938,8 @@ export default function Timeline() {
16,
{ leading: true, trailing: false },
),
- [frames, zoomLevel], // Re-create when zoom changes
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [frames, zoomLevel], // Re-create when zoom changes
);
// Attach scroll/zoom handler at document level so pinch-to-zoom works
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
index 03e15439c..c0acd0056 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
@@ -111,6 +111,7 @@ export function AIPanel({
setActivePreset(activePreset || undefined);
setOsType(detectOS());
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handlePanelMouseDown = (e: React.MouseEvent<HTMLDivElement>) => {
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/app-context-popover.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/app-context-popover.tsx
index fad4b4089..e6b3b7f95 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/app-context-popover.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/app-context-popover.tsx
@@ -213,6 +213,7 @@ export function AppContextPopover({
<div className="flex items-center justify-between px-3 py-2 border-b border-border">
<div className="flex items-center gap-2 min-w-0">
{allApps.map((name, i) => (
+ // eslint-disable-next-line @next/next/no-img-element
<img
key={i}
src={`http://localhost:11435/app-icon?name=${encodeURIComponent(name)}`}
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-dock-section.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-dock-section.tsx
index 8fd62f2f9..26b1a3512 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-dock-section.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-dock-section.tsx
@@ -313,6 +313,7 @@ export function TimelineIconsSection({
padding: "2px",
}}
>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={
window.navigator.platform === "Linux"
@@ -372,6 +373,7 @@ export function TimelineIconsSection({
<DialogTitle className="flex items-center justify-between">
<div className="flex items-center gap-2">
{selectedApp?.iconSrc && (
+ // eslint-disable-next-line @next/next/no-img-element
<img
src={
window.navigator.platform === "Linux"
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-tag-toolbar.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-tag-toolbar.tsx
index b79d1c0c7..52e589be1 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-tag-toolbar.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-tag-toolbar.tsx
@@ -31,6 +31,7 @@ export function TimelineTagToolbar({ anchorRect, onAskAI }: TimelineTagToolbarPr
const [frequentTags, setFrequentTags] = useState<FrequentTag[]>([]);
const inputRef = useRef<HTMLInputElement>(null);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
const frameIds = selectionRange?.frameIds ?? [];
// Fetch user's frequent tags once on mount via raw SQL
@@ -82,6 +83,7 @@ export function TimelineTagToolbar({ anchorRect, onAskAI }: TimelineTagToolbarPr
frameTags.forEach((t) => tagSet.add(t));
}
return [...tagSet];
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [frameIds, tags]);
const handleApplyTag = useCallback(async (tag: string) => {
@@ -109,6 +111,7 @@ export function TimelineTagToolbar({ anchorRect, onAskAI }: TimelineTagToolbarPr
} finally {
setIsApplying(false);
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isApplying, frameIds, tagFrames, setSelectionRange, quickTags]);
const handleCustomSubmit = useCallback((e: React.FormEvent) => {
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
index f0a843c4a..02e28abaf 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
@@ -482,6 +482,7 @@ export const TimelineSlider = ({
block: "nearest",
inline: "center",
});
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentIndex, frames.length]);
useEffect(() => {
@@ -745,6 +746,7 @@ export const TimelineSlider = ({
}}
transition={{ type: "spring", stiffness: 400, damping: 25 }}
>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={`http://localhost:11435/app-icon?name=${encodeURIComponent(appName)}`}
className="w-full h-full rounded-sm object-contain scale-110"
@@ -893,6 +895,7 @@ export const TimelineSlider = ({
}}
>
<div className="flex items-center gap-2 mb-1">
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={`http://localhost:11435/app-icon?name=${encodeURIComponent(group.appName)}`}
className="w-4 h-4 rounded"
diff --git a/apps/screenpipe-app-tauri/components/settings/account-section.tsx b/apps/screenpipe-app-tauri/components/settings/account-section.tsx
index 84cfce9c7..7f97fc788 100644
--- a/apps/screenpipe-app-tauri/components/settings/account-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/account-section.tsx
@@ -73,6 +73,7 @@ export function AccountSection() {
return () => {
if (deepLinkUnsubscribe) deepLinkUnsubscribe();
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [settings.user?.token, updateSettings]);
const handleCheckout = async () => {
diff --git a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
index 56f03ec33..ae0337c0f 100644
--- a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
@@ -127,6 +127,7 @@ export const AIProviderCard = ({
>
<CardContent className="flex flex-col p-0 w-full">
<div className="flex items-center gap-2 mb-2">
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={imageSrc}
alt={title}
@@ -485,6 +486,7 @@ const AISection = ({
} finally {
setIsLoadingModels(false);
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [settingsPreset?.provider, settingsPreset?.url, settingsPreset?.apiKey, settings.user?.id]);
const apiKey = useMemo(() => {
@@ -502,6 +504,7 @@ const AISection = ({
)
return;
fetchModels();
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [fetchModels]);
return (
@@ -1116,6 +1119,7 @@ export const AIPresets = () => {
</div>
<div className="flex items-start gap-2">
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={providerImageSrc[preset.provider]}
alt={`${preset.provider} logo`}
diff --git a/apps/screenpipe-app-tauri/components/settings/apple-intelligence-card.tsx b/apps/screenpipe-app-tauri/components/settings/apple-intelligence-card.tsx
index a23c677f7..938627c15 100644
--- a/apps/screenpipe-app-tauri/components/settings/apple-intelligence-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/apple-intelligence-card.tsx
@@ -250,6 +250,7 @@ export function AppleIntelligenceCard() {
<CardContent className="p-0">
<div className="flex items-start p-4 gap-4">
<div className="flex-shrink-0">
+ {/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/apple-intelligence-logo.svg"
alt="Apple Intelligence"
diff --git a/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx b/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
index 5c6bfd1cc..2c0850f5d 100644
--- a/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
@@ -276,6 +276,7 @@ export function ObsidianSyncCard() {
console.error("Failed to restart scheduler:", e);
});
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [settings.syncIntervalMinutes, settings.enabled, settingsLoaded, isValidVault, appSettings?.user?.token]);
// Validate vault path when it changes
@@ -285,6 +286,7 @@ export function ObsidianSyncCard() {
} else {
setIsValidVault(null);
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [settings.vaultPath]);
// Listen for sync events
diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
index d17437127..91d067b3a 100644
--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -358,6 +358,7 @@ export function RecordingSettings() {
};
loadDevices();
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// Enhanced validation for specific fields
diff --git a/apps/screenpipe-app-tauri/components/settings/referral-card.tsx b/apps/screenpipe-app-tauri/components/settings/referral-card.tsx
index a0a286619..c40feead0 100644
--- a/apps/screenpipe-app-tauri/components/settings/referral-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/referral-card.tsx
@@ -54,6 +54,7 @@ export function ReferralCard() {
};
fetchReferral();
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [settings.user?.email]);
if (!settings.user?.token) return null;
diff --git a/apps/screenpipe-app-tauri/components/settings/shortcut-row.tsx b/apps/screenpipe-app-tauri/components/settings/shortcut-row.tsx
index 74373ba12..3b350c5eb 100644
--- a/apps/screenpipe-app-tauri/components/settings/shortcut-row.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/shortcut-row.tsx
@@ -88,6 +88,7 @@ const ShortcutRow = ({
);
};
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isRecording]);
const syncShortcuts = async (updatedShortcuts: {
diff --git a/apps/screenpipe-app-tauri/components/settings/sync-settings.tsx b/apps/screenpipe-app-tauri/components/settings/sync-settings.tsx
index 9d3dffe9d..003cbc04c 100644
--- a/apps/screenpipe-app-tauri/components/settings/sync-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/sync-settings.tsx
@@ -589,6 +589,7 @@ export function SyncSettings() {
if (isSettingsLoaded) {
checkSubscriptionAndLoad();
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [isSettingsLoaded]);
// Auto-poll for subscription when on onboarding step
@@ -608,6 +609,7 @@ export function SyncSettings() {
}, 1000); // Poll every 1 second
return () => clearInterval(pollInterval);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [step]);
const tryAutoInitSync = async (): Promise<boolean> => {
diff --git a/apps/screenpipe-app-tauri/components/settings/team-section.tsx b/apps/screenpipe-app-tauri/components/settings/team-section.tsx
index f3d9ca86c..8380c1659 100644
--- a/apps/screenpipe-app-tauri/components/settings/team-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/team-section.tsx
@@ -77,6 +77,7 @@ export function TeamSection() {
let unsub: (() => void) | undefined;
setup().then((u) => (unsub = u));
return () => unsub?.();
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [team.joinTeam]);
const handleCreate = async () => {
diff --git a/apps/screenpipe-app-tauri/components/upgrade-dialog.tsx b/apps/screenpipe-app-tauri/components/upgrade-dialog.tsx
index 6035fa20e..f6a193763 100644
--- a/apps/screenpipe-app-tauri/components/upgrade-dialog.tsx
+++ b/apps/screenpipe-app-tauri/components/upgrade-dialog.tsx
@@ -44,6 +44,7 @@ export function UpgradeDialog({
if (!open) {
trackedRef.current = false;
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [open]);
const trackAction = (action: string, extra?: Record<string, unknown>) => {
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-ai-provider.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-ai-provider.tsx
index b818c12dc..fce7e7d1a 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-ai-provider.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-ai-provider.tsx
@@ -21,6 +21,9 @@ export function useAiProvider(
error: "",
});
+ const aiPresets = (settings as any)?.aiPresets;
+ const userToken = settings?.user?.token;
+
useEffect(() => {
if (!settings) {
setStatus({ isAvailable: false, error: "no settings found" });
@@ -28,24 +31,21 @@ export function useAiProvider(
}
// Check if user has any AI presets configured
- const presets = (settings as any).aiPresets;
- if (!presets || presets.length === 0) {
+ if (!aiPresets || aiPresets.length === 0) {
setStatus({ isAvailable: false, error: "no ai presets configured" });
return;
}
// Check if default preset has a model
- const defaultPreset = presets.find((p: any) => p.defaultPreset) || presets[0];
+ const defaultPreset = aiPresets.find((p: any) => p.defaultPreset) || aiPresets[0];
if (!defaultPreset?.model) {
setStatus({ isAvailable: false, error: "no model selected in preset" });
return;
}
setStatus({ isAvailable: true, error: "" });
- }, [
- (settings as any)?.aiPresets,
- settings?.user?.token,
- ]);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [aiPresets, userToken]);
return status;
}
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-onboarding.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-onboarding.tsx
index 2c16887da..8b460e1eb 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-onboarding.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-onboarding.tsx
@@ -105,6 +105,7 @@ export const useOnboardingWithLoader = () => {
useEffect(() => {
store.loadOnboardingStatus();
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return store;
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 41e31083c..fc2e7e244 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -483,6 +483,7 @@ export const SettingsProvider: React.FC<{ children: React.ReactNode }> = ({ chil
});
});
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [settings.analyticsId, settings.user?.id]);
// When user becomes a Pro subscriber, default to cloud transcription (one-time)
@@ -503,6 +504,7 @@ export const SettingsProvider: React.FC<{ children: React.ReactNode }> = ({ chil
// Mark as done even if we didn't change anything
settingsStore.set({ _proCloudMigrationDone: true } as any);
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [settings.user?.cloud_subscribed, isSettingsLoaded]);
const updateSettings = async (updates: Partial<Settings>) => {
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-team.ts b/apps/screenpipe-app-tauri/lib/hooks/use-team.ts
index bea0b470b..3b6777ba0 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-team.ts
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-team.ts
@@ -168,6 +168,7 @@ export function useTeam() {
error: err.message || "failed to fetch team",
}));
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [token]);
const fetchMembers = useCallback(
@@ -180,6 +181,7 @@ export function useTeam() {
setState((s) => ({ ...s, members: data.members || [] }));
} catch {}
},
+ // eslint-disable-next-line react-hooks/exhaustive-deps
[token]
);
@@ -211,6 +213,7 @@ export function useTeam() {
setState((s) => ({ ...s, configs }));
} catch {}
},
+ // eslint-disable-next-line react-hooks/exhaustive-deps
[token]
);
@@ -238,6 +241,7 @@ export function useTeam() {
await fetchTeam();
return data;
},
+ // eslint-disable-next-line react-hooks/exhaustive-deps
[token, fetchTeam]
);
@@ -264,6 +268,7 @@ export function useTeam() {
await fetchTeam();
},
+ // eslint-disable-next-line react-hooks/exhaustive-deps
[token, fetchTeam]
);
@@ -292,6 +297,7 @@ export function useTeam() {
loading: false,
error: null,
});
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [token, state.team]);
// delete team (admin only)
@@ -319,6 +325,7 @@ export function useTeam() {
loading: false,
error: null,
});
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [token, state.team]);
// remove member (admin only)
@@ -338,6 +345,7 @@ export function useTeam() {
await fetchMembers();
},
+ // eslint-disable-next-line react-hooks/exhaustive-deps
[token, fetchMembers]
);
@@ -366,6 +374,7 @@ export function useTeam() {
await fetchConfigs();
},
+ // eslint-disable-next-line react-hooks/exhaustive-deps
[token, fetchConfigs]
);
@@ -386,6 +395,7 @@ export function useTeam() {
await fetchConfigs();
},
+ // eslint-disable-next-line react-hooks/exhaustive-deps
[token, fetchConfigs]
);
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-timeline-data.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-timeline-data.tsx
index 5a98cf13e..5cffb81fc 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-timeline-data.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-timeline-data.tsx
@@ -34,6 +34,7 @@ export function useTimelineData(
};
initialize();
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, []); // Only connect once when component mounts
// NOTE: Auto-select of first frame is handled in timeline.tsx to avoid
diff --git a/crates/screenpipe-accessibility/src/tree/mod.rs b/crates/screenpipe-accessibility/src/tree/mod.rs
index 59dc5bda8..64e84b72a 100644
--- a/crates/screenpipe-accessibility/src/tree/mod.rs
+++ b/crates/screenpipe-accessibility/src/tree/mod.rs
@@ -61,19 +61,19 @@ impl TreeSnapshot {
}
let hash = hasher.finish();
- for i in 0..64 {
+ for (i, bit) in bits.iter_mut().enumerate() {
if (hash >> i) & 1 == 1 {
- bits[i] += 1;
+ *bit += 1;
} else {
- bits[i] -= 1;
+ *bit -= 1;
}
}
}
// Convert accumulator to hash: bit is 1 if sum > 0
let mut result: u64 = 0;
- for i in 0..64 {
- if bits[i] > 0 {
+ for (i, &bit) in bits.iter().enumerate() {
+ if bit > 0 {
result |= 1 << i;
}
}
diff --git a/crates/screenpipe-audio/src/core/device.rs b/crates/screenpipe-audio/src/core/device.rs
index e2b45922c..fcbb847d8 100644
--- a/crates/screenpipe-audio/src/core/device.rs
+++ b/crates/screenpipe-audio/src/core/device.rs
@@ -482,17 +482,17 @@ pub async fn default_output_device() -> Result<AudioDevice> {
return Ok(AudioDevice::new(name, DeviceType::Output));
}
}
- return Err(anyhow!(
+ Err(anyhow!(
"ScreenCaptureKit available but no display audio device found — \
output audio capture requires a display device"
- ));
+ ))
}
Err(e) => {
- return Err(anyhow!(
+ Err(anyhow!(
"ScreenCaptureKit unavailable for output audio capture: {} — \
output audio capture is not possible without it",
e
- ));
+ ))
}
}
}
diff --git a/crates/screenpipe-core/src/agents/mod.rs b/crates/screenpipe-core/src/agents/mod.rs
index b6e04132c..d14f96bed 100644
--- a/crates/screenpipe-core/src/agents/mod.rs
+++ b/crates/screenpipe-core/src/agents/mod.rs
@@ -34,6 +34,7 @@ pub struct ExecutionHandle {
/// `agent` ≠ `model`. The *agent* is the CLI tool that executes the prompt
/// (pi, claude-code, opencode …). The *model* is the LLM the agent talks to
/// (haiku, opus, llama4 …). Both are configurable per-pipe.
+#[allow(clippy::too_many_arguments)]
#[async_trait::async_trait]
pub trait AgentExecutor: Send + Sync {
/// Execute `prompt` using `model` with the given `working_dir` as cwd.
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rs
index 6bd73bf87..f14c142c4 100644
--- a/crates/screenpipe-core/src/agents/pi.rs
+++ b/crates/screenpipe-core/src/agents/pi.rs
@@ -231,6 +231,7 @@ impl PiExecutor {
}
/// Spawn the pi subprocess and wait for its output.
+ #[allow(clippy::too_many_arguments)]
async fn spawn_pi(
&self,
pi_path: &str,
diff --git a/crates/screenpipe-db/src/fts_indexer.rs b/crates/screenpipe-db/src/fts_indexer.rs
index 62efeed37..ba41669af 100644
--- a/crates/screenpipe-db/src/fts_indexer.rs
+++ b/crates/screenpipe-db/src/fts_indexer.rs
@@ -186,6 +186,7 @@ async fn update_last_indexed(
/// Pre-reads source data outside the write tx, then inserts into FTS
/// in micro-batches of FTS_MICRO_BATCH_SIZE rows. Each micro-batch
/// acquires and releases the write lock so frame inserts can interleave.
+#[allow(clippy::explicit_auto_deref)]
async fn index_frames_fts(db: &DatabaseManager) -> Result<i64, sqlx::Error> {
let last = get_last_indexed(db, "frames").await?;
@@ -245,6 +246,7 @@ async fn index_frames_fts(db: &DatabaseManager) -> Result<i64, sqlx::Error> {
}
/// Index new rows from `ocr_text` into `ocr_text_fts`.
+#[allow(clippy::explicit_auto_deref)]
async fn index_ocr_text_fts(db: &DatabaseManager) -> Result<i64, sqlx::Error> {
let last = get_last_indexed(db, "ocr_text").await?;
@@ -302,6 +304,7 @@ async fn index_ocr_text_fts(db: &DatabaseManager) -> Result<i64, sqlx::Error> {
}
/// Index new rows from `audio_transcriptions` into `audio_transcriptions_fts`.
+#[allow(clippy::explicit_auto_deref)]
async fn index_audio_transcriptions_fts(db: &DatabaseManager) -> Result<i64, sqlx::Error> {
let last = get_last_indexed(db, "audio_transcriptions").await?;
@@ -360,6 +363,7 @@ async fn index_audio_transcriptions_fts(db: &DatabaseManager) -> Result<i64, sql
}
/// Index new rows from `accessibility` into `accessibility_fts`.
+#[allow(clippy::explicit_auto_deref)]
async fn index_accessibility_fts(db: &DatabaseManager) -> Result<i64, sqlx::Error> {
let last = get_last_indexed(db, "accessibility").await?;
diff --git a/crates/screenpipe-server/src/core.rs b/crates/screenpipe-server/src/core.rs
index 835471f5e..277f3dd48 100644
--- a/crates/screenpipe-server/src/core.rs
+++ b/crates/screenpipe-server/src/core.rs
@@ -233,6 +233,7 @@ pub async fn record_video(
// This reduces write semaphore acquisitions from ~10/min to ~2/min.
const BATCH_MAX_FRAMES: usize = 5;
const BATCH_MAX_AGE: Duration = Duration::from_secs(3);
+ #[allow(clippy::type_complexity)]
struct PendingFrame {
captured_at: chrono::DateTime<chrono::Utc>,
offset_index: i64,
diff --git a/crates/screenpipe-server/src/routes/health.rs b/crates/screenpipe-server/src/routes/health.rs
index 01052ac7f..bf68669e0 100644
--- a/crates/screenpipe-server/src/routes/health.rs
+++ b/crates/screenpipe-server/src/routes/health.rs
@@ -184,7 +184,7 @@ pub async fn health_check(State(state): State<Arc<AppState>>) -> JsonResponse<He
} else if last_audio_ts == 0 {
"not_started".to_string()
} else if now.timestamp() as u64 - last_audio_ts < threshold_secs {
- "stale".to_string()
+ "ok".to_string()
} else {
"stale".to_string()
};