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

Bump app to v2.5.116 - release-app

Louis Beaumont8abea62931f8
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 2fd180019..5eff8732a 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -10939,7 +10939,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.5.115"
+version = "2.5.116"
dependencies = [
"aes 0.8.4",
"aes-gcm 0.10.3",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index c17cbbeec..343246201 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -2,7 +2,7 @@
[package]
name = "screenpipe-app"
-version = "2.5.115"
+version = "2.5.116"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/crates/screenpipe-db/src/db/meetings.rs b/crates/screenpipe-db/src/db/meetings.rs
index 1da032e3e..1365d45e3 100644
--- a/crates/screenpipe-db/src/db/meetings.rs
+++ b/crates/screenpipe-db/src/db/meetings.rs
@@ -855,6 +855,11 @@ impl DatabaseManager {
// COALESCE(is_input_device, 1) keeps the old NULL-defaults-to-input
// behaviour. Resolved segments drop out of the candidate set, so
// steady-state work is just newly-mirrored segments.
+ //
+ // Calculate proximity from rounded epoch milliseconds rather than a
+ // julianday delta. Equal offsets around a timestamp can differ by one
+ // floating-point ULP in julianday(), which would bypass the documented
+ // timestamp/id tie breakers.
const PER_PASS_LIMIT: i64 = 500;
let mut tx = self.begin_immediate_with_retry().await?;
let r = sqlx::query(
@@ -868,7 +873,10 @@ impl DatabaseManager {
SELECT c.id AS seg_id, at.speaker_id AS sid, \
ROW_NUMBER() OVER ( \
PARTITION BY c.id \
- ORDER BY ABS(julianday(at.timestamp) - julianday(c.captured_at)), \
+ ORDER BY ABS( \
+ CAST(ROUND(unixepoch(at.timestamp, 'subsec') * 1000.0) AS INTEGER) - \
+ CAST(ROUND(unixepoch(c.captured_at, 'subsec') * 1000.0) AS INTEGER) \
+ ), \
at.timestamp, at.id \
) AS rn \
FROM cand c \
diff --git a/crates/screenpipe-db/tests/timeline_live_meeting_test.rs b/crates/screenpipe-db/tests/timeline_live_meeting_test.rs
index b8ffe30b6..625912a2a 100644
--- a/crates/screenpipe-db/tests/timeline_live_meeting_test.rs
+++ b/crates/screenpipe-db/tests/timeline_live_meeting_test.rs
@@ -609,7 +609,11 @@ mod timeline_live_meeting_tests {
#[tokio::test]
async fn test_speaker_backfill_matches_reference_and_breaks_ties_deterministically() {
let db = setup_test_db().await;
- let base = Utc::now();
+ // This millisecond phase makes julianday() represent +2s as one ULP
+ // nearer than -2s, reproducing the old incorrect tie resolution.
+ let base = "2026-07-16T20:22:07Z"
+ .parse::<chrono::DateTime<Utc>>()
+ .unwrap();
let meeting_id = db
.insert_meeting("zoom.us", "test", Some("tie test"), None)
.await
@@ -658,12 +662,19 @@ mod timeline_live_meeting_tests {
.unwrap();
// Reference implementation: the old nearest-row lookup plus explicit
- // timestamp/id tie breakers.
+ // timestamp/id tie breakers. Use integer epoch milliseconds so equal
+ // offsets remain exactly equal before applying those tie breakers.
let expected: i64 = sqlx::query_scalar(
"SELECT speaker_id FROM audio_transcriptions \
WHERE speaker_id IS NOT NULL AND COALESCE(is_input_device, 1) = 0 \
- AND ABS(julianday(timestamp) - julianday(?1)) <= (10.0 / 86400.0) \
- ORDER BY ABS(julianday(timestamp) - julianday(?1)), timestamp, id LIMIT 1",
+ AND ABS( \
+ CAST(ROUND(unixepoch(timestamp, 'subsec') * 1000.0) AS INTEGER) - \
+ CAST(ROUND(unixepoch(?1, 'subsec') * 1000.0) AS INTEGER) \
+ ) <= 10000 \
+ ORDER BY ABS( \
+ CAST(ROUND(unixepoch(timestamp, 'subsec') * 1000.0) AS INTEGER) - \
+ CAST(ROUND(unixepoch(?1, 'subsec') * 1000.0) AS INTEGER) \
+ ), timestamp, id LIMIT 1",
)
.bind(base)
.fetch_one(&db.pool)
@@ -722,7 +733,10 @@ mod timeline_live_meeting_tests {
"EXPLAIN QUERY PLAN SELECT id FROM audio_transcriptions \
INDEXED BY idx_audio_transcriptions_timestamp \
WHERE timestamp >= ?1 AND timestamp <= ?2 \
- ORDER BY ABS(julianday(timestamp) - julianday(?3)), timestamp, id LIMIT 1",
+ ORDER BY ABS( \
+ CAST(ROUND(unixepoch(timestamp, 'subsec') * 1000.0) AS INTEGER) - \
+ CAST(ROUND(unixepoch(?3, 'subsec') * 1000.0) AS INTEGER) \
+ ), timestamp, id LIMIT 1",
)
.bind(base - Duration::seconds(15))
.bind(base + Duration::seconds(15))