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: skip OS notifications on Linux to prevent tokio runtime panic
Louis Beaumonte8419842d9b8
diff --git a/apps/screenpipe-app-tauri/components/notification-handler.tsx b/apps/screenpipe-app-tauri/components/notification-handler.tsxindex fa60bc17b..fc558d913 100644--- a/apps/screenpipe-app-tauri/components/notification-handler.tsx+++ b/apps/screenpipe-app-tauri/components/notification-handler.tsx@@ -5,13 +5,21 @@ import React, { useEffect } from "react";import {isPermissionGranted,requestPermission,- sendNotification,+ sendNotification as _sendNotification,} from "@tauri-apps/plugin-notification";+import { platform } from "@tauri-apps/plugin-os";import { listen } from "@tauri-apps/api/event";import { showNotificationPanel } from "@/lib/hooks/use-notification-panel";import { showChatWithPrefill } from "@/lib/chat-utils";+// notify_rust on Linux calls block_on for D-Bus inside the tokio runtime,+// which panics and kills the worker thread. Skip OS notifications on Linux.+function sendNotification(options: { title: string; body: string }) {+ if (platform() === "linux") return;+ _sendNotification(options);+}+type NotificationRequested = {title: string;body: string;