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
allow warnings to build (not counted as error ...)
Louis Beaumontfc6c67e646b9
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 6fb7722b3..af917e1c1 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -191,11 +191,8 @@ jobs:- name: Build CLIshell: bash- # TODO: too slow- # env:- # CARGO_PROFILE_RELEASE_LTO: "true"- # CARGO_PROFILE_RELEASE_OPT_LEVEL: "z"- # CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "1"+ env:+ RUSTFLAGS: "-A warnings"run: |if [[ "${{ matrix.platform }}" == "macos-latest" ]]; thenexport PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"@@ -258,6 +255,7 @@ jobs:CARGO_PROFILE_RELEASE_CODEGEN_UNITS: ${{ matrix.args == '--target x86_64-pc-windows-msvc' && '16' || matrix.platform == 'ubuntu-22.04' && '1' || '16' }}# Enable incremental compilation for WindowsCARGO_INCREMENTAL: ${{ matrix.args == '--target x86_64-pc-windows-msvc' && '1' || '0' }}+ RUSTFLAGS: "-A warnings"with:args: ${{ matrix.tauri-args }}projectPath: "./screenpipe-app-tauri"diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rsindex 44a2baf09..75b8737e9 100644--- a/screenpipe-server/src/bin/screenpipe-server.rs+++ b/screenpipe-server/src/bin/screenpipe-server.rs@@ -16,7 +16,6 @@ use screenpipe_server::{cli::{Cli, CliAudioTranscriptionEngine, CliOcrEngine, Command, PipeCommand}, start_continuous_recording, watch_pid, DatabaseManager, PipeControl, PipeManager, ResourceMonitor, Server, highlight::{Highlight,HighlightConfig}};use screenpipe_vision::monitor::list_monitors;-use screenpipe_vision::run_ui;use serde_json::{json, Value};use tokio::{runtime::Runtime, signal, sync::broadcast};use tracing_subscriber::prelude::__tracing_subscriber_SubscriberExt;@@ -720,21 +719,24 @@ async fn main() -> anyhow::Result<()> {}// Start the UI monitoring task- #[cfg(target_os = "macos")]- if cli.enable_ui_monitoring {- let shutdown_tx_clone = shutdown_tx.clone();- tokio::spawn(async move {- let mut shutdown_rx = shutdown_tx_clone.subscribe();-- tokio::select! {- _ = run_ui() => {- error!("ui monitoring stopped unexpectedly");- }- _ = shutdown_rx.recv() => {- info!("received shutdown signal, stopping ui monitoring");+ if cfg!(target_os = "macos") {+ use screenpipe_vision::run_ui;++ if cli.enable_ui_monitoring {+ let shutdown_tx_clone = shutdown_tx.clone();+ tokio::spawn(async move {+ let mut shutdown_rx = shutdown_tx_clone.subscribe();++ tokio::select! {+ _ = run_ui() => {+ error!("ui monitoring stopped unexpectedly");+ }+ _ = shutdown_rx.recv() => {+ info!("received shutdown signal, stopping ui monitoring");+ }}- }- });+ });+ }}let pipe_control_future = async {