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: enable_pipe must update local overrides to prevent reload revert

Louis Beaumontf2eb00142bd6
diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rs
index 64ae5032a..1a1b8055e 100644
--- a/crates/screenpipe-core/src/pipes/mod.rs
+++ b/crates/screenpipe-core/src/pipes/mod.rs
@@ -2212,6 +2212,11 @@ impl PipeManager {
let new_content = serialize_pipe(&config, &body)?;
std::fs::write(&pipe_md, &new_content)?;
+ // Persist to local overrides so reload_pipes() doesn't revert this
+ if let Err(e) = set_local_override(&self.pipes_dir, name, enabled) {
+ warn!("failed to save local enabled override for '{}': {}", name, e);
+ }
+
// Update in-memory
let mut pipes = self.pipes.lock().await;
if let Some(entry) = pipes.get_mut(name) {