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

chore: increase delay pipe

Louis Beaumont36f3ff4cd7ab
diff --git a/examples/typescript/pipe-email-daily-log/pipe.ts b/examples/typescript/pipe-email-daily-log/pipe.ts
index 14f5f3d68..47b592458 100644
--- a/examples/typescript/pipe-email-daily-log/pipe.ts
+++ b/examples/typescript/pipe-email-daily-log/pipe.ts
@@ -176,7 +176,7 @@ async function generateDailySummary(
async function retry<T>(
fn: () => Promise<T>,
maxAttempts: number = 3,
- delay: number = 1000
+ delay: number = 3000
): Promise<T> {
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
try {
diff --git a/screenpipe-core/tests/pipes_test.rs b/screenpipe-core/tests/pipes_test.rs
index 85e72d7d3..c940799e2 100644
--- a/screenpipe-core/tests/pipes_test.rs
+++ b/screenpipe-core/tests/pipes_test.rs
@@ -234,7 +234,7 @@ mod tests {
}
#[tokio::test]
- #[ignore]
+ #[ignore]
async fn test_send_email() {
let temp_dir = TempDir::new().unwrap();
let screenpipe_dir = temp_dir.path().to_path_buf();
@@ -252,8 +252,25 @@ mod tests {
to: "{to}",
from: "{from}",
password: "{password}",
- subject: "Test Email from Screenpipe",
- body: "This is a test email sent from the Screenpipe unit test."
+ subject: "bro - got some good stuff from screenpipe",
+ body: `
+yo louis, you absolute madlad!
+
+here's the lowdown on your day, you productivity ninja:
+
+- absolutely demolished that 2-hour coding sesh on the new feature. the keyboard is still smoking, bro!
+- crushed 3 client calls like a boss. they're probably writing love letters to you as we speak, make sure to close john tomorrow 8.00 am according to our notes, let the cash flow in!
+- spent 45 mins on slack. 90% memes, 10% actual work. perfectly balanced, as all things should be
+- watched a rust tutorial. way to flex those brain muscles, you nerd!
+
+overall, you're killing it! 80% of your time on high-value tasks. the other 20%? probably spent admiring your own reflection, you handsome devil.
+
+PS: seriously, quit tiktok. your FBI agent is getting bored watching you scroll endlessly.
+
+what's the plan for tomorrow? more coding? more memes? world domination?
+
+generated by your screenpipe ai assistant (who's definitely not planning to take over the world... yet)
+`
}});
console.log("Email sent:", result);
if (!result) {{