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: meeting detection never triggers for new Microsoft Teams (Teams 2) on macOS (#2858)

Louis Beaumonta74e393e116c
diff --git a/crates/screenpipe-engine/src/meeting_detector.rs b/crates/screenpipe-engine/src/meeting_detector.rs
index 87998ad61..dd3631270 100644
--- a/crates/screenpipe-engine/src/meeting_detector.rs
+++ b/crates/screenpipe-engine/src/meeting_detector.rs
@@ -114,7 +114,7 @@ pub fn load_detection_profiles() -> Vec<MeetingDetectionProfile> {
// Microsoft Teams Desktop
MeetingDetectionProfile {
app_identifiers: AppIdentifiers {
- macos_app_names: &["microsoft teams", "teams"],
+ macos_app_names: &["microsoft teams", "teams", "msteams"],
windows_process_names: &["ms-teams.exe", "teams.exe"],
browser_url_patterns: &["teams.microsoft.com", "teams.live.com", "Microsoft Teams"],
browser_title_patterns: &[],
@@ -2510,6 +2510,8 @@ mod tests {
.contains(&"microsoft teams")
});
assert!(teams.is_some(), "Teams profile not found");
+ let teams_profile = teams.unwrap();
+ assert!(teams_profile.app_identifiers.macos_app_names.contains(&"msteams"), "MSTeams not added to macos_app_names");
}
#[test]
diff --git a/crates/screenpipe-engine/src/paired_capture.rs b/crates/screenpipe-engine/src/paired_capture.rs
index 5c477425d..93a8623d3 100644
--- a/crates/screenpipe-engine/src/paired_capture.rs
+++ b/crates/screenpipe-engine/src/paired_capture.rs
@@ -547,7 +547,7 @@ mod tests {
#[tokio::test]
async fn test_paired_capture_without_accessibility() {
let tmp = TempDir::new().unwrap();
- let snapshot_writer = SnapshotWriter::new(tmp.path(), 80);
+ let snapshot_writer = SnapshotWriter::new(tmp.path(), 80, 1920);
let db = DatabaseManager::new("sqlite::memory:", Default::default())
.await
.unwrap();
@@ -584,7 +584,7 @@ mod tests {
#[tokio::test]
async fn test_paired_capture_with_accessibility_text() {
let tmp = TempDir::new().unwrap();
- let snapshot_writer = SnapshotWriter::new(tmp.path(), 80);
+ let snapshot_writer = SnapshotWriter::new(tmp.path(), 80, 1920);
let db = DatabaseManager::new("sqlite::memory:", Default::default())
.await
.unwrap();
@@ -644,7 +644,7 @@ mod tests {
#[tokio::test]
async fn test_paired_capture_empty_accessibility_text() {
let tmp = TempDir::new().unwrap();
- let snapshot_writer = SnapshotWriter::new(tmp.path(), 80);
+ let snapshot_writer = SnapshotWriter::new(tmp.path(), 80, 1920);
let db = DatabaseManager::new("sqlite::memory:", Default::default())
.await
.unwrap();