From 01241733ab3fc413fd068ecc2c93f1bdbe629d38 Mon Sep 17 00:00:00 2001 From: Muthuvel Date: Tue, 13 Jan 2026 23:12:16 +0800 Subject: [PATCH] fix(desktop): correct health check endpoint URL to /global/health The desktop app was checking /health for server health, but the actual endpoint in server.ts is /global/health. This caused the desktop app to fail with 'Failed to spawn OpenCode Server' even though the server was running and listening. This fixes issues #8149, #8200, #8206 and related spawn failures on Windows and other platforms. --- packages/desktop/src-tauri/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop/src-tauri/src/lib.rs b/packages/desktop/src-tauri/src/lib.rs index 75ddb65666c..0d5b585e87b 100644 --- a/packages/desktop/src-tauri/src/lib.rs +++ b/packages/desktop/src-tauri/src/lib.rs @@ -198,7 +198,7 @@ fn spawn_sidecar(app: &AppHandle, port: u32, password: &str) -> CommandChild { } async fn check_server_health(url: &str, password: Option<&str>) -> bool { - let health_url = format!("{}/health", url.trim_end_matches('/')); + let health_url = format!("{}/global/health", url.trim_end_matches('/')); let client = reqwest::Client::builder() .timeout(Duration::from_secs(3)) .build();