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
debug: add logging to check if user token is being passed
Louis Beaumontb41610df293c
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex 53bc01b96..cd8385d2c 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -6733,7 +6733,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]name = "screenpipe-app"-version = "2.0.207"+version = "2.0.208"dependencies = ["anyhow","async-stream",diff --git a/screenpipe-app-tauri/src-tauri/src/obsidian_sync.rs b/screenpipe-app-tauri/src-tauri/src/obsidian_sync.rsindex 498dec5e0..8e65239ad 100644--- a/screenpipe-app-tauri/src-tauri/src/obsidian_sync.rs+++ b/screenpipe-app-tauri/src-tauri/src/obsidian_sync.rs@@ -310,7 +310,10 @@ pub async fn obsidian_run_sync(// Build promptlet prompt = build_prompt(&settings, &start_time_str, &end_time_str);- // Run opencode+ // Debug: check if token is passed+ info!("obsidian_run_sync: user_token present = {}", user_token.is_some());++ // Run pilet result = pi::run(&prompt, user_token.as_deref()).await.map(|_| ());// Update status based on resultdiff --git a/screenpipe-app-tauri/src-tauri/src/pi.rs b/screenpipe-app-tauri/src-tauri/src/pi.rsindex 21479b526..53449921e 100644--- a/screenpipe-app-tauri/src-tauri/src/pi.rs+++ b/screenpipe-app-tauri/src-tauri/src/pi.rs@@ -116,7 +116,10 @@ pub async fn run(prompt: &str, user_token: Option<&str>) -> Result<String, Strincmd.arg("--model").arg(DEFAULT_MODEL);if let Some(token) = user_token {+ info!("pi::run: passing api-key (token length: {})", token.len());cmd.arg("--api-key").arg(token);+ } else {+ warn!("pi::run: no user_token provided!");}cmd.stdout(std::process::Stdio::piped());