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
fix: resolve localized source labels in recents menus
louis4e8842805087
diff --git a/apps/screenpipe-app-tauri/components/__tests__/chat-sidebar-focus.test.tsx b/apps/screenpipe-app-tauri/components/__tests__/chat-sidebar-focus.test.tsxindex c2e520de6..6ad2d109e 100644--- a/apps/screenpipe-app-tauri/components/__tests__/chat-sidebar-focus.test.tsx+++ b/apps/screenpipe-app-tauri/components/__tests__/chat-sidebar-focus.test.tsx@@ -159,11 +159,13 @@ describe("Recents provider filtering", () => {});it.each([+ ["screenpipe", "Screenpipe", "/images/screenpipe.png"],["codex", "Codex", "/images/codex.svg"],["claude-code", "Claude", "/images/claude-ai.svg"],] as const)("shows the %s mark in the source picker", (source, label, icon) => {+ const option = visibleRecentSourceOptions().find((option) => option.source === source)!;const { container } = render(- <RecentsSourceFilterLabel source={source} label={label} />,+ <RecentsSourceFilterLabel {...option} />,);expect(screen.getByText(label)).toBeVisible();diff --git a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx b/apps/screenpipe-app-tauri/components/chat-sidebar.tsxindex 12fb9d82c..b0c7d2dcc 100644--- a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx+++ b/apps/screenpipe-app-tauri/components/chat-sidebar.tsx@@ -227,6 +227,8 @@ export function RecentsSourceFilterLabel({source: RecentSource;label: string;}) {+ const uiMessages = useMessages();+return (<span className="flex min-w-0 flex-1 items-center gap-2"><Image@@ -237,7 +239,7 @@ export function RecentsSourceFilterLabel({className="h-4 w-4 shrink-0 rounded-sm object-contain"unoptimized/>- <span className="truncate">{label}</span>+ <span className="truncate">{localizeDefinitions(label, uiMessages)}</span></span>);}