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

Preserve generated contribution command documentation

Ezra Ellettef1591984efc0
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/feedback_redact.rs b/apps/screenpipe-app-tauri/src-tauri/src/feedback_redact.rs
index 6687616e9..2ed6f1582 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/feedback_redact.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/feedback_redact.rs
@@ -453,8 +453,7 @@ mod tests {
}
}
-/// Strict contribution redaction. No regex-only fallback, no content-bearing
-/// errors or capture settings. The enclave windows long inputs with overlap.
+// Strict contribution redaction uses the enclave's overlapping token windows.
static CONTRIBUTION_REDACTION: std::sync::LazyLock<Value> = std::sync::LazyLock::new(|| {
serde_json::from_str(include_str!(
"../../lib/trajectories/redaction-contract.json"
@@ -475,6 +474,8 @@ fn contribution_fits_enclave(text: &str) -> bool {
.unwrap() as usize
}
+/// Strict contribution redaction. No regex-only fallback, no content-bearing
+/// errors, no capture settings, and no chunk boundaries through identifiers.
#[tauri::command]
#[specta::specta]
pub async fn redact_workflow_contribution(text: String) -> Result<String, String> {