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: clarify stale memories warning (#5292)

Rudra Bhaskar965e9c1ca6f2
diff --git a/apps/screenpipe-app-tauri/components/settings/__tests__/brain-section.filter.test.tsx b/apps/screenpipe-app-tauri/components/settings/__tests__/brain-section.filter.test.tsx
index fa1d8a0d3..3e5bbeb76 100644
--- a/apps/screenpipe-app-tauri/components/settings/__tests__/brain-section.filter.test.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/__tests__/brain-section.filter.test.tsx
@@ -160,6 +160,28 @@ describe("BrainSection type filter", () => {
expect(artifactRows().length).toBe(0);
});
+ it("keeps the stale warning specific to memories", async () => {
+ const now = vi
+ .spyOn(Date, "now")
+ .mockReturnValue(new Date("2026-07-14T00:00:00Z").getTime());
+
+ try {
+ render(<BrainSection />);
+
+ await waitFor(() => {
+ expect(screen.getByText(/memories haven't updated in/i)).toBeTruthy();
+ expect(
+ screen.getByText(
+ /check that a memory-writing pipe is installed and enabled/i,
+ ),
+ ).toBeTruthy();
+ });
+ expect(screen.queryByText(/artifact-writing/)).toBeNull();
+ } finally {
+ now.mockRestore();
+ }
+ });
+
it("artifacts tab hides every memory row", async () => {
render(<BrainSection />);
await waitFor(() => expect(memoryRows().length).toBeGreaterThan(0));
diff --git a/apps/screenpipe-app-tauri/components/settings/brain-section.tsx b/apps/screenpipe-app-tauri/components/settings/brain-section.tsx
index e4840ea35..6cd749598 100644
--- a/apps/screenpipe-app-tauri/components/settings/brain-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/brain-section.tsx
@@ -1084,8 +1084,8 @@ export function BrainSection() {
<div className="flex items-start gap-2 rounded-md border border-yellow-500/30 bg-yellow-500/5 px-3 py-2 text-xs text-yellow-600 dark:text-yellow-400">
<AlertCircle className="h-3.5 w-3.5 mt-0.5 shrink-0" />
<span>
- hasn&apos;t updated in {staleDays} day{staleDays !== 1 ? "s" : ""}.
- check that a memory-writing or artifact-writing pipe is installed and enabled
+ memories haven&apos;t updated in {staleDays} day{staleDays !== 1 ? "s" : ""}.
+ check that a memory-writing pipe is installed and enabled
&mdash;{" "}
<a
href="?section=pipes&tab=discover&q=memory"