summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2026-01-13 22:38:24 +0800
committerBrendan Allan <[email protected]>2026-01-13 22:38:24 +0800
commit3c5a256f0fe620743f9e1a8f7d1546b87950aa5e (patch)
tree77f9afae2d0adab914f0436cbce669e024544c75
parent067338bc256213909c59f5a37118d2f8099ca5f2 (diff)
downloadopencode-3c5a256f0fe620743f9e1a8f7d1546b87950aa5e.tar.gz
opencode-3c5a256f0fe620743f9e1a8f7d1546b87950aa5e.zip
desktop: macos killall opencode-cli on launch
-rw-r--r--packages/desktop/src-tauri/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/desktop/src-tauri/src/lib.rs b/packages/desktop/src-tauri/src/lib.rs
index 4bb7b21ec..75ddb6566 100644
--- a/packages/desktop/src-tauri/src/lib.rs
+++ b/packages/desktop/src-tauri/src/lib.rs
@@ -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