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: pass pipe system prompt on manual runs + add google provider API key
Louis Beaumont047d2286dbae
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rsindex e8f371c90..4d9dbb430 100644--- a/crates/screenpipe-core/src/agents/pi.rs+++ b/crates/screenpipe-core/src/agents/pi.rs@@ -520,6 +520,9 @@ impl PiExecutor {"custom" => {cmd.env("CUSTOM_API_KEY", key);}+ "google" => {+ cmd.env("GOOGLE_API_KEY", key);+ }// Ensure screenpipe API key is set as env var fallback"screenpipe" if self.user_token.is_none() => {cmd.env("SCREENPIPE_API_KEY", key);@@ -630,6 +633,9 @@ impl PiExecutor {"custom" => {cmd.env("CUSTOM_API_KEY", key);}+ "google" => {+ cmd.env("GOOGLE_API_KEY", key);+ }// Ensure screenpipe API key is set as env var fallback"screenpipe" if self.user_token.is_none() => {cmd.env("SCREENPIPE_API_KEY", key);diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rsindex 4782c1ef5..26476bcf3 100644--- a/crates/screenpipe-core/src/pipes/mod.rs+++ b/crates/screenpipe-core/src/pipes/mod.rs@@ -1351,6 +1351,8 @@ impl PipeManager {let pipe_dir = self.pipes_dir.clone().join(name);+ let pipe_system_prompt =+ render_pipe_system_prompt(&body, self.api_port, preset_prompt.as_deref());let prompt = self.render_prompt(&config, &body, preset_prompt.as_deref());let pipe_name = name.to_string();@@ -1445,7 +1447,7 @@ impl PipeManager {Some(pid_tx),line_tx,history_enabled,- None, // manual run — gateway-side caching still applies+ Some(&pipe_system_prompt),),).await;@@ -1766,6 +1768,8 @@ impl PipeManager {.unwrap_or(false);// Build prompt with context header+ let pipe_system_prompt =+ render_pipe_system_prompt(&body, self.api_port, preset_prompt.as_deref());let prompt = self.render_prompt(&config, &body, preset_prompt.as_deref());// Create a channel so the executor can report PID immediately@@ -1851,7 +1855,7 @@ impl PipeManager {Some(pid_tx),line_tx,history_enabled,- None, // manual run — gateway-side caching still applies+ Some(&pipe_system_prompt),),).await;