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
release-app - fix: pipe exisiting use case
Louis Beaumonte54e3ded2c1d
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 6178426af..20623bb53 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.14.26"+version = "0.14.27"description = ""authors = ["you"]license = ""diff --git a/screenpipe-core/src/pipes.rs b/screenpipe-core/src/pipes.rsindex 377780ba2..18d0785cf 100644--- a/screenpipe-core/src/pipes.rs+++ b/screenpipe-core/src/pipes.rs@@ -315,7 +315,7 @@ mod pipes {// Update pipe.json to indicate it's a Next.js projectlet mut pipe_config = if let Some(existing_json) = &existing_config {- serde_json::from_str(&existing_json.as_str().unwrap())?+ existing_json.clone()} else if pipe_json_path.exists() {let pipe_json = tokio::fs::read_to_string(&pipe_json_path).await?;serde_json::from_str(&pipe_json)?diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rsindex 92727c202..74c6489be 100644--- a/screenpipe-server/src/bin/screenpipe-server.rs+++ b/screenpipe-server/src/bin/screenpipe-server.rs@@ -119,7 +119,27 @@ async fn main() -> anyhow::Result<()> {let local_data_dir = get_base_dir(&cli.data_dir)?;let local_data_dir_clone = local_data_dir.clone();- let _log_guard = setup_logging(&local_data_dir, &cli)?;+ // Only set up logging if we're not running a pipe command with JSON output+ let should_log = match &cli.command {+ Some(Command::Pipe { subcommand }) => {+ matches!(+ subcommand,+ PipeCommand::List { output: OutputFormat::Text } |+ PipeCommand::Download { output: OutputFormat::Text, .. } |+ PipeCommand::Info { output: OutputFormat::Text, .. } |+ PipeCommand::Enable { .. } |+ PipeCommand::Disable { .. } |+ PipeCommand::Update { .. } |+ PipeCommand::Purge { .. } |+ PipeCommand::Delete { .. }+ )+ }+ _ => true,+ };++ if should_log {+ let _log_guard = setup_logging(&local_data_dir, &cli)?;+ }let h = Highlight::init(HighlightConfig {project_id:String::from("82688"),@@ -465,9 +485,9 @@ async fn main() -> anyhow::Result<()> {"open source | runs locally | developer friendly".bright_green());- println!("┌─────────────────────┬────────────────────────────────────┐");+ println!("┌─────────────────────┬──────────��─────────────────────────┐");println!("│ setting │ value │");- println!("├───────────────────���─┼────────────────────────────────────┤");+ println!("├─────────────────────┼────────────────────────────────────┤");println!("│ fps │ {:<34} │", cli.fps);println!("│ audio chunk duration│ {:<34} │",