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: remove claude-code provider, fix anthropic type errors

Louis Beaumont4799c04a112b
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 b39e2737a..63070d166 100644
--- a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
@@ -510,10 +510,10 @@ export function AIProviderConfig({
<Button
type="button"
- variant={selectedProvider === "anthropic" ? "default" : "outline"}
+ variant={(selectedProvider as string) === "anthropic" ? "default" : "outline"}
className="flex h-8 items-center justify-center gap-1.5 text-xs px-3"
onClick={() => {
- if (selectedProvider !== "anthropic") {
+ if ((selectedProvider as string) !== "anthropic") {
setSelectedProvider("anthropic");
setFormData({
...formData,
diff --git a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
index 31f47ed06..201035d17 100644
--- a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
@@ -1082,10 +1082,9 @@ const AISection = ({
title="Claude.ai"
description="Use your Claude Pro/Max subscription or Anthropic API key"
imageSrc="/images/claude-ai.svg"
- selected={settingsPreset?.provider === "anthropic"}
+ selected={(settingsPreset?.provider as string) === "anthropic"}
onClick={() => {
- // Default to claude-code (subscription) when first selecting Anthropic
- if (settingsPreset?.provider !== "anthropic") {
+ if ((settingsPreset?.provider as string) !== "anthropic") {
handleAiProviderChange("anthropic");
}
}}