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

release-app fix settings

Louis Beaumonta4c2b963a748
diff --git a/pipes/identify-speakers/src/components/meeting-history.tsx b/pipes/identify-speakers/src/components/meeting-history.tsx
index a2c98aba5..2048f5f55 100644
--- a/pipes/identify-speakers/src/components/meeting-history.tsx
+++ b/pipes/identify-speakers/src/components/meeting-history.tsx
@@ -257,7 +257,7 @@ export default function MeetingHistory({
const messages = [
{
- role: "system" as const,
+ role: "user" as const, // claude does not support system messages?
content: `you are a helpful assistant that summarizes meetings. `,
},
{
diff --git a/pipes/meeting/src/components/meeting-history.tsx b/pipes/meeting/src/components/meeting-history.tsx
index a2c98aba5..2048f5f55 100644
--- a/pipes/meeting/src/components/meeting-history.tsx
+++ b/pipes/meeting/src/components/meeting-history.tsx
@@ -257,7 +257,7 @@ export default function MeetingHistory({
const messages = [
{
- role: "system" as const,
+ role: "user" as const, // claude does not support system messages?
content: `you are a helpful assistant that summarizes meetings. `,
},
{
diff --git a/pipes/search/src/components/chat-message.tsx b/pipes/search/src/components/chat-message.tsx
index 2dee23299..f3e67aa8f 100644
--- a/pipes/search/src/components/chat-message.tsx
+++ b/pipes/search/src/components/chat-message.tsx
@@ -5,7 +5,12 @@ import remarkMath from "remark-math";
import { cn } from "@/lib/utils";
import { CodeBlock } from "@/components/ui/codeblock";
import { MemoizedReactMarkdown } from "@/components/markdown";
-import { IconOpenAI, IconUser, IconOllama } from "@/components/ui/icons";
+import {
+ IconOpenAI,
+ IconUser,
+ IconOllama,
+ IconClaude,
+} from "@/components/ui/icons";
import { ChatMessageActions } from "@/components/chat-message-actions";
import { useSettings } from "@/lib/hooks/use-settings";
import { VideoComponent } from "./video";
@@ -39,9 +44,10 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {
>
{message.role === "user" ? (
<IconUser />
- ) : settings.aiUrl.includes("openai") ||
- settings.aiUrl.includes("worker") ? (
+ ) : settings.aiModel.includes("gpt") ? (
<IconOpenAI />
+ ) : settings.aiModel.includes("claude") ? (
+ <IconClaude />
) : (
<>🦙</>
)}
diff --git a/pipes/search/src/components/search-chat.tsx b/pipes/search/src/components/search-chat.tsx
index da271a400..38aa509c9 100644
--- a/pipes/search/src/components/search-chat.tsx
+++ b/pipes/search/src/components/search-chat.tsx
@@ -636,7 +636,7 @@ export function SearchChat() {
const messages = [
{
- role: "system" as const,
+ role: "user" as const, // claude does not support system messages?
content: `You are a helpful assistant specialized as a "${
selectedAgent.name
}". ${selectedAgent.systemPrompt}
diff --git a/pipes/search/src/components/ui/icons.tsx b/pipes/search/src/components/ui/icons.tsx
index 492377647..bc01aabac 100644
--- a/pipes/search/src/components/ui/icons.tsx
+++ b/pipes/search/src/components/ui/icons.tsx
@@ -104,6 +104,23 @@ function IconOpenAI({ className, ...props }: React.ComponentProps<"svg">) {
);
}
+function IconClaude({ className, ...props }: React.ComponentProps<"svg">) {
+ return (
+ <svg
+ fill="currentColor"
+ viewBox="0 0 24 24"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ className={cn("size-4", className)}
+ {...props}
+ >
+ <title>Claude icon</title>
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" />
+ <circle cx="12" cy="12" r="3" />
+ </svg>
+ );
+}
+
function IconVercel({ className, ...props }: React.ComponentProps<"svg">) {
return (
<svg
@@ -590,4 +607,5 @@ export {
IconChevronUpDown,
IconLlama,
IconCode,
+ IconClaude,
};
diff --git a/pipes/timeline/src/components/timeline/agents.tsx b/pipes/timeline/src/components/timeline/agents.tsx
index 4683317a9..591d4f6f5 100644
--- a/pipes/timeline/src/components/timeline/agents.tsx
+++ b/pipes/timeline/src/components/timeline/agents.tsx
@@ -57,7 +57,7 @@ export async function analyzeChunk(
model,
messages: [
{
- role: "system",
+ role: "user" as const,
content:
"summarize this chunk of activity in 2-3 sentences, focus on key events and patterns",
},
@@ -134,7 +134,7 @@ export const AGENTS: Agent[] = [
openai,
[
{
- role: "system",
+ role: "user",
content: `create a hierarchical summary with these sections:
### overview
(one paragraph summary of entire time range, focusing on answering the user's question)
@@ -181,7 +181,7 @@ export const AGENTS: Agent[] = [
openai,
[
{
- role: "system",
+ role: "user",
content:
"analyze all context including apps, windows, text & audio. provide insights about user activity patterns",
},
@@ -212,7 +212,7 @@ export const AGENTS: Agent[] = [
openai,
[
{
- role: "system",
+ role: "user",
content:
"analyze app and window usage patterns, focus on work habits and application transitions",
},
@@ -242,7 +242,7 @@ export const AGENTS: Agent[] = [
openai,
[
{
- role: "system",
+ role: "user",
content:
"analyze OCR text content, identify key topics and information being viewed",
},
@@ -270,7 +270,7 @@ export const AGENTS: Agent[] = [
openai,
[
{
- role: "system",
+ role: "user",
content:
"analyze audio transcriptions, identify key conversations and spoken content",
},
diff --git a/screenpipe-app-tauri/components/onboarding/api-setup.tsx b/screenpipe-app-tauri/components/onboarding/api-setup.tsx
index 64339b17c..48521b645 100644
--- a/screenpipe-app-tauri/components/onboarding/api-setup.tsx
+++ b/screenpipe-app-tauri/components/onboarding/api-setup.tsx
@@ -77,7 +77,7 @@ const OnboardingAPISetup: React.FC<OnboardingAPISetupProps> = ({
model: aiModel,
messages: [
{
- role: "system",
+ role: "user",
content: "You are a helpful assistant that tells short jokes.",
},
{
diff --git a/screenpipe-app-tauri/components/recording-settings.tsx b/screenpipe-app-tauri/components/recording-settings.tsx
index e19d35a79..296f8ba14 100644
--- a/screenpipe-app-tauri/components/recording-settings.tsx
+++ b/screenpipe-app-tauri/components/recording-settings.tsx
@@ -1225,7 +1225,7 @@ export function RecordingSettings() {
htmlFor="audioChunkDuration"
className="flex items-center space-x-2"
>
- <span>Audio chunk duration (seconds)</span>
+ <span>audio chunk duration (seconds)</span>
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 56ad5ef5a..efa40fb89 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -219,37 +219,21 @@ const getStore = async () => {
const tauriStorage: PersistStorage = {
getItem: async (_key: string) => {
const tauriStore = await getStore();
- const allKeys = await tauriStore.keys();
- const values: Record<string, any> = {};
-
- for (const k of allKeys) {
- values[k] = await tauriStore.get(k);
- }
-
- return { settings: unflattenObject(values) };
+ const settings = await tauriStore.get<Settings>("root");
+ return settings || createDefaultSettingsObject();
},
setItem: async (_key: string, value: any) => {
const tauriStore = await getStore();
-
- const flattenedValue = flattenObject(value.settings);
-
- // Delete all existing keys first
- const existingKeys = await tauriStore.keys();
- for (const key of existingKeys) {
- await tauriStore.delete(key);
- }
-
- // Set new flattened values
- for (const [key, val] of Object.entries(flattenedValue)) {
+ const settings = value.settings;
+ for (const [key, val] of Object.entries(settings)) {
await tauriStore.set(key, val);
}
-
await tauriStore.save();
},
removeItem: async (_key: string) => {
const tauriStore = await getStore();
- const keys = await tauriStore.keys();
- for (const key of keys) {
+ const settings = createDefaultSettingsObject();
+ for (const key of Object.keys(settings)) {
await tauriStore.delete(key);
}
await tauriStore.save();
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 946af4d58..bbe04a139 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -4966,7 +4966,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.19.4"
+version = "0.19.7"
dependencies = [
"anyhow",
"axum",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index f2cd09425..30ed5db96 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.19.6"
+version = "0.19.7"
description = ""
authors = ["you"]
license = ""