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
feat(chat): preview Home card prompts in composer
Louis Beaumont500ee05d9011
diff --git a/COVERAGE.md b/COVERAGE.mdindex e54d6f0c7..f726d8b39 100644--- a/COVERAGE.md+++ b/COVERAGE.md@@ -24,9 +24,9 @@ results and `cargo llvm-cov` data on top when judging release confidence.| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score || --- | --- | --- | --- | --- | --- | --- |-| windows | 91 | 302 | 246.6 | 15 | 99 | 92% |-| macos | 116 | 314 | 246.0 | 17 | 107 | 90% |-| linux | 80 | 260 | 216.0 | 14 | 96 | 88% |+| windows | 91 | 302 | 246.6 | 15 | 100 | 92% |+| macos | 116 | 314 | 246.0 | 17 | 108 | 90% |+| linux | 80 | 260 | 216.0 | 14 | 97 | 88% |### Core Enginediff --git a/apps/screenpipe-app-tauri/components/chat/home-starter-surface.test.tsx b/apps/screenpipe-app-tauri/components/chat/home-starter-surface.test.tsxindex 24cd8c5e5..ea6594842 100644--- a/apps/screenpipe-app-tauri/components/chat/home-starter-surface.test.tsx+++ b/apps/screenpipe-app-tauri/components/chat/home-starter-surface.test.tsx@@ -44,10 +44,11 @@ const suggestions = [function renderSurface(overrides: Record<string, unknown> = {}) {const onFillSuggestion = vi.fn();+ const onPreviewPrompt = vi.fn();const onRefresh = vi.fn();const rendered = render(<HomeStarterSurface- summaryCardsProps={{} as never}+ summaryCardsProps={{ onPreviewPrompt } as never}suggestions={suggestions}activityMode="meeting"isLoading={false}@@ -57,7 +58,7 @@ function renderSurface(overrides: Record<string, unknown> = {}) {{...overrides}/>,);- return { ...rendered, onFillSuggestion, onRefresh };+ return { ...rendered, onFillSuggestion, onPreviewPrompt, onRefresh };}describe("HomeStarterSurface", () => {@@ -115,6 +116,22 @@ describe("HomeStarterSurface", () => {expect(analyticsPayload).not.toContain(suggestions[0].preview);});+ it("previews contextual prompts on hover and keyboard focus", () => {+ mocks.variant = "contextual";+ const { onPreviewPrompt } = renderSurface();+ const card = screen.getByTestId("home-contextual-suggestion-1");++ fireEvent.mouseEnter(card);+ expect(onPreviewPrompt).toHaveBeenLastCalledWith(suggestions[0].text);+ fireEvent.mouseLeave(card);+ expect(onPreviewPrompt).toHaveBeenLastCalledWith(null);++ fireEvent.focus(card);+ expect(onPreviewPrompt).toHaveBeenLastCalledWith(suggestions[0].text);+ fireEvent.blur(card);+ expect(onPreviewPrompt).toHaveBeenLastCalledWith(null);+ });+it("renders stable placeholders while contextual prompts load", () => {mocks.variant = "contextual";renderSurface({ suggestions: [], isLoading: true });diff --git a/apps/screenpipe-app-tauri/components/chat/home-starter-surface.tsx b/apps/screenpipe-app-tauri/components/chat/home-starter-surface.tsxindex 3c2196b56..1c5f717a2 100644--- a/apps/screenpipe-app-tauri/components/chat/home-starter-surface.tsx+++ b/apps/screenpipe-app-tauri/components/chat/home-starter-surface.tsx@@ -51,7 +51,10 @@ function ContextualSuggestions({isRefreshing,onFillSuggestion,onRefresh,-}: Omit<HomeStarterSurfaceProps, "summaryCardsProps">) {+ onPreviewPrompt,+}: Omit<HomeStarterSurfaceProps, "summaryCardsProps"> & {+ onPreviewPrompt?: (prompt: string | null) => void;+}) {const visibleSuggestions = suggestions.slice(0, 3);const impressionSignature = visibleSuggestions.map((suggestion) =>@@ -75,6 +78,11 @@ function ContextualSuggestions({// eslint-disable-next-line react-hooks/exhaustive-deps}, [activityMode, impressionSignature]);+ useEffect(+ () => () => onPreviewPrompt?.(null),+ [onPreviewPrompt],+ );+return (<div className="ph-no-capture relative flex w-full flex-col items-center px-4 pb-2 pt-6"><div className="relative mx-auto mb-2 w-fit">@@ -112,7 +120,12 @@ function ContextualSuggestions({type="button"data-testid={`home-contextual-suggestion-${index + 1}`}title={suggestion.preview || suggestion.text}+ onMouseEnter={() => onPreviewPrompt?.(suggestion.text)}+ onMouseLeave={() => onPreviewPrompt?.(null)}+ onFocus={() => onPreviewPrompt?.(suggestion.text)}+ onBlur={() => onPreviewPrompt?.(null)}onClick={() => {+ onPreviewPrompt?.(null);posthog.capture("home_card_clicked", {...suggestionAnalyticsProperties(suggestion,@@ -197,6 +210,7 @@ export function HomeStarterSurface({isRefreshing={isRefreshing}onFillSuggestion={onFillSuggestion}onRefresh={onRefresh}+ onPreviewPrompt={summaryCardsProps.onPreviewPrompt}/>);}diff --git a/apps/screenpipe-app-tauri/components/chat/standalone/composer-input-box.tsx b/apps/screenpipe-app-tauri/components/chat/standalone/composer-input-box.tsxindex 67a0f70ee..4d858952e 100644--- a/apps/screenpipe-app-tauri/components/chat/standalone/composer-input-box.tsx+++ b/apps/screenpipe-app-tauri/components/chat/standalone/composer-input-box.tsx@@ -67,7 +67,7 @@ export function ComposerInputBox({placeholder={input.disabledReason? input.disabledReason- : "Ask a question or describe a task"+ : input.placeholder ?? "Ask a question or describe a task"}disabled={!input.canChat}spellCheck={false}diff --git a/apps/screenpipe-app-tauri/components/chat/standalone/composer-types.ts b/apps/screenpipe-app-tauri/components/chat/standalone/composer-types.tsindex 8df4ae15d..8b934e7eb 100644--- a/apps/screenpipe-app-tauri/components/chat/standalone/composer-types.ts+++ b/apps/screenpipe-app-tauri/components/chat/standalone/composer-types.ts@@ -79,6 +79,7 @@ export interface ComposerInputProps {inputRef: React.RefObject<HTMLTextAreaElement>;value: string;disabledReason: string | null;+ placeholder?: string;canChat: boolean;isLoading: boolean;isStreaming: boolean;diff --git a/apps/screenpipe-app-tauri/components/chat/summary-cards.test.tsx b/apps/screenpipe-app-tauri/components/chat/summary-cards.test.tsxindex 2b35e72d7..a05225727 100644--- a/apps/screenpipe-app-tauri/components/chat/summary-cards.test.tsx+++ b/apps/screenpipe-app-tauri/components/chat/summary-cards.test.tsx@@ -115,6 +115,39 @@ describe("SummaryCards", () => {expect(quickAction.className).toContain("focus-visible:ring-1");});+ it("previews a card prompt on hover and keyboard focus without sending", () => {+ const onPreviewPrompt = vi.fn();+ const onSendMessage = vi.fn();+ render(+ <SummaryCards+ onSendMessage={onSendMessage}+ onPreviewPrompt={onPreviewPrompt}+ customTemplates={[]}+ onSaveCustomTemplate={vi.fn()}+ onUpdateCustomTemplate={vi.fn()}+ onDeleteCustomTemplate={vi.fn()}+ userGoalCategory="work_memory"+ />,+ );++ const card = screen.getByTestId("summary-card-day-recap");+ fireEvent.mouseEnter(card);+ expect(onPreviewPrompt).toHaveBeenLastCalledWith(+ "Summarize what I worked on today",+ );+ expect(onSendMessage).not.toHaveBeenCalled();++ fireEvent.mouseLeave(card);+ expect(onPreviewPrompt).toHaveBeenLastCalledWith(null);++ fireEvent.focus(card);+ expect(onPreviewPrompt).toHaveBeenLastCalledWith(+ "Summarize what I worked on today",+ );+ fireEvent.blur(card);+ expect(onPreviewPrompt).toHaveBeenLastCalledWith(null);+ });+it("keeps the user's saved templates alongside the built-in actions", () => {render(<SummaryCardsdiff --git a/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx b/apps/screenpipe-app-tauri/components/chat/summary-cards.tsxindex 49b176713..915b4f203 100644--- a/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx+++ b/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx@@ -20,6 +20,7 @@ import {AUTOMATE_MY_WORK_TEMPLATE_NAME,buildAutomateMyWorkPrompt,FALLBACK_TEMPLATES,+ parseTemplateInstructions,type CustomTemplate,} from "@/lib/summary-templates";import { type AutomationPipeInventory } from "@/lib/automation-pipe-evals";@@ -41,6 +42,7 @@ interface SummaryCardsProps {entrySource?: ChatEntrySource,entryCard?: ChatEntryCard,) => void;+ onPreviewPrompt?: (prompt: string | null) => void;customTemplates: CustomTemplate[];onSaveCustomTemplate: (template: CustomTemplate) => void;onUpdateCustomTemplate: (template: CustomTemplate) => void;@@ -104,10 +106,27 @@ function HomeCardArrow({ slug }: { slug: string }) {);}+function previewPromptForPipe(pipe: TemplatePipe): string {+ return pipe.previewPrompt || pipe.description || pipe.title;+}++function promptPreviewHandlers(+ prompt: string,+ onPreviewPrompt?: (prompt: string | null) => void,+) {+ return {+ onMouseEnter: () => onPreviewPrompt?.(prompt),+ onMouseLeave: () => onPreviewPrompt?.(null),+ onFocus: () => onPreviewPrompt?.(prompt),+ onBlur: () => onPreviewPrompt?.(null),+ };+}+// ─── Main component ──────────────────────────────────────────────────────────export function SummaryCards({onSendMessage,+ onPreviewPrompt,customTemplates,onSaveCustomTemplate,onUpdateCustomTemplate,@@ -151,7 +170,13 @@ export function SummaryCards({}}, [impressionSignature]);+ useEffect(+ () => () => onPreviewPrompt?.(null),+ [onPreviewPrompt],+ );+const handleCardClick = (pipe: TemplatePipe) => {+ onPreviewPrompt?.(null);const entryCard = entryCardForHomeTemplate(pipe.name);posthog.capture("home_card_clicked", {kind: pipe.featured ? "template_featured" : "template_discover",@@ -169,6 +194,7 @@ export function SummaryCards({// immediately — saved prompts often reference dates or context that// changed since they were saved (#5239). Run lives inside the dialog.const handleCustomTemplateClick = (template: CustomTemplate) => {+ onPreviewPrompt?.(null);posthog.capture("home_card_clicked", {kind: "custom_template",});@@ -198,6 +224,10 @@ export function SummaryCards({type="button"data-testid={`summary-card-${featured[0].name}`}onClick={() => handleCardClick(featured[0])}+ {...promptPreviewHandlers(+ previewPromptForPipe(featured[0]),+ onPreviewPrompt,+ )}className="group relative mb-1.5 w-full max-w-lg cursor-pointer rounded-lg border border-foreground/25 border-l-2 border-l-signal bg-card px-4 py-3.5 text-left text-foreground transition-colors duration-150 hover:border-foreground hover:bg-foreground hover:text-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-foreground focus-visible:ring-offset-2 focus-visible:ring-offset-background motion-reduce:transition-none"><div className="flex items-center gap-3">@@ -223,6 +253,10 @@ export function SummaryCards({type="button"data-testid={`summary-card-${featured[1].name}`}onClick={() => handleCardClick(featured[1])}+ {...promptPreviewHandlers(+ previewPromptForPipe(featured[1]),+ onPreviewPrompt,+ )}className="group mb-1.5 w-full max-w-lg cursor-pointer rounded-lg border border-foreground/20 bg-card px-4 py-3 text-left text-foreground transition-colors duration-150 hover:border-foreground hover:bg-foreground hover:text-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-foreground focus-visible:ring-offset-2 focus-visible:ring-offset-background motion-reduce:transition-none"><div className="flex items-center gap-3">@@ -259,6 +293,10 @@ export function SummaryCards({key={pipe.name}data-testid={`summary-card-${pipe.name}`}onClick={() => handleCardClick(pipe)}+ {...promptPreviewHandlers(+ previewPromptForPipe(pipe),+ onPreviewPrompt,+ )}className="grow cursor-pointer rounded-md border border-foreground/20 bg-card px-2 py-0.5 text-[11px] text-foreground/75 transition-colors duration-150 hover:border-foreground hover:bg-foreground hover:text-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-foreground focus-visible:ring-offset-1 focus-visible:ring-offset-background motion-reduce:transition-none">{pipe.title}@@ -272,7 +310,9 @@ export function SummaryCards({<buttontype="button"key={qt.label}+ {...promptPreviewHandlers(qt.prompt, onPreviewPrompt)}onClick={() => {+ onPreviewPrompt?.(null);posthog.capture("home_card_clicked", {kind: "quick_summary_chip",});@@ -296,6 +336,12 @@ export function SummaryCards({<buttontype="button"key={ct.id}+ {...promptPreviewHandlers(+ ct.instructions ??+ parseTemplateInstructions(ct.prompt) ??+ ct.prompt,+ onPreviewPrompt,+ )}onClick={() => handleCustomTemplateClick(ct)}title={ct.description || ct.timeRange}className="inline-flex max-w-[140px] grow cursor-pointer items-center justify-center gap-1 rounded-md border border-foreground/20 bg-card px-2 py-0.5 text-[11px] text-foreground/70 transition-colors duration-150 hover:border-foreground hover:bg-foreground hover:text-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-foreground focus-visible:ring-offset-1 focus-visible:ring-offset-background motion-reduce:transition-none"@@ -328,6 +374,10 @@ export function SummaryCards({<buttonkey={pipe.name}onClick={() => handleCardClick(pipe)}+ {...promptPreviewHandlers(+ previewPromptForPipe(pipe),+ onPreviewPrompt,+ )}className="group cursor-pointer rounded-lg border border-border/30 bg-muted/10 p-2 text-left transition-all duration-150 hover:border-foreground hover:bg-foreground hover:text-background"><div className="text-sm mb-0.5">{pipe.icon}</div>diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex a54cc30dc..477529492 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -265,6 +265,8 @@ export function StandaloneChat({setChipScrollTop,clearConnectionChip,} = useChatComposerShell();+ const [homeCardPromptPreview, setHomeCardPromptPreview] =+ useState<string | null>(null);// Holds the exact text a contextual starter put in the composer, so the send// can tell "sent the starter as-is" from "reworked it into their own// question". The second is the outcome the experiment is actually testing —@@ -272,6 +274,7 @@ export function StandaloneChat({const pendingContextualHomeSuggestionRef = useRef<string | null>(null);const fillContextualHomeSuggestion = useCallback((text: string) => {+ setHomeCardPromptPreview(null);pendingContextualHomeSuggestionRef.current = text;setInput(text);requestAnimationFrame(() => {@@ -282,7 +285,11 @@ export function StandaloneChat({[inputRef, setInput],);useEffect(() => {- if (!input.trim()) pendingContextualHomeSuggestionRef.current = null;+ if (!input.trim()) {+ pendingContextualHomeSuggestionRef.current = null;+ return;+ }+ setHomeCardPromptPreview(null);}, [input]);useTryInChatEvent({startNewRef: tryInChatStartNewRef,@@ -2078,10 +2085,11 @@ export function StandaloneChat({await commands.showWindow({ Home: { page: "pipes" } });}}summaryCardsProps={{+ onPreviewPrompt: setHomeCardPromptPreview,onSendMessage: (message, displayLabel, entrySource, entryCard) => {pendingContextualHomeSuggestionRef.current = null;- // Control cards send their prompt on click without ever showing it,- // so the user authored nothing.+ // Control cards may preview their prompt as placeholder text, but+ // never place it in the editable value, so the user authored nothing.return sendMessage(message, displayLabel, undefined, {entrySource,entryCard,@@ -2167,6 +2175,7 @@ export function StandaloneChat({inputRef,value: input,disabledReason: composerDisabledReason,+ placeholder: homeCardPromptPreview ?? undefined,canChat: Boolean(canSendChatMessage),isLoading,isStreaming,diff --git a/apps/screenpipe-app-tauri/e2e/COVERAGE.md b/apps/screenpipe-app-tauri/e2e/COVERAGE.mdindex 82d6adbf0..28ed75e50 100644--- a/apps/screenpipe-app-tauri/e2e/COVERAGE.md+++ b/apps/screenpipe-app-tauri/e2e/COVERAGE.md@@ -19,9 +19,9 @@ can execute more runtime cases than this number shows.| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score || --- | --- | --- | --- | --- | --- | --- |-| windows | 91 | 302 | 246.6 | 15 | 99 | 92% |-| macos | 116 | 314 | 246.0 | 17 | 107 | 90% |-| linux | 80 | 260 | 216.0 | 14 | 96 | 88% |+| windows | 91 | 302 | 246.6 | 15 | 100 | 92% |+| macos | 116 | 314 | 246.0 | 17 | 108 | 90% |+| linux | 80 | 260 | 216.0 | 14 | 97 | 88% |## Runtime Results@@ -116,7 +116,7 @@ pass/fail/skip counts.| capture-stall-recovery.spec.ts | macos | capture-ocr, local-api, os-integration, real-ui-e2e | app-launch, capture-ocr, health, recording-health-alerts | high | conditional | mixed | 3 | Opt-in macOS full-stack lane proves all selected user-paused monitors remain an intentional disabled/normal state and resume cleanly, bounds a wedged SCK frame worker, proves the privacy-gated CoreGraphics fallback, reproduces a status-Running capture loop going silent, verifies stale and the failure pill, independent per-monitor stall detection with a VisionManager restart and resumed terminal capture progress, same-process UI recovery, and bounded id-based SCK lookup retry. || capture-stall-stage-marker.spec.ts | macos | capture-ocr, local-api, os-integration | app-launch, capture-ocr | high | conditional | api | 1 | Opt-in macOS fault injection parks the capture loop; asserts /health names the frozen CaptureLoopStage with an advancing age while frame_status is stale, and that the stage age collapses once the watchdog recovers capture. || chat-ask-user-tool-card.spec.ts | windows, macos, linux | chat-ai, real-ui-e2e | chat, chat-tools, pi-ask-user | medium | partial | mixed | 1 | Synthetic assistant tool block renders the Pi ask_user dropdown and sends the selected answer through the normal chat reply path. |-| chat-automation-card-duplicate.spec.ts | windows, macos, linux | chat-ai, real-ui-e2e | chat, chat-sidebar-dedupe, chat-session-activity | medium | partial | real-user-flow | 1 | The Day Recap automation card must create exactly one persisted conversation and one sidebar row; status-only activity for an unknown session must not create an empty untitled sibling. |+| chat-automation-card-duplicate.spec.ts | windows, macos, linux | chat-ai, real-ui-e2e | chat, chat-home-card-placeholder-preview, chat-sidebar-dedupe, chat-session-activity | medium | partial | real-user-flow | 1 | The Day Recap automation card previews its user-facing prompt in the empty composer on hover, restores the default placeholder on leave, and creates exactly one persisted conversation and one sidebar row; status-only activity for an unknown session must not create an empty untitled sibling. || chat-composer-isolation.spec.ts | windows, macos, linux | chat-ai, real-ui-e2e | chat, chat-drafts | medium | partial | mixed | 1 | Composer draft isolation across conversations. || chat-connections-context-duplicate.spec.ts | windows, macos | chat-ai | chat, chat-sidebar-dedupe | medium | partial | synthetic | 1 | QUARANTINED (#4689): connections-context wrapper stripping regression. The synthetic background-router event path never persists deterministically on Linux/macOS CI; re-enable once it drives a deterministic persisted session. || chat-cost-limit-upgrade.spec.ts | macos | chat-ai, real-ui-e2e, tauri-command | chat | high | strong | real-user-flow | 1 | A local provider returns the gateway's structured daily-limit rejection across the four self-serve upgrade targets; each request crosses the real Pi and foreground-event path, then the UI asserts the phosphor primary CTA, captures a screenshot, and opens the exact billing URL. |diff --git a/apps/screenpipe-app-tauri/e2e/coverage-map.json b/apps/screenpipe-app-tauri/e2e/coverage-map.jsonindex 1e6355daf..55fdd5054 100644--- a/apps/screenpipe-app-tauri/e2e/coverage-map.json+++ b/apps/screenpipe-app-tauri/e2e/coverage-map.json@@ -672,13 +672,14 @@],"features": ["chat",+ "chat-home-card-placeholder-preview","chat-sidebar-dedupe","chat-session-activity"],"criticality": "medium","confidence": "partial","ux": "real-user-flow",- "notes": "The Day Recap automation card must create exactly one persisted conversation and one sidebar row; status-only activity for an unknown session must not create an empty untitled sibling."+ "notes": "The Day Recap automation card previews its user-facing prompt in the empty composer on hover, restores the default placeholder on leave, and creates exactly one persisted conversation and one sidebar row; status-only activity for an unknown session must not create an empty untitled sibling."},{"spec": "chat-composer-isolation.spec.ts",diff --git a/apps/screenpipe-app-tauri/e2e/screenshots/home-card-placeholder/day-recap-hover.png b/apps/screenpipe-app-tauri/e2e/screenshots/home-card-placeholder/day-recap-hover.pngnew file mode 100644index 000000000..7a63a548aBinary files /dev/null and b/apps/screenpipe-app-tauri/e2e/screenshots/home-card-placeholder/day-recap-hover.png differdiff --git a/apps/screenpipe-app-tauri/e2e/specs/chat-automation-card-duplicate.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/chat-automation-card-duplicate.spec.tsindex d8b125e92..24f9cf754 100644--- a/apps/screenpipe-app-tauri/e2e/specs/chat-automation-card-duplicate.spec.ts+++ b/apps/screenpipe-app-tauri/e2e/specs/chat-automation-card-duplicate.spec.ts@@ -30,7 +30,7 @@*/import { randomUUID } from "node:crypto";-import { readFileSync, readdirSync, rmSync } from "node:fs";+import { mkdirSync, readFileSync, readdirSync, rmSync } from "node:fs";import { join } from "node:path";import {openHomeWindow,@@ -42,6 +42,12 @@ import { E2E_DATA_DIR } from "../helpers/app-launcher.js";import { PiConversationHarness } from "../helpers/pi-conversation-harness.js";const CHATS_DIR = join(E2E_DATA_DIR, "chats");+const SHOTS_DIR = join(+ process.cwd(),+ "e2e",+ "screenshots",+ "home-card-placeholder",+);const CARD_SLUG = "day-recap";const CARD_DISPLAY_LABEL = "📋 Day Recap";const PHANTOM_ACTIVITY_ID = "88888888-cccc-4ccc-8ccc-cccccccccccc";@@ -330,6 +336,49 @@ describe("Automation card creates exactly one chat (#4719)", function () {await piConversation.restartPi();await settleRetryArtifacts(CARD_DISPLAY_LABEL);await waitForCard(CARD_SLUG);++ const card = await $(`[data-testid="summary-card-${CARD_SLUG}"]`);+ const composer = await $("form textarea");+ await card.moveTo();+ // The macOS WebKit driver moves the pointer but does not consistently+ // deliver React's delegated mouseover event in an occluded E2E window.+ // Emit that browser event after the real move so the screenshot keeps the+ // hover styling while the state transition remains deterministic.+ await browser.execute((slug: string) => {+ document+ .querySelector(`[data-testid="summary-card-${slug}"]`)+ ?.dispatchEvent(new MouseEvent("mouseover", { bubbles: true }));+ }, CARD_SLUG);+ await browser.waitUntil(+ async () =>+ (await composer.getAttribute("placeholder")) ===+ "Summarize what I worked on today",+ {+ timeout: t(5_000),+ interval: 50,+ timeoutMsg: "Home card hover did not preview its prompt in the composer",+ },+ );+ expect(await composer.getValue()).toBe("");+ mkdirSync(SHOTS_DIR, { recursive: true });+ await browser.saveScreenshot(join(SHOTS_DIR, "day-recap-hover.png"));++ await composer.moveTo();+ await browser.execute((slug: string) => {+ document+ .querySelector(`[data-testid="summary-card-${slug}"]`)+ ?.dispatchEvent(new MouseEvent("mouseout", { bubbles: true }));+ }, CARD_SLUG);+ await browser.waitUntil(+ async () =>+ (await composer.getAttribute("placeholder")) ===+ "Ask a question or describe a task",+ {+ timeout: t(5_000),+ interval: 50,+ timeoutMsg: "composer placeholder did not reset after leaving the Home card",+ },+ );const sidebarBefore = await sidebarSnapshot();await clickCard(CARD_SLUG);diff --git a/apps/screenpipe-app-tauri/e2e/videos/home-card-placeholder-hover-real-desktop.mp4 b/apps/screenpipe-app-tauri/e2e/videos/home-card-placeholder-hover-real-desktop.mp4new file mode 100644index 000000000..a666e6956--- /dev/null+++ b/apps/screenpipe-app-tauri/e2e/videos/home-card-placeholder-hover-real-desktop.mp4@@ -0,0 +1,3 @@+version https://git-lfs.github.com/spec/v1+oid sha256:9c4053d356cf920a956aa2cf192b30f354fc1081a46524a923c7044a60850c6b+size 69453diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-pipes.ts b/apps/screenpipe-app-tauri/lib/hooks/use-pipes.tsindex 6238c09f5..3aab64228 100644--- a/apps/screenpipe-app-tauri/lib/hooks/use-pipes.ts+++ b/apps/screenpipe-app-tauri/lib/hooks/use-pipes.ts@@ -11,6 +11,8 @@ export interface TemplatePipe {name: string;title: string;description: string;+ /** Concise user-facing prompt shown when previewing a Home card. */+ previewPrompt?: string;icon: string;featured: boolean;prompt: string;diff --git a/apps/screenpipe-app-tauri/lib/summary-templates.ts b/apps/screenpipe-app-tauri/lib/summary-templates.tsindex b12f83ecc..d4bdf8bab 100644--- a/apps/screenpipe-app-tauri/lib/summary-templates.ts+++ b/apps/screenpipe-app-tauri/lib/summary-templates.ts@@ -194,6 +194,7 @@ export const FALLBACK_TEMPLATES: TemplatePipe[] = [name: AUTOMATE_MY_WORK_TEMPLATE_NAME,title: "Automate My Work",description: "Find one repeated workflow and propose a testable automation",+ previewPrompt: "Find a repeated workflow I could automate",icon: "⚡",featured: true,prompt: buildAutomateMyWorkPrompt(),@@ -202,6 +203,7 @@ export const FALLBACK_TEMPLATES: TemplatePipe[] = [name: "day-recap",title: "Day Recap",description: "Today's accomplishments, key moments, and unfinished work",+ previewPrompt: "Summarize what I worked on today",icon: "\u{1F4CB}",featured: true,prompt: `Analyze my screen and audio recordings from today (last 16 hours). Read the screenpipe skill first. Use limit=10 per search, max 5 searches total. For app-usage totals, aggregate by app over the time range using whatever screenpipe query tool you have (a COUNT/GROUP BY query or the activity summary). Use only screenpipe's recorded data, not this project's files or other apps' source.@@ -229,6 +231,7 @@ Only report what you can verify from the data. End with: "**Next step:** [most iname: "time-breakdown",title: "Time Breakdown",description: "Where your time went — by app, project, and category",+ previewPrompt: "Show me where my time went today",icon: "⏱",featured: true,prompt: `Analyze my app usage from today (last 12 hours). Read the screenpipe skill first. Use limit=10 per search, max 4 searches. For time per app, aggregate frames by app over the range using whatever screenpipe query tool you have (a COUNT/GROUP BY query or the activity summary). Use only screenpipe's recorded data, not this project's files or other apps' source.@@ -253,6 +256,7 @@ End with: "**Suggestion:** [one specific change to improve tomorrow]"`,name: "missed-todos",title: "Missed To-Dos",description: "Action items from the last few days you may have missed",+ previewPrompt: "Find action items I may have missed",icon: "✅",featured: true,prompt: `Find action items and to-dos from the last 3 days that I may have missed. Read the screenpipe skill first. Use limit=10 per search, max 5 searches over the last 3 days. Use only screenpipe's recorded data, not this project's files or other apps' source.