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(chat): stop CollapsedChatSidebarButton tab cycle when all sections empty
Louis Beaumontdb91b1e1caa3
diff --git a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx b/apps/screenpipe-app-tauri/components/chat-sidebar.tsxindex 6fb97e040..7db7d1274 100644--- a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx+++ b/apps/screenpipe-app-tauri/components/chat-sidebar.tsx@@ -709,6 +709,10 @@ export function CollapsedChatSidebarButton({!diskHydrated && pinned.length === 0 && recents.length === 0;useEffect(() => {+ // Bail when all three sections are empty: every fallback target is also+ // empty, so each setTab lands on another empty tab and re-triggers this+ // effect → React #185 ("Maximum update depth exceeded").+ if (pinned.length === 0 && recents.length === 0 && archived.length === 0) return;if (tab === "pinned" && pinned.length === 0) {setTab(recents.length > 0 ? "recents" : "archived");} else if (tab === "recents" && recents.length === 0) {