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 ci
Louis Beaumont96bddd9fbc1b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 6432d7270..3e516618e 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -23,7 +23,7 @@ jobs:- name: Install dependenciesrun: |sudo apt-get update- sudo apt-get install -y libavformat-dev libavfilter-dev libavdevice-dev ffmpeg libasound2-dev libgtk-3-dev+ sudo apt-get install -y libavformat-dev libavfilter-dev libavdevice-dev ffmpeg libasound2-dev libgtk-3-dev libsoup-3.0-dev- name: Run testsrun: cargo testdiff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex cb938646c..80cc1d028 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -85,4 +85,4 @@ jobs:prerelease: trueargs: ${{ matrix.args }}projectPath: "./examples/apps/screenpipe-app-tauri"- tauriScript: bunx tauri+ tauriScript: bunx tauri -vdiff --git a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.jsonindex b8246be2f..cd1d30883 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json+++ b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json@@ -4,7 +4,7 @@"beforeDevCommand": "bun run dev","beforeBuildCommand": "bun run build","frontendDist": "../out",- "devUrl": "http://localhost:1420"+ "devUrl": "http://localhost:3000"},"bundle": {"active": true,diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rsindex 5c966ae9a..1d80b5d5f 100644--- a/screenpipe-audio/src/core.rs+++ b/screenpipe-audio/src/core.rs@@ -141,8 +141,8 @@ async fn run_ffmpeg(output_path.to_str().unwrap(),]).stdin(Stdio::piped())- .stdout(Stdio::null())- .stderr(Stdio::null())+ .stdout(Stdio::piped())+ .stderr(Stdio::piped()).spawn()?;debug!("FFmpeg process spawned");let mut stdin = ffmpeg.stdin.take().expect("Failed to open stdin");@@ -172,8 +172,20 @@ async fn run_ffmpeg(debug!("Dropping stdin");drop(stdin);debug!("Waiting for FFmpeg process to exit");- let status = ffmpeg.wait().await?;+ let output = ffmpeg.wait_with_output().await?;+ let status = output.status;+ let stdout = String::from_utf8_lossy(&output.stdout);+ let stderr = String::from_utf8_lossy(&output.stderr);+debug!("FFmpeg process exited with status: {}", status);+ debug!("FFmpeg stdout: {}", stdout);+ debug!("FFmpeg stderr: {}", stderr);++ if !status.success() {+ error!("FFmpeg process failed with status: {}", status);+ error!("FFmpeg stderr: {}", stderr);+ return Err(anyhow!("FFmpeg process failed"));+ }Ok(())}diff --git a/screenpipe-server/src/core.rs b/screenpipe-server/src/core.rsindex be33030b3..949363cbd 100644--- a/screenpipe-server/src/core.rs+++ b/screenpipe-server/src/core.rs@@ -261,14 +261,14 @@ async fn record_audio(}async fn process_audio_result(db: &DatabaseManager, result: TranscriptionResult) {- info!("Inserting audio chunk: {:?}", result.transcription);if result.error.is_some() || result.transcription.is_none() {error!(- "Error in audio recording: {}",+ "Error in audio recording: {}. Not inserting audio result",result.error.unwrap_or_default());return;}+ info!("Inserting audio chunk: {:?}", result.transcription);let transcription = result.transcription.unwrap();match db.insert_audio_chunk(&result.input.path).await {Ok(audio_chunk_id) => {