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(app): disable trackpad history swipes (#6590)

Ezra Ellette3c41a5910a41
diff --git a/apps/screenpipe-app-tauri/app/(main)/layout.tsx b/apps/screenpipe-app-tauri/app/(main)/layout.tsx
index d97b4e6f3..e8b63bcce 100644
--- a/apps/screenpipe-app-tauri/app/(main)/layout.tsx
+++ b/apps/screenpipe-app-tauri/app/(main)/layout.tsx
@@ -15,25 +15,15 @@
import { AppSidebarLayout, SidebarProvider } from "@/components/app-sidebar";
import { CardAskProvider } from "@/components/card-ask-provider";
-import { HistorySwipeIndicator } from "@/components/history-swipe-indicator";
-import { useExperimentalFeaturesEnabled } from "@/lib/experimental-features";
export default function MainLayout({
children,
}: {
children: React.ReactNode;
}) {
- const experimentalFeaturesEnabled = useExperimentalFeaturesEnabled();
- const historySwipeIndicatorEnabled =
- experimentalFeaturesEnabled ||
- process.env.NEXT_PUBLIC_SCREENPIPE_E2E === "true";
-
return (
<SidebarProvider>
- <AppSidebarLayout>
- {children}
- <HistorySwipeIndicator enabled={historySwipeIndicatorEnabled} />
- </AppSidebarLayout>
+ <AppSidebarLayout>{children}</AppSidebarLayout>
{/*
Mounted here, not at "/" — the root route is a deliberate no-op so no
window executes another window's code. This layout is the main window
diff --git a/apps/screenpipe-app-tauri/app/layout.tsx b/apps/screenpipe-app-tauri/app/layout.tsx
index d036db013..e930fdb40 100644
--- a/apps/screenpipe-app-tauri/app/layout.tsx
+++ b/apps/screenpipe-app-tauri/app/layout.tsx
@@ -75,12 +75,10 @@ function RecentChatSwitcherMount() {
);
}
-function ExperimentalFeatureControls() {
- const enabled = useExperimentalFeaturesEnabled();
-
+function WebviewGestureControls() {
useEffect(() => {
- void commands.setHistorySwipeNavigationEnabled(enabled).catch(() => {});
- }, [enabled]);
+ void commands.setHistorySwipeNavigationEnabled(false).catch(() => {});
+ }, []);
return null;
}
@@ -316,7 +314,7 @@ export default function RootLayout({
{!isOverlay && <ShortcutTracker />}
{!isOverlay && <PipeInstallDialog />}
{!isOverlay && <BrowserPairingDialog />}
- <ExperimentalFeatureControls />
+ <WebviewGestureControls />
<Suspense fallback={null}>
<RecentChatSwitcherMount />
</Suspense>