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(chat): enable existing context-pruning extension (#6966)

Ezra Ellette1d35813af445
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
index 9d0efdef1..8ceb9b4d5 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
@@ -2927,6 +2927,13 @@ pub async fn pi_start_inner(
.map(|agent| agent.id.as_str())
== Some("pi-acp");
+ if !use_acp || is_pi_acp {
+ screenpipe_core::agents::pi::PiExecutor::ensure_context_pruning_extension(
+ std::path::Path::new(&project_dir),
+ )
+ .map_err(|e| format!("Failed to install context guard: {}", e))?;
+ }
+
// ACP agents receive Screenpipe via MCP during session/new. Pi-only
// extensions and packages must not be installed or required there — except
// pi-acp, which is pi and can't consume the MCP servers.