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(sidebar): restore customization controls (#6707)
Louis Beaumontf0068001a5fd
diff --git a/apps/screenpipe-app-tauri/app/(main)/home/page.tsx b/apps/screenpipe-app-tauri/app/(main)/home/page.tsxindex 4ba1b1fbb..c7079451c 100644--- a/apps/screenpipe-app-tauri/app/(main)/home/page.tsx+++ b/apps/screenpipe-app-tauri/app/(main)/home/page.tsx@@ -48,7 +48,10 @@ import {isSidebarNavLayoutDefault,type SidebarNavId,} from "@/lib/utils/sidebar-nav-layout";-import { SidebarNavList } from "@/components/sidebar-nav-list";+import {+ SidebarCustomizationMenu,+ SidebarNavList,+} from "@/components/sidebar-nav-list";import { CommandPalette } from "@/components/command-palette";import { useToast } from "@/components/ui/use-toast";import { ToastAction } from "@/components/ui/toast";@@ -1095,7 +1098,6 @@ function HomeContent() {const meetingsInToolbar =!meetingsInSidebar && availableSidebarIds.includes("meetings");- const sidebarCustomizable = Boolean(settings.enableSidebarCustomization);const persistSidebarLayout = (next: ReturnType<typeof normalizeSidebarNavLayout>) => {void updateSettings({ sidebarNavLayout: next });};@@ -1112,8 +1114,8 @@ function HomeContent() {title: `${label} hidden`,description:id === "meetings"- ? "still one click away from the icon next to search."- : "find it under Hidden at the bottom of the sidebar.",+ ? "still one click away from the icon in the top bar."+ : "use sidebar options in the top bar to bring it back.",action: (<ToastActionaltText={`Show ${label} in the sidebar again`}@@ -1331,6 +1333,28 @@ function HomeContent() {</Tooltip>)}+ {!sidebarCollapsed && (+ <SidebarCustomizationMenu+ hiddenItems={hiddenSidebarIds.map((id) => ({+ id,+ label: SIDEBAR_SECTION_DEFS[id].label,+ }))}+ isTranslucent={isTranslucent}+ canReset={!isSidebarNavLayoutDefault(sidebarLayout)}+ onSetHidden={(id, hidden) => {+ persistSidebarLayout(+ setSidebarNavItemHidden(+ sidebarLayout,+ availableSidebarIds,+ id,+ hidden,+ ),+ );+ }}+ onReset={() => persistSidebarLayout(DEFAULT_SIDEBAR_NAV_LAYOUT)}+ />+ )}+{!sidebarCollapsed && meetingsInToolbar && (<Tooltip><TooltipTrigger asChild>@@ -1395,17 +1419,12 @@ function HomeContent() {conversation lists. */}<div className="pt-2 pr-2 pb-2 flex-1 flex flex-col min-h-0">{/* Main sections. Order and visibility are the user's — drag a- row or right-click it (behind the sidebar-customization- rollout gate); enterprise policy still decides eligibility. */}+ row or right-click it; enterprise policy still decides+ eligibility. */}<SidebarNavListitems={mainSections}- hiddenItems={hiddenSidebarIds.map((id) => ({- id,- label: SIDEBAR_SECTION_DEFS[id].label,- }))}activeId={activeSection}isTranslucent={isTranslucent}- customizable={sidebarCustomizable}canReset={!isSidebarNavLayoutDefault(sidebarLayout)}onSelect={(id) => {setActiveSection(id);diff --git a/apps/screenpipe-app-tauri/components/__tests__/sidebar-nav-list.test.tsx b/apps/screenpipe-app-tauri/components/__tests__/sidebar-nav-list.test.tsxindex 1cd1c454c..cdfd2232d 100644--- a/apps/screenpipe-app-tauri/components/__tests__/sidebar-nav-list.test.tsx+++ b/apps/screenpipe-app-tauri/components/__tests__/sidebar-nav-list.test.tsx@@ -4,7 +4,11 @@import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";import { cleanup, fireEvent, render, screen } from "@testing-library/react";-import { SidebarNavList, type SidebarNavItem } from "../sidebar-nav-list";+import {+ SidebarCustomizationMenu,+ SidebarNavList,+ type SidebarNavItem,+} from "../sidebar-nav-list";import type { SidebarNavId } from "@/lib/utils/sidebar-nav-layout";const ITEMS: SidebarNavItem[] = [@@ -24,10 +28,8 @@ function renderList(overrides: Partial<React.ComponentProps<typeof SidebarNavLisrender(<SidebarNavListitems={ITEMS}- hiddenItems={[{ id: "meetings" as SidebarNavId, label: "Meetings" }]}activeId="home"isTranslucent={false}- customizablecanReset={false}{...handlers}{...overrides}@@ -36,6 +38,25 @@ function renderList(overrides: Partial<React.ComponentProps<typeof SidebarNavLisreturn handlers;}+function renderCustomizationMenu(+ overrides: Partial<React.ComponentProps<typeof SidebarCustomizationMenu>> = {},+) {+ const handlers = {+ onSetHidden: vi.fn(),+ onReset: vi.fn(),+ };+ render(+ <SidebarCustomizationMenu+ hiddenItems={[{ id: "meetings" as SidebarNavId, label: "Meetings" }]}+ isTranslucent={false}+ canReset+ {...handlers}+ {...overrides}+ />,+ );+ return handlers;+}+/** Radix context menus open on the native contextmenu event, not a click. */function rightClick(testId: string) {fireEvent.contextMenu(screen.getByTestId(testId));@@ -120,19 +141,23 @@ describe("SidebarNavList", () => {expect(handlers.onSetHidden).toHaveBeenCalledWith("pipes", true);});- // The strongest products in this space (Linear "More", Notion "Hidden",- // Superhuman "Inactive") all give hidden entries a visible home. Restoring- // must not require hunting through an unrelated row's menu.- it("gives hidden rows a visible home that restores them in one click", () => {- const handlers = renderList();- expect(screen.getByTestId("sidebar-hidden-strip")).toBeInTheDocument();- fireEvent.click(screen.getByTestId("sidebar-show-meetings"));+ it("restores hidden rows through progressive disclosure", () => {+ const handlers = renderCustomizationMenu();+ openDropdown("sidebar-options");+ fireEvent.click(screen.getByText("Show Meetings"));expect(handlers.onSetHidden).toHaveBeenCalledWith("meetings", false);});- it("carries no hidden strip when nothing is hidden", () => {- renderList({ hiddenItems: [] });- expect(screen.queryByTestId("sidebar-hidden-strip")).toBeNull();+ it("adds no sidebar-options chrome before the layout changes", () => {+ renderCustomizationMenu({ hiddenItems: [], canReset: false });+ expect(screen.queryByTestId("sidebar-options")).toBeNull();+ });++ it("resets a customized layout from sidebar options", () => {+ const handlers = renderCustomizationMenu({ hiddenItems: [] });+ openDropdown("sidebar-options");+ fireEvent.click(screen.getByTestId("sidebar-options-reset"));+ expect(handlers.onReset).toHaveBeenCalled();});// Discoverability: right-click and drag are both invisible affordances, so@@ -164,24 +189,6 @@ describe("SidebarNavList", () => {expect(handlers.onReset).toHaveBeenCalled();});- // The rollout gate must leave the pre-customization sidebar untouched: same- // rows, same testids, no menu, no drag handles.- it("renders plain rows with no menu when the gate is off", () => {- renderList({ customizable: false });- expect(screen.getByTestId("nav-home")).toBeInTheDocument();- rightClick("nav-home");- expect(screen.queryByText("Move up")).toBeNull();- expect(screen.queryByText("Hide from sidebar")).toBeNull();- expect(screen.queryByTestId("nav-home-options")).toBeNull();- expect(screen.queryByTestId("sidebar-hidden-strip")).toBeNull();- });-- it("still selects sections when the gate is off", () => {- const handlers = renderList({ customizable: false });- fireEvent.click(screen.getByTestId("nav-pipes"));- expect(handlers.onSelect).toHaveBeenCalledWith("pipes");- });-it("renders trailing adornments such as the meeting recording dot", () => {renderList({items: [@@ -192,7 +199,6 @@ describe("SidebarNavList", () => {trailing: <span data-testid="recording-dot" />,},],- hiddenItems: [],});expect(screen.getByTestId("recording-dot")).toBeInTheDocument();});diff --git a/apps/screenpipe-app-tauri/components/settings/__tests__/display-section.sidebar-layout.test.tsx b/apps/screenpipe-app-tauri/components/settings/__tests__/display-section.sidebar-layout.test.tsxindex d4227c30a..9fa5a4a9c 100644--- a/apps/screenpipe-app-tauri/components/settings/__tests__/display-section.sidebar-layout.test.tsx+++ b/apps/screenpipe-app-tauri/components/settings/__tests__/display-section.sidebar-layout.test.tsx@@ -103,14 +103,10 @@ describe("DisplaySection sidebar layout", () => {});});- it("explains customization only once the rollout gate is on", () => {- render(<DisplaySection />);- expect(screen.getByText(/rolling out/i)).toBeInTheDocument();- cleanup();-- mocks.settings = { ...mocks.settings, enableSidebarCustomization: true };+ it("explains how to customize the sidebar", () => {render(<DisplaySection />);expect(screen.getByText(/Drag sidebar rows/i)).toBeInTheDocument();+ expect(screen.queryByText(/rolling out/i)).toBeNull();});// settings-search asserts every indexed label maps to a rendered heading.diff --git a/apps/screenpipe-app-tauri/components/settings/display-section.tsx b/apps/screenpipe-app-tauri/components/settings/display-section.tsxindex 2bfd5d6e8..427a23851 100644--- a/apps/screenpipe-app-tauri/components/settings/display-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/display-section.tsx@@ -402,9 +402,8 @@ export function DisplaySection() {/></div><p className="ml-[26px] text-xs text-muted-foreground">- {settings?.enableSidebarCustomization- ? "Drag sidebar rows to reorder them, or right-click one to move, hide, or restore it."- : "Reordering and hiding other sidebar rows is rolling out."}+ Drag sidebar rows to reorder them, or right-click one to move,+ hide, or restore it.</p>{!isSidebarNavLayoutDefault(sidebarLayout) && (<div className="ml-[26px]">diff --git a/apps/screenpipe-app-tauri/components/sidebar-nav-list.tsx b/apps/screenpipe-app-tauri/components/sidebar-nav-list.tsxindex 4c49a36dc..3fd78f322 100644--- a/apps/screenpipe-app-tauri/components/sidebar-nav-list.tsx+++ b/apps/screenpipe-app-tauri/components/sidebar-nav-list.tsx@@ -12,15 +12,11 @@// and a "…" button appears, the same two cues Notion/Linear/Slack use, and// the "…" opens the identical menu right-click does (one menu, two ways in// — mirroring RowMenuItems in chat-sidebar.tsx).-// * Hiding a row used to make it vanish with no trace, and the only way back-// was right-clicking a *different* row to find "Show X". Hidden rows now-// have a home: a quiet disclosure under the nav listing exactly what is-// hidden, one click to bring it back. The control sits next to the thing it-// affects instead of inside an unrelated row's menu.+// * Hiding should remove chrome, not replace it with a second list. Once the+// layout changes, a compact sidebar-options button appears in the top+// chrome. Hidden rows live behind that progressive disclosure as explicit+// "Show X" actions.//-// When the rollout gate is off this renders plain, non-draggable rows with no-// menu and no disclosure, so customization behavior remains unchanged.-import React from "react";import {DndContext,@@ -41,10 +37,10 @@ import { CSS } from "@dnd-kit/utilities";import {ArrowDown,ArrowUp,+ Eye,EyeOff,GripVertical,MoreHorizontal,- Plus,RotateCcw,} from "lucide-react";import {@@ -74,12 +70,8 @@ export type SidebarNavItem = {export type SidebarNavListProps = {items: SidebarNavItem[];- /** Ids the user can bring back, with their labels, for the hidden strip. */- hiddenItems: Array<{ id: SidebarNavId; label: string }>;activeId: string;isTranslucent: boolean;- /** Rollout gate — false renders plain rows with no menu and no strip. */- customizable: boolean;canReset: boolean;onSelect: (id: SidebarNavId) => void;onIntent?: (id: SidebarNavId) => void;@@ -89,6 +81,13 @@ export type SidebarNavListProps = {onReset: () => void;};+export type SidebarCustomizationMenuProps = Pick<+ SidebarNavListProps,+ "isTranslucent" | "canReset" | "onSetHidden" | "onReset"+> & {+ hiddenItems: Array<{ id: SidebarNavId; label: string }>;+};+const ITEM_CLS ="flex cursor-pointer items-center gap-2 text-xs [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground";@@ -109,8 +108,8 @@ function rowClassName(isActive: boolean, isTranslucent: boolean) {/*** One menu, rendered into either the right-click surface or the "…" dropdown.- * Actions are scoped to this row only — restoring a hidden row belongs to the- * hidden strip, next to the row it affects.+ * Actions are scoped to this row only. Restoring hidden rows lives behind the+ * compact sidebar-options button in the top chrome.*/function RowMenuItems({variant,@@ -305,54 +304,64 @@ function SortableRow({);}-/**- * Where hidden rows live. Without this, hiding a row is a one-way door: it- * vanishes and the user has no visible path back. Rendered only when something- * is actually hidden, so a stock sidebar carries no extra chrome.- */-function HiddenStrip({+/** Progressive disclosure for restoring hidden rows or resetting the layout. */+export function SidebarCustomizationMenu({hiddenItems,isTranslucent,- onShow,-}: {- hiddenItems: SidebarNavListProps["hiddenItems"];- isTranslucent: boolean;- onShow: (id: SidebarNavId) => void;-}) {- if (hiddenItems.length === 0) return null;+ canReset,+ onSetHidden,+ onReset,+}: SidebarCustomizationMenuProps) {+ if (!canReset) return null;return (- <div className="mt-1 space-y-0.5" data-testid="sidebar-hidden-strip">- <p className="px-2.5 pt-1 text-[10px] uppercase tracking-wide text-muted-foreground/60">- Hidden- </p>- {hiddenItems.map((hidden) => (+ <DropdownMenu>+ <DropdownMenuTrigger asChild><button- key={hidden.id}type="button"- data-testid={`sidebar-show-${hidden.id}`}- onClick={() => onShow(hidden.id)}- title={`Show ${hidden.label} in the sidebar`}+ aria-label="sidebar options"+ title="sidebar options"+ data-testid="sidebar-options"+ data-announcement-anchor="top-sidebar-options"className={cn(- "flex w-full items-center gap-2.5 rounded-md px-2.5 py-1 text-left transition-colors duration-150 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-signal motion-reduce:transition-none",+ "rounded-md p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-signal",isTranslucent- ? "vibrant-nav-item vibrant-nav-hover"- : "text-muted-foreground/70 hover:bg-card/50 hover:text-foreground",+ ? "vibrant-nav-item"+ : "text-muted-foreground hover:bg-muted/50 hover:text-foreground",)}>- <Plus className="h-3.5 w-3.5 shrink-0" />- <span className="text-xs truncate">{hidden.label}</span>+ <MoreHorizontal className="h-3.5 w-3.5" /></button>- ))}- </div>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="w-48">+ {hiddenItems.map((hidden) => (+ <DropdownMenuItem+ key={hidden.id}+ className={ITEM_CLS}+ data-testid={`sidebar-show-${hidden.id}`}+ onSelect={() => onSetHidden(hidden.id, false)}+ >+ <Eye />+ Show {hidden.label}+ </DropdownMenuItem>+ ))}+ {hiddenItems.length > 0 && <DropdownMenuSeparator />}+ <DropdownMenuItem+ className={ITEM_CLS}+ data-testid="sidebar-options-reset"+ onSelect={onReset}+ >+ <RotateCcw />+ Reset sidebar+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>);}export function SidebarNavList({items,- hiddenItems,activeId,isTranslucent,- customizable,canReset,onSelect,onIntent,@@ -368,52 +377,6 @@ export function SidebarNavList({useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }),);- if (!customizable) {- return (- <div className="space-y-0.5 shrink-0">- {items.map((item) => (- <button- key={item.id}- data-testid={`nav-${item.id}`}- data-announcement-anchor={`sidebar-${item.id}`}- onClick={() => onSelect(item.id)}- onMouseEnter={() => onIntent?.(item.id)}- onFocus={() => onIntent?.(item.id)}- aria-current={activeId === item.id ? "page" : undefined}- className={rowClassName(activeId === item.id, isTranslucent)}- >- <div- className={cn(- "transition-colors flex-shrink-0",- activeId === item.id- ? isTranslucent- ? "vibrant-sidebar-fg"- : "text-signal"- : isTranslucent- ? "vibrant-sidebar-fg-muted"- : "text-muted-foreground group-hover/navrow:text-foreground",- )}- >- {item.icon}- </div>- <span- className={cn(- "text-xs truncate",- item.trailing && "flex-1",- activeId === item.id && isTranslucent- ? "font-semibold vibrant-sidebar-fg"- : "font-medium",- )}- >- {item.label}- </span>- {item.trailing}- </button>- ))}- </div>- );- }-const handleDragEnd = (event: DragEndEvent) => {const { active, over } = event;if (!over || active.id === over.id) return;@@ -453,11 +416,6 @@ export function SidebarNavList({</div></SortableContext></DndContext>- <HiddenStrip- hiddenItems={hiddenItems}- isTranslucent={isTranslucent}- onShow={(id) => onSetHidden(id, false)}- /></div>);}diff --git a/apps/screenpipe-app-tauri/lib/desktop-remote-control.test.ts b/apps/screenpipe-app-tauri/lib/desktop-remote-control.test.tsindex c18a250ee..32e814487 100644--- a/apps/screenpipe-app-tauri/lib/desktop-remote-control.test.ts+++ b/apps/screenpipe-app-tauri/lib/desktop-remote-control.test.ts@@ -133,8 +133,6 @@ describe("desktop remote control", () => {smartRecording: true,filterMusic: false,prioritizeInputLatency: true,- // Never chosen: stays null so the rollout default still applies.- sidebarCustomization: null,overlayHiding: null,aecMode: "screenpipe",});@@ -187,13 +185,31 @@ describe("desktop remote control", () => {defaultEnabled: false,forceDisabled: false,},+ overlayHiding: { defaultEnabled: false, forceDisabled: false },+ },+ autoUpdate: { forceEnabled: false },+ });+ });++ it("drops the retired sidebar rollout without resetting other policies", () => {+ const storedPolicy = {+ ...LOCAL_DESKTOP_REMOTE_POLICY,+ boolean: {+ ...LOCAL_DESKTOP_REMOTE_POLICY.boolean,+ semanticContext: { defaultEnabled: true, forceDisabled: true },sidebarCustomization: {defaultEnabled: false,forceDisabled: false,},- overlayHiding: { defaultEnabled: false, forceDisabled: false },},- autoUpdate: { forceEnabled: false },+ };++ expect(normalizeDesktopRemotePolicySnapshot(storedPolicy)).toEqual({+ ...LOCAL_DESKTOP_REMOTE_POLICY,+ boolean: {+ ...LOCAL_DESKTOP_REMOTE_POLICY.boolean,+ semanticContext: { defaultEnabled: true, forceDisabled: true },+ },});});@@ -389,7 +405,6 @@ describe("desktop remote control", () => {experimentalMeetingPiggyback: false,filterMusic: true,prioritizeInputLatency: false,- enableSidebarCustomization: false,aecMode: "off",screenpipeAecEnabled: false,macosInputVpioEnabled: false,diff --git a/apps/screenpipe-app-tauri/lib/desktop-remote-control.ts b/apps/screenpipe-app-tauri/lib/desktop-remote-control.tsindex c765bccdc..2102599c0 100644--- a/apps/screenpipe-app-tauri/lib/desktop-remote-control.ts+++ b/apps/screenpipe-app-tauri/lib/desktop-remote-control.ts@@ -38,11 +38,6 @@ export const BOOLEAN_REMOTE_CONTROL_DEFINITIONS = {shippedDefault: false,supportedPlatforms: ["windows"],},- sidebarCustomization: {- flagKey: "sidebar-customization-control",- settingKey: "enableSidebarCustomization",- shippedDefault: false,- },// Compatibility control retained for managed installs. The consumer UI's// visibility choice is independent from this rollout capability.overlayHiding: {@@ -58,7 +53,7 @@ export const BOOLEAN_REMOTE_CONTROL_DEFINITIONS = {*/export const NON_RECORDER_REMOTE_CONTROLS = new Set<BooleanRemoteControlKey | "aecMode" | "autoUpdate"->(["autoUpdate", "sidebarCustomization", "overlayHiding"]);+>(["autoUpdate", "overlayHiding"]);export const AEC_MODE_CONTROL_FLAG_KEY = "aec-mode-control";export const AUTO_UPDATE_CONTROL_FLAG_KEY = "auto-update-control";@@ -93,7 +88,6 @@ export type DesktopRemotePreferences = {smartRecording: boolean | null;filterMusic: boolean | null;prioritizeInputLatency: boolean | null;- sidebarCustomization: boolean | null;overlayHiding: boolean | null;aecMode: AecMode | null;};@@ -110,7 +104,6 @@ export type RemoteControllableSettings = {experimentalMeetingPiggyback?: boolean;filterMusic?: boolean;prioritizeInputLatency?: boolean;- enableSidebarCustomization?: boolean;allowHidingShortcutOverlay?: boolean;aecMode?: AecMode;screenpipeAecEnabled?: boolean;@@ -138,7 +131,6 @@ export const LOCAL_DESKTOP_REMOTE_POLICY: DesktopRemotePolicySnapshot = {smartRecording: localBooleanPolicy("smartRecording"),filterMusic: localBooleanPolicy("filterMusic"),prioritizeInputLatency: localBooleanPolicy("prioritizeInputLatency"),- sidebarCustomization: localBooleanPolicy("sidebarCustomization"),overlayHiding: localBooleanPolicy("overlayHiding"),},aecMode: {@@ -157,7 +149,6 @@ export const NEW_INSTALL_REMOTE_CONTROL_PREFERENCES: DesktopRemotePreferences =smartRecording: null,filterMusic: null,prioritizeInputLatency: null,- sidebarCustomization: null,overlayHiding: null,aecMode: null,};@@ -218,9 +209,6 @@ export function cloneLocalDesktopRemotePolicy(): DesktopRemotePolicySnapshot {prioritizeInputLatency: {...LOCAL_DESKTOP_REMOTE_POLICY.boolean.prioritizeInputLatency,},- sidebarCustomization: {- ...LOCAL_DESKTOP_REMOTE_POLICY.boolean.sidebarCustomization,- },overlayHiding: { ...LOCAL_DESKTOP_REMOTE_POLICY.boolean.overlayHiding },},aecMode: { ...LOCAL_DESKTOP_REMOTE_POLICY.aecMode },@@ -313,7 +301,11 @@ export function normalizeDesktopRemotePolicySnapshot() as BooleanRemoteControlKey[];if (Object.keys(boolean).some(- (key) => !controlKeys.includes(key as BooleanRemoteControlKey),+ // Sidebar customization graduated from its rollout. Accept and drop the+ // old snapshot key so upgrading does not reset unrelated remote policy.+ (key) =>+ key !== "sidebarCustomization" &&+ !controlKeys.includes(key as BooleanRemoteControlKey),) ||!isAecModeRemotePolicy(candidate.aecMode)) {@@ -378,12 +370,6 @@ export function readDesktopRemotePolicySnapshot(BOOLEAN_REMOTE_CONTROL_DEFINITIONS.prioritizeInputLatency.flagKey,),),- sidebarCustomization: parseBooleanRemotePolicy(- "sidebarCustomization",- payloadForFlag(- BOOLEAN_REMOTE_CONTROL_DEFINITIONS.sidebarCustomization.flagKey,- ),- ),overlayHiding: parseBooleanRemotePolicy("overlayHiding",payloadForFlag(@@ -500,11 +486,6 @@ export function normalizeDesktopRemotePreferences()? current.prioritizeInputLatency: Boolean(settings.prioritizeInputLatency ?? false),- sidebarCustomization: validBooleanPreference(current?.sidebarCustomization)- ? current.sidebarCustomization- : // Existing installs never chose; leave them on the rollout default- // instead of freezing today's (off) value as an explicit opt-out.- null,// Always null. Nothing lets a user grant themselves the ability to hide// the overlay, so this control must track the remote default forever — a// seeded `false` would make flipping the flag on a no-op.@@ -617,13 +598,6 @@ export function buildDesktopRemoteControlPatch(settings.platform,parseManagedBoolean(managed.prioritizeInputLatency),),- sidebarCustomization: resolveBooleanRemoteControlValue(- "sidebarCustomization",- preferences.sidebarCustomization,- booleanPolicyOf(policy, "sidebarCustomization"),- settings.platform,- parseManagedBoolean(managed.enableSidebarCustomization),- ),overlayHiding: resolveBooleanRemoteControlValue("overlayHiding",preferences.overlayHiding,@@ -683,14 +657,6 @@ export function buildDesktopRemoteControlPatch(changedControls.push("prioritizeInputLatency");}- if (- Boolean(settings.enableSidebarCustomization) !==- effective.sidebarCustomization- ) {- patch.enableSidebarCustomization = effective.sidebarCustomization;- changedControls.push("sidebarCustomization");- }-if (Boolean(settings.allowHidingShortcutOverlay) !== effective.overlayHiding) {diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsxindex d2b035c8a..ceff44a6a 100644--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx@@ -458,11 +458,6 @@ export type Settings = SettingsStore & {* Meetings ships hidden, which is what puts its compact icon in the* top-left chrome strip instead. See `lib/utils/sidebar-nav-layout`. */sidebarNavLayout?: SidebarNavLayout;- /** Rollout gate for right-click + drag sidebar customization. Owned by the- * typed PostHog registry (`sidebar-customization-control`); a persisted- * layout is still honored when the gate is off, so turning the flag off- * removes the editing affordances without resetting anyone's sidebar. */- enableSidebarCustomization?: boolean;/** Show the chat suggestion chips above the input — the "follow up"* questions and the connection-aware suggested prompts. The single inline* X on the chips flips this to false; re-enable from Settings → Display.@@ -831,7 +826,6 @@ let DEFAULT_SETTINGS: Settings = {meetingSummaryPipeSlug: "meeting-summary",filterMusic: true,prioritizeInputLatency: false,- enableSidebarCustomization: false,allowHidingShortcutOverlay: false,showShortcutOverlay: true,shortcutOverlaySnoozedUntil: null,diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rsindex e12f6636d..1dcc6f7f4 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs@@ -1650,7 +1650,6 @@ Rules:"smartRecording": null,"filterMusic": null,"prioritizeInputLatency": null,- "sidebarCustomization": null,"aecMode": null,}),),@@ -1679,13 +1678,6 @@ Rules:"defaultEnabled": false,"forceDisabled": false,},- // UI-only rollout gate: no engine setting to clamp, so- // its force-off is applied by the frontend registry- // rather than the recording-settings pass below.- "sidebarCustomization": {- "defaultEnabled": false,- "forceDisabled": false,- },},"aecMode": {"defaultValue": "off",diff --git a/docs/pr-assets/sidebar-customization-restored/sidebar-customization-states-dark.png b/docs/pr-assets/sidebar-customization-restored/sidebar-customization-states-dark.pngnew file mode 100644index 000000000..a5f3b51cbBinary files /dev/null and b/docs/pr-assets/sidebar-customization-restored/sidebar-customization-states-dark.png differdiff --git a/docs/pr-assets/sidebar-customization-restored/sidebar-customization-states-light.png b/docs/pr-assets/sidebar-customization-restored/sidebar-customization-states-light.pngnew file mode 100644index 000000000..308bad254Binary files /dev/null and b/docs/pr-assets/sidebar-customization-restored/sidebar-customization-states-light.png differ