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
feat: support file path links in native notification panel
Louis Beaumont2324dfa0da21
diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swiftindex 3bbabe7e8..ee8c83483 100644--- a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift+++ b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift@@ -368,8 +368,15 @@ struct MarkdownText: View {let urlStart = afterClose.index(after: afterClose.startIndex)let urlPart = afterClose[urlStart...]if let closeParen = urlPart.firstIndex(of: ")") {- let urlStr = String(urlPart[urlPart.startIndex..<closeParen])- if let url = URL(string: urlStr) {+ var urlStr = String(urlPart[urlPart.startIndex..<closeParen])+ // Support bare file paths: /path/to/file or ~/path/to/file+ if urlStr.hasPrefix("~/") {+ urlStr = NSString(string: urlStr).expandingTildeInPath+ }+ if urlStr.hasPrefix("/") && !urlStr.hasPrefix("//") {+ urlStr = "file://" + urlStr+ }+ if let url = URL(string: urlStr.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? urlStr) ?? URL(string: urlStr) {var linkAttr = AttributedString(String(linkText))linkAttr.link = urllinkAttr.underlineStyle = .single