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: char boundary panic in suggestions on multi-byte window titles
Louis Beaumont60096fb9a594
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rsindex e05644fc9..1912d956e 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs@@ -350,8 +350,9 @@ fn browsing_suggestions(windows: &[WindowActivity]) -> Vec<Suggestion> {.collect();for w in browser_windows {- let title = if w.window_name.len() > 35 {- format!("{}...", &w.window_name[..32.min(w.window_name.len())])+ let title = if w.window_name.chars().count() > 35 {+ let truncated: String = w.window_name.chars().take(32).collect();+ format!("{}...", truncated)} else {w.window_name.clone()};