From 9d55baefabecc7a28a51403aed0573bba04e9c16 Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Fri, 22 May 2026 21:26:52 -0400 Subject: [PATCH] fix(desktop): find bundled sidecars in production DMG builds (#731) --- desktop/src-tauri/src/managed_agents/discovery.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/desktop/src-tauri/src/managed_agents/discovery.rs b/desktop/src-tauri/src/managed_agents/discovery.rs index 4a47f061c..683bb1431 100644 --- a/desktop/src-tauri/src/managed_agents/discovery.rs +++ b/desktop/src-tauri/src/managed_agents/discovery.rs @@ -229,11 +229,9 @@ fn command_search_dirs(app: Option<&AppHandle>) -> Vec { dirs.push(current_dir.join("target/debug")); } - if app.is_some() { - if let Ok(exe_path) = std::env::current_exe() { - if let Some(parent) = exe_path.parent() { - dirs.push(parent.to_path_buf()); - } + if let Ok(exe_path) = std::env::current_exe() { + if let Some(parent) = exe_path.parent() { + dirs.push(parent.to_path_buf()); } }