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
Bump app to v2.2.26
Louis Beaumontfb91f592b939
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 9e63cc915..28df5bcc6 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.2.25"+version = "2.2.26"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/livetext_bridge.swift b/apps/screenpipe-app-tauri/src-tauri/swift/livetext_bridge.swiftindex 84d30df37..3c25b3270 100644--- a/apps/screenpipe-app-tauri/src-tauri/swift/livetext_bridge.swift+++ b/apps/screenpipe-app-tauri/src-tauri/swift/livetext_bridge.swift@@ -293,30 +293,32 @@ public func ltHighlightRanges(_ searchTermsJson: UnsafePointer<CChar>?) -> Int32!terms.isEmpty else { return -2 }let mgr = LiveTextManager.shared- guard let overlay = mgr.overlayView,- let analysis = mgr.currentAnalysis else { return -3 }-- // Use transcript from analysis (not overlay.text which requires MainActor)- let fullText = analysis.transcript-- // Search case-insensitively in the ORIGINAL string so indices are valid- // for overlay.selectedRanges. Using lowercased() creates a new string- // whose indices are incompatible — causes fatal "String index out of bounds".- var ranges: [Range<String.Index>] = []- for term in terms {- var searchStart = fullText.startIndex- while let range = fullText.range(of: term, options: .caseInsensitive, range: searchStart..<fullText.endIndex) {- ranges.append(range)- searchStart = range.upperBound- }- }-- mainThreadPreservingFocus(mgr.hostContentView) {+ guard let overlay = mgr.overlayView else { return -3 }++ // MUST compute ranges from overlay.text (not analysis.transcript) because+ // selectedRanges indices must be valid for the overlay's own String instance.+ // Different String instances have incompatible index storage — using+ // analysis.transcript indices causes "String index is out of bounds" crash+ // when VisionKit converts Range<String.Index> → NSRange internally.+ var result: Int32 = 0+ DispatchQueue.main.sync {MainActor.assumeIsolated {+ let fullText = overlay.text+ guard !fullText.isEmpty else { result = -3; return }++ var ranges: [Range<String.Index>] = []+ for term in terms {+ var searchStart = fullText.startIndex+ while let range = fullText.range(of: term, options: .caseInsensitive, range: searchStart..<fullText.endIndex) {+ ranges.append(range)+ searchStart = range.upperBound+ }+ }overlay.selectedRanges = ranges+ result = Int32(ranges.count)}}- return Int32(ranges.count)+ return result}#endifreturn -1