diff options
| author | usvimal <[email protected]> | 2026-01-13 23:39:43 +0800 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-01-13 19:50:49 -0500 |
| commit | a761f66a16dc0a2b116477c328d8a49f5c0a947a (patch) | |
| tree | f5022bf555e46b2f6db8cb7ef824bafeb5602cf1 | |
| parent | 15e80fca699234aa8acb4e947c91d35875dee9ec (diff) | |
| download | opencode-a761f66a16dc0a2b116477c328d8a49f5c0a947a.tar.gz opencode-a761f66a16dc0a2b116477c328d8a49f5c0a947a.zip | |
fix(desktop): correct health check endpoint URL to /global/health (#8231)
| -rw-r--r-- | packages/desktop/src-tauri/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/desktop/src-tauri/src/lib.rs b/packages/desktop/src-tauri/src/lib.rs index 75ddb6566..0d5b585e8 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(); |
