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: preserve notification line buffer when reaching line limit

Louis Beaumontce091bc20492
diff --git a/crates/screenpipe-overlay-win/src/render.rs b/crates/screenpipe-overlay-win/src/render.rs
index db714f73b..0c3e84b73 100644
--- a/crates/screenpipe-overlay-win/src/render.rs
+++ b/crates/screenpipe-overlay-win/src/render.rs
@@ -72,7 +72,7 @@ fn notification_body_lines(text: &str, max_chars: usize, max_lines: usize) -> Ve
line = candidate;
} else {
if !line.is_empty() {
- lines.push(line);
+ lines.push(std::mem::take(&mut line));
if lines.len() == max_lines {
break;
}