From 4420c33f812b7484616378b67bd16edc55c5b253 Mon Sep 17 00:00:00 2001 From: leokun Date: Sun, 20 Sep 2026 10:23:39 +0800 Subject: [PATCH] fix(local-app): don't fail takeover when Cursor termination fails --- server/src/local_app/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/src/local_app/mod.rs b/server/src/local_app/mod.rs index a12db94..7c50336 100644 --- a/server/src/local_app/mod.rs +++ b/server/src/local_app/mod.rs @@ -188,7 +188,11 @@ impl CursorHarness { .transpose()? .unwrap_or(false); if !settings_applied { - process::terminate_cursor().await?; + // Terminating Cursor only makes the freshly written http.proxy take effect + // sooner; it is optional, so a failed probe or kill must not block takeover. + if let Err(error) = process::terminate_cursor().await { + tracing::warn!(%error, "could not terminate Cursor before applying proxy settings"); + } } if proxy.running() { if let Some(url) = proxy.url() {