fix daemon not found (#299)

This commit is contained in:
Chris Tate 2026-01-27 09:06:09 -06:00 committed by GitHub
parent 523d7d57f1
commit 3ce441bc4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

2
cli/Cargo.lock generated
View File

@ -4,7 +4,7 @@ version = 4
[[package]]
name = "agent-browser"
version = "0.7.1"
version = "0.7.6"
dependencies = [
"dirs",
"libc",

View File

@ -212,6 +212,8 @@ pub fn ensure_daemon(
}
let exe_path = env::current_exe().map_err(|e| e.to_string())?;
// Canonicalize to resolve symlinks (e.g., npm global bin symlink -> actual binary)
let exe_path = exe_path.canonicalize().unwrap_or(exe_path);
let exe_dir = exe_path.parent().unwrap();
let mut daemon_paths = vec![