summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorusvimal <[email protected]>2026-01-13 23:39:43 +0800
committerGitHub <[email protected]>2026-01-13 09:39:43 -0600
commit2b77a84c4f3c6e651e0cf224b0c814260ddd8a45 (patch)
treeef17ae96110058a488016361e0267f75a7932df4
parent7d0b52dc29b7c7bc10bd2defe8452400db76bb9c (diff)
downloadopencode-2b77a84c4f3c6e651e0cf224b0c814260ddd8a45.tar.gz
opencode-2b77a84c4f3c6e651e0cf224b0c814260ddd8a45.zip
fix(desktop): correct health check endpoint URL to /global/health (#8231)
-rw-r--r--packages/desktop/src-tauri/src/lib.rs2
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();