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(chat): embed sidebar inside main app sidebar + drop duplicate history UI

Louis Beaumont021a07ebd888
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsx
index 9485db9ea..7585e3d9b 100644
--- a/apps/screenpipe-app-tauri/app/home/page.tsx
+++ b/apps/screenpipe-app-tauri/app/home/page.tsx
@@ -467,10 +467,14 @@ function HomeContent() {
})()}
</div>
- {/* Navigation */}
- <div className="p-2 flex-1 overflow-y-auto flex flex-col">
+ {/* Navigation.
+ Outer flex column has no overflow — the chat-list section
+ inside owns its own scroll, otherwise the team promo +
+ bottom items would be pushed below the fold by long
+ conversation lists. */}
+ <div className="p-2 flex-1 flex flex-col min-h-0">
{/* Main sections */}
- <div className="space-y-0.5">
+ <div className="space-y-0.5 shrink-0">
{mainSections.map((section) => {
const isActive = activeSection === section.id;
const btn = (
@@ -516,8 +520,22 @@ function HomeContent() {
</div>
- {/* Spacer */}
- <div className="flex-1" />
+ {/* Embedded chat list — sits below the nav, scrolls within
+ its own viewport so the team promo + bottom items stay
+ pinned. Hidden when the sidebar is collapsed (no room for
+ the conversation titles). */}
+ {!sidebarCollapsed ? (
+ <div
+ className={cn(
+ "flex-1 min-h-0 flex flex-col mt-2 -mx-2 border-t pt-2",
+ isTranslucent ? "vibrant-sidebar-border" : "border-border/50"
+ )}
+ >
+ <ChatSidebar />
+ </div>
+ ) : (
+ <div className="flex-1" />
+ )}
{/* Team promo card — hidden when user already has a team, sidebar collapsed, or enterprise */}
{!teamState.team && !sidebarCollapsed && !isSectionHidden("team") && !teamPromoDismissed && (
@@ -706,12 +724,7 @@ function HomeContent() {
activeSection !== "home" && "hidden"
)}
>
- <div className="flex h-full min-w-0">
- <ChatSidebar />
- <div className="flex-1 min-w-0">
- <StandaloneChat className="h-full" />
- </div>
- </div>
+ <StandaloneChat className="h-full" />
</div>
{/* Non-chat sections render on top when active. */}
diff --git a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx b/apps/screenpipe-app-tauri/components/chat-sidebar.tsx
index 4b9f8206f..da95ff3c7 100644
--- a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx
+++ b/apps/screenpipe-app-tauri/components/chat-sidebar.tsx
@@ -47,6 +47,13 @@ interface ChatSidebarProps {
className?: string;
}
+/**
+ * Embeddable. Designed to live INSIDE the main app sidebar, sandwiched
+ * between the navigation items and the bottom action bar (Team / Settings
+ * / Help). Takes whatever width its parent gives it; provides its own
+ * vertical scroll for the conversation list. Does NOT add a width / border /
+ * background — those belong to the parent.
+ */
export function ChatSidebar({ className }: ChatSidebarProps) {
// useOrderedSessions subscribes to the raw sessions map (stable identity
// across no-op updates) and memoizes the sort. Avoids the
@@ -158,15 +165,11 @@ export function ChatSidebar({ className }: ChatSidebarProps) {
};
return (
- <aside
- className={cn(
- "w-64 shrink-0 flex flex-col text-sm border-r border-border/50",
- "bg-background/40 backdrop-blur-sm",
- className
- )}
+ <div
+ className={cn("flex flex-col h-full min-h-0 text-sm", className)}
data-testid="chat-sidebar"
>
- <div className="px-3 pt-3 pb-2">
+ <div className="px-2 pt-2 pb-1 shrink-0">
<button
onClick={handleNew}
className={cn(
@@ -180,7 +183,7 @@ export function ChatSidebar({ className }: ChatSidebarProps) {
</button>
</div>
- <div className="flex-1 overflow-y-auto overflow-x-hidden">
+ <div className="flex-1 min-h-0 overflow-y-auto overflow-x-hidden">
{pinned.length > 0 && (
<Section title="pinned">
{pinned.map((s) => (
@@ -219,7 +222,7 @@ export function ChatSidebar({ className }: ChatSidebarProps) {
)}
</Section>
</div>
- </aside>
+ </div>
);
}
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 51bc9cff6..1dd38ddf6 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -3474,22 +3474,10 @@ export function StandaloneChat({ className }: { className?: string } = {}) {
{!isMac && !className && (
<div className="absolute top-0 left-0 w-8 h-8 border-l-2 border-t-2 border-foreground/10 rounded-tl-lg" />
)}
- <Button
- variant={showHistory ? "secondary" : "ghost"}
- size="icon"
- onMouseDown={(e) => e.stopPropagation()}
- onClick={async (e) => {
- e.stopPropagation();
- if (!showHistory) {
- await reloadStore();
- }
- setShowHistory(!showHistory);
- }}
- className="relative z-10 h-7 w-7"
- title="Chat history"
- >
- <History size={14} />
- </Button>
+ {/* Chat history is now rendered inside the main app sidebar
+ (see ChatSidebar embedded in app-sidebar). The inline history
+ toggle here is removed to avoid duplicating the same list in
+ two places. */}
<div className="flex-1" />
<Button
variant="default"
@@ -3512,11 +3500,16 @@ export function StandaloneChat({ className }: { className?: string } = {}) {
</kbd>
</div>
- {/* Main content area with optional history sidebar */}
+ {/* Main content area. The history sidebar previously rendered here
+ has been removed in favor of the embedded ChatSidebar in the
+ main app sidebar — single source of truth for the chat list. */}
<div className="flex-1 flex overflow-hidden">
- {/* History Sidebar */}
+ {/* History Sidebar — DELETED. Kept conditional below as `false`
+ so the JSX block is dead but still parses; will be removed in
+ a follow-up cleanup once we're sure nothing else references
+ showHistory state. */}
<AnimatePresence>
- {showHistory && (
+ {false && showHistory && (
<motion.div
initial={{ width: 0, opacity: 0 }}
animate={{ width: 280, opacity: 1 }}
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 72db2723f..5fbee2c72 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.4.55"
+version = "2.4.56"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""