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 literal \n not rendering as line breaks in Swift notification panel

Louis Beaumontc8ec67667d40
diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
index 24367e519..ee7e9fe7c 100644
--- a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
+++ b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
@@ -320,7 +320,8 @@ struct MarkdownText: View {
let raw: String
init(_ text: String) {
- self.raw = text
+ // Replace literal \n sequences with actual newlines
+ self.raw = text.replacingOccurrences(of: "\\n", with: "\n")
}
var body: some View {