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

Bump app to v2.4.137 — promote meeting summarize button + AI writes back to note

Louis Beaumontf983570e4adc
diff --git a/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx b/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx
index 637a0daaa..ed81a2f3b 100644
--- a/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx
+++ b/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx
@@ -6,11 +6,11 @@
import React, { useCallback, useEffect, useRef, useState } from "react";
import {
ArrowLeft,
- ArrowUpRight,
Calendar,
Check,
Clock,
Loader2,
+ Sparkles,
Square,
Trash2,
Users,
@@ -270,11 +270,26 @@ export function NoteView({
<ArrowLeft className="h-3.5 w-3.5" />
meetings
</Button>
- {isLive && (
+ {isLive ? (
<span className="flex items-center gap-2 text-xs uppercase tracking-[0.15em] text-foreground">
<span className="h-1.5 w-1.5 rounded-full bg-foreground animate-pulse" />
recording
</span>
+ ) : (
+ <Button
+ variant="default"
+ size="sm"
+ onClick={handleSummarize}
+ disabled={summarizing}
+ className="gap-2"
+ >
+ {summarizing ? (
+ <Loader2 className="h-3.5 w-3.5 animate-spin" />
+ ) : (
+ <Sparkles className="h-3.5 w-3.5" />
+ )}
+ summarize with AI
+ </Button>
)}
</div>
@@ -372,7 +387,7 @@ export function NoteView({
</Button>
))}
- {isLive ? (
+ {isLive && (
<Button
variant="outline"
size="sm"
@@ -387,21 +402,6 @@ export function NoteView({
)}
stop meeting
</Button>
- ) : (
- <Button
- variant="default"
- size="sm"
- onClick={handleSummarize}
- disabled={summarizing}
- className="gap-2"
- >
- {summarizing ? (
- <Loader2 className="h-3.5 w-3.5 animate-spin" />
- ) : (
- <ArrowUpRight className="h-3.5 w-3.5" />
- )}
- summarize
- </Button>
)}
</div>
</div>
diff --git a/apps/screenpipe-app-tauri/lib/utils/meeting-context.ts b/apps/screenpipe-app-tauri/lib/utils/meeting-context.ts
index 15135139c..c66019d5f 100644
--- a/apps/screenpipe-app-tauri/lib/utils/meeting-context.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/meeting-context.ts
@@ -296,8 +296,23 @@ export function buildEnrichedSummarizePrompt({
sections.push(`clipboard activity: ${context.clipboardCount} copy/paste events during meeting`);
}
- const directive =
- "search screenpipe for what happened during this meeting and summarize it: key topics, decisions, action items. then suggest which of my connected integrations would be useful to share this with and draft a message for each.";
+ // Prompt gives the agent agency over whether to persist the summary back to
+ // the meeting note. There's no hardcoded subscriber on our end intercepting
+ // the chat reply — the agent decides. If the transcript is empty / nothing
+ // worth saving, it should say so and not write. If there's a useful summary,
+ // it appends under "## Summary" via the same PATCH endpoint the autosave
+ // uses, preserving any handwritten notes the user already has.
+ const directive = [
+ `search screenpipe for what happened during this meeting and summarize it: key topics, decisions, action items. then suggest which of my connected integrations would be useful to share this with and draft a message for each.`,
+ ``,
+ `meeting id: ${meeting.id}`,
+ `if your summary is worth saving, append it to the meeting note via:`,
+ ` curl -s -X PATCH "http://localhost:3030/meetings/${meeting.id}" \\`,
+ ` -H "Authorization: Bearer $SCREENPIPE_API_AUTH_KEY" \\`,
+ ` -H "Content-Type: application/json" \\`,
+ ` -d '{"note": "<EXISTING_NOTE>\\n\\n## Summary\\n<YOUR_SUMMARY>"}'`,
+ `replace <EXISTING_NOTE> with the meeting's current notes (shown above as "notes:" — empty string if none) so you don't overwrite the user's work; just append your summary under a "## Summary" heading. if there's nothing useful to summarize (empty transcript, irrelevant audio), say so out loud and skip the PATCH — don't write a placeholder.`,
+ ].join("\n");
return `${directive}\n\n${sections.join("\n\n")}`;
}
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 329a99e93..dd3e279d1 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.4.136"
+version = "2.4.137"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""