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(activity): add episode chat action (#6393)
Ezra Elletted6434856a15d
diff --git a/apps/screenpipe-app-tauri/components/activity-ledger.test.tsx b/apps/screenpipe-app-tauri/components/activity-ledger.test.tsxindex 2eee9796a..bc63cf86d 100644--- a/apps/screenpipe-app-tauri/components/activity-ledger.test.tsx+++ b/apps/screenpipe-app-tauri/components/activity-ledger.test.tsx@@ -717,7 +717,7 @@ describe("ActivityLedger", () => {);});- it("keeps rows concise while exposing artifact icons and skill creation", async () => {+ it("keeps rows concise while exposing artifact icons and episode actions", async () => {render(<ActivityLedger />);await generateActivities();@@ -757,6 +757,11 @@ describe("ActivityLedger", () => {name: "Make skill from Fixed a capture reliability regression",}),).toBeVisible();+ expect(+ screen.getByRole("button", {+ name: "Chat about Fixed a capture reliability regression",+ }),+ ).toBeVisible();for (const noisyLabel of ["completed",@@ -957,4 +962,27 @@ describe("ActivityLedger", () => {),);});++ it("can ask about every activity interval in chat", async () => {+ render(<ActivityLedger />);+ await generateActivities();+ await screen.findByText("Unblocked a customer's onboarding");++ fireEvent.click(+ screen.getByRole("button", {+ name: "Chat about Unblocked a customer's onboarding",+ }),+ );++ await waitFor(() =>+ expect(mocks.showChatWithPrefill).toHaveBeenCalledWith(+ expect.objectContaining({+ source: "activity-history-chat",+ context: expect.stringContaining("frame 67890"),+ displayLabel: "Ask about “Unblocked a customer's onboarding”",+ prompt: "Tell me more about this activity.",+ }),+ ),+ );+ });});diff --git a/apps/screenpipe-app-tauri/components/activity-ledger.tsx b/apps/screenpipe-app-tauri/components/activity-ledger.tsxindex 8a0c29c3c..58cca0a76 100644--- a/apps/screenpipe-app-tauri/components/activity-ledger.tsx+++ b/apps/screenpipe-app-tauri/components/activity-ledger.tsx@@ -963,6 +963,15 @@ Re-query Screenpipe only inside the cited time range and use the cited frames an});};+ const askAboutActivity = (entry: ActivityHistoryEntry) => {+ void showChatWithPrefill({+ context: compactEntryContext(entry),+ displayLabel: `Ask about “${entry.title}”`,+ prompt: "Tell me more about this activity.",+ source: "activity-history-chat",+ });+ };+const openEvidence = useCallback((evidence: ActivityArtifact) => {onOpenArtifact?.();@@ -1195,6 +1204,15 @@ Re-query Screenpipe only inside the cited time range and use the cited frames an>Make skill</button>+ <span aria-hidden="true">·</span>+ <button+ type="button"+ onClick={() => askAboutActivity(entry)}+ className="font-mono text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:text-foreground"+ aria-label={`Chat about ${entry.title}`}+ >+ Chat+ </button></div></div></article>