desktop: macos killall opencode-cli on launch

This commit is contained in:
Brendan Allan
2026-01-13 22:38:24 +08:00
parent 067338bc25
commit 3c5a256f0f

View File

@@ -223,6 +223,11 @@ async fn check_server_health(url: &str, password: Option<&str>) -> bool {
pub fn run() {
let updater_enabled = option_env!("TAURI_SIGNING_PRIVATE_KEY").is_some();
#[cfg(target_os = "macos")]
let _ = std::process::Command::new("killall")
.arg("opencode-cli")
.output();
let mut builder = tauri::Builder::default()
.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {
// Focus existing window when another instance is launched