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: notification manage button, font warnings, and panel position
Louis Beaumont965a71671ffb
diff --git a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx b/apps/screenpipe-app-tauri/app/notification-panel/page.tsxindex bf95224c2..69e508fe4 100644--- a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx+++ b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx@@ -540,7 +540,7 @@ export default function NotificationPanelPage() {onClick={async () => {await hide(false);await emit("navigate", { url: "/home?section=notifications" });- try { await invoke("show_window", { window: "home" }); } catch {}+ try { await invoke("show_window", { window: { Home: { page: null } } }); } catch {}}}style={{fontSize: "9px",diff --git a/apps/screenpipe-app-tauri/components/notification-handler.tsx b/apps/screenpipe-app-tauri/components/notification-handler.tsxindex 922cc3172..f378db052 100644--- a/apps/screenpipe-app-tauri/components/notification-handler.tsx+++ b/apps/screenpipe-app-tauri/components/notification-handler.tsx@@ -119,7 +119,7 @@ const NotificationHandler: React.FC = () => {const { emit } = await import("@tauri-apps/api/event");const { invoke } = await import("@tauri-apps/api/core");await emit("navigate", { url: "/home?section=notifications" });- try { await invoke("show_window", { window: "home" }); } catch {}+ try { await invoke("show_window", { window: { Home: { page: null } } }); } catch {}return;}diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swiftindex c43eba286..f57f64faa 100644--- a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift+++ b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift@@ -92,8 +92,22 @@ private enum Brand {}static func swiftUIMonoFont(size: CGFloat, weight: Font.Weight = .regular) -> Font {- // Try IBM Plex Mono, fall back to system monospaced- return Font.custom("IBM Plex Mono", size: size).weight(weight)+ // Use exact PostScript names to avoid SwiftUI weight descriptor warnings.+ // Font.custom + .weight() fails because IBM Plex Mono doesn't support+ // dynamic weight via font descriptor — must use the specific face name.+ let name: String+ switch weight {+ case .medium: name = "IBMPlexMono-Medium"+ case .semibold, .bold: name = "IBMPlexMono-SemiBold"+ case .light: name = "IBMPlexMono-Light"+ default: name = "IBMPlexMono"+ }+ // fixedSize: true prevents SwiftUI from adjusting with Dynamic Type+ if NSFont(name: name, size: size) != nil {+ return Font.custom(name, fixedSize: size)+ }+ // Fallback to system monospaced+ return Font.system(size: size, weight: weight, design: .monospaced)}static let animDuration: Double = 0.15@@ -497,8 +511,10 @@ class NotificationPanelController: NSObject {let mouseLocation = NSEvent.mouseLocationfor screen in NSScreen.screens {if NSMouseInRect(mouseLocation, screen.frame, false) {- let x = screen.frame.origin.x + screen.frame.size.width - 320 - 16- let y = screen.frame.origin.y + screen.frame.size.height - 180 - 12+ // Use visibleFrame to avoid overlapping the menu bar / notch area+ let visible = screen.visibleFrame+ let x = visible.origin.x + visible.size.width - 320 - 16+ let y = visible.origin.y + visible.size.height - 180 - 8panel.setFrameOrigin(NSPoint(x: x, y: y))break}