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(ci): format profile memory prompt tests (#5684)
Louis Beaumontc832862de10d
diff --git a/crates/screenpipe-core/tests/profile_memory_prompt.rs b/crates/screenpipe-core/tests/profile_memory_prompt.rsindex 82092583d..78709efc2 100644--- a/crates/screenpipe-core/tests/profile_memory_prompt.rs+++ b/crates/screenpipe-core/tests/profile_memory_prompt.rs@@ -7,8 +7,9 @@ use std::path::PathBuf;#[test]fn pipe_system_prompt_source_includes_profile_memory_guidance() {- let source = fs::read_to_string(PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("src/pipes/mod.rs"))- .expect("read pipes mod.rs");+ let source =+ fs::read_to_string(PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("src/pipes/mod.rs"))+ .expect("read pipes mod.rs");assert!(source.contains("Profile memory:"));assert!(source.contains("keep a compact running user profile"));@@ -18,10 +19,18 @@ fn pipe_system_prompt_source_includes_profile_memory_guidance() {#[test]fn pipe_system_prompt_source_keeps_connection_policy_near_profile_memory() {- let source = fs::read_to_string(PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("src/pipes/mod.rs"))- .expect("read pipes mod.rs");+ let source =+ fs::read_to_string(PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("src/pipes/mod.rs"))+ .expect("read pipes mod.rs");- let connection_idx = source.find("Connection write policy:").expect("connection policy present");- let profile_idx = source.find("Profile memory:").expect("profile memory present");- assert!(profile_idx > connection_idx, "profile memory should be appended after connection policy context");+ let connection_idx = source+ .find("Connection write policy:")+ .expect("connection policy present");+ let profile_idx = source+ .find("Profile memory:")+ .expect("profile memory present");+ assert!(+ profile_idx > connection_idx,+ "profile memory should be appended after connection policy context"+ );}